| Modifier and Type | Class and Description |
|---|---|
| protected static enum |
| Modifier and Type | Field and Description |
|---|---|
| protected EntityManagerSetupImpl | |
| protected Set | |
| public static String[] | |
| protected ConcurrencyManager | |
| protected Boolean | |
| public static final String | ERROR_LOADING_XML_FILE
Initial -----------> PredeployFailed --- | | V | Predeployed ---> DeployFailed -- | | | | V V V HalfDeployed --> Deployed -> Undeployed | ^ V | DeployFailed ------------------- |
| public static final String | |
| protected int | |
| protected boolean | |
| protected boolean | isMetadataExpired
Used to indicate that an EntityManagerFactoryImpl based on this EntityManagerSetupImpl has been refreshed. |
| protected boolean | |
| protected boolean | |
| private Metamodel | metaModel
Reference to the Metamodel for this deployment and session. |
| pack-priv PersistenceUnitProcessor. | |
| protected PersistenceException | |
| protected PersistenceUnitInfo | |
| protected String | |
| private MetadataProcessor | |
| protected ProjectCache | |
| protected boolean | |
| protected SecurableObjectHolder | |
| protected AbstractSession | |
| protected String | |
| protected boolean | |
| protected String | state
Initial -----> HalfPredeployedCompositeMember -----> PredeployFailed | ^ | V------->| V Predeployed |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| protected StaticWeaveInfo | |
| protected List | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| private PersistenceWeaver | weaver
Holds a reference to the weaver class transformer so it can be cleared after login. |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | addBeanValidationListeners(Map<K, V>
merged properties for this persistence unit puProperties, ClassLoader appClassLoader)If Bean Validation is enabled, bootstraps Bean Validation on descriptors. |
| protected static String | |
| protected void | addProjectToSession(ServerSession session, Project project)
Adds descriptors plus sequencing info found on the project to the session. |
| protected void | addSessionToGlobalSessionManager()
Put the given session into the session manager so it can be looked up later |
| public void | addStructConverters()
Add the StructConverters that were specified by annotation on the DatabasePlatform This method must be called after the DatabasePlatform has been detected |
| private static String | |
| protected void | assignCMP3Policy()
Assign a CMP3Policy to each descriptor, and sets the OptimisticLockingPolicy's LockOnChangeMode if applicable. |
| protected static Object | buildObjectForClass(Class<?> clazz, Class<?> mustBeImplementedInterface)
This method will be used to validate the specified class and return it's instance. |
| protected static String | |
| public void | |
| protected PersistenceException | |
| protected PersistenceException | |
| public AbstractSession | Returns: An EntityManagerFactory to be used by the Container to obtain EntityManagersThe class loader that was used to load the entity classes. This loader
will be maintained for the lifespan of the loaded classes. realClassLoader, Map<K, V> added to persistence unit properties for updateServerSession overriding existing properties.
In JSE case it allows to alter properties in main (as opposed to preMain where preDeploy is called). additionalProperties)Deploy a persistence session and return an EntityManagerFactory. |
| protected void | |
| protected static Class | |
| protected static <T> Class | |
| private static <T> Class | |
| private void | finishProcessingDescriptorEvents(ClassLoader realClassLoader)
INTERNAL: This method is used to resolve Descriptor Events processed earlier into EventHolders that now need to be used to create the DescriptorEventListeners and added to the DescriptorEventManager |
| public EntityManagerSetupImpl | |
| protected static Map | |
| protected static Set | |
| public static ConnectionPolicy. | getConnectionPolicyExclusiveModeFromProperties(Map<K, V> m, AbstractSession abstractSession, boolean useSystemAsDefault)
|
| public DatabaseSessionImpl | |
| public DatabaseSessionImpl | |
| protected DataSource | getDatasourceFromProperties(Map<K, V> m, String property, DataSource defaultDataSource)
This is used to return either the defaultDatasource or, if one exists, a datasource defined under the property from the Map m. |
| public String | |
| public int | |
| public Metamodel | Returns: Metamodel instanceINTERNAL: Return an instance of Metamodel interface for access to the metamodel of the persistence unit. |
| public static String | getOrBuildSessionName(Map<K, V> properties, PersistenceUnitInfo puInfo, String persistenceUnitUniqueName)
|
| public PersistenceUnitInfo | |
| public String | |
| public AbstractSession | |
| public String | |
| protected List | getStructConverters(ClassLoader realClassLoader)
Internal: Returns a list of StructConverter instances from a list of StructConverter names stored within the project. |
| private static ValidationMode | Returns: validation modePersitenceUnitInfo instance for this persistence unit persitenceUnitInfo, Map<K, V> merged properties for this persistence unit puProperties)Validation mode from information in persistence.xml and properties specified at EMF creation |
| protected boolean | |
| protected boolean | |
| protected void | initializeCanonicalMetamodel(Metamodel model)
INTERNAL: Initialize the Canonical Metamodel classes generated by EclipseLink |
| protected void | |
| protected void | |
| public boolean | |
| public static boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | isMetadataExpired()
Used to indicate that an EntityManagerFactoryImpl based on this EntityManagerSetupImpl has been refreshed. |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| protected boolean | |
| protected Map | |
| public boolean | |
| public static boolean | |
| protected static void | |
| public synchronized ClassTransformer | Returns: A transformer (which may be null) that should be plugged into the proper classloader to allow classes to be transformed as they get loaded.Perform any steps necessary prior to actual deployment. |
| protected void | |
| public void | preInitializeCanonicalMetamodel(EntityManagerFactoryImpl factory)
INTERNAL: First phase of canonical metamodel initialization. |
| public void | |
| protected void | |
| private void | processDescriptorsFromCachedProject(ClassLoader realClassLoader)
INTERNAL: This method is used to resolve Descriptor Customizers that might have been stored in the project for JPA project caching. |
| protected void | |
| public EntityManagerSetupImpl | refreshMetadata(Map<K, V> properties)
Create a new version of this EntityManagerSetupImpl and cache it. |
| protected void | removeSessionFromGlobalSessionManager()
This method can be used to ensure the session represented by emSetupImpl is removed from the SessionManager. |
| public void | |
| protected void | setDescriptorNamedQueries(Map<K, V> m)
Copy named queries defined in EclipseLink descriptor into the session if it was indicated to do so. |
| protected void | setExceptionHandler(Map<K, V> m, ClassLoader loader)
Allow customized exception handler to be added into session. |
| public void | |
| public void | setIsMetadataExpired(boolean hasExpiredMetadata)
Used to indicate that an EntityManagerFactoryImpl based on this EntityManagerSetupImpl has been refreshed. |
| public void | setMetamodel(Metamodel aMetamodel)
INTERNAL: Convenience function to allow us to reset the Metamodel in the possible case that we want to regenerate it. |
| public void | setRequiresConnection(boolean requiresConnection)
INTERNAL: By default we require a connection to the database. |
| protected void | setSessionEventListener(Map<K, V> m, ClassLoader loader)
Allow customized session event listener to be added into session. |
| public void | |
| public boolean | shouldGetSessionOnCreateFactory(Map<K, V> m)
Return if the session should be deployed and connected during the creation of the EntityManagerFactory, or if it should be deferred until createEntityManager(). |
| public boolean | |
| public boolean | shouldSendMetadataRefreshCommand(Map<K, V> m)
Return if MetadataSource refresh commands should be sent when refresh is called Checks the PersistenceUnitProperties.METADATA_SOURCE_RCM_COMMAND property and defaults to true. |
| private static String | |
| public static void | throwPersistenceUnitNameAlreadyInUseException(String puName, PersistenceUnitInfo newPuInfo, PersistenceUnitInfo exsitingPuInfo)
|
| public void | triggerMetadataRefresh(Map<K, V> properties)
Implements org. |
| public synchronized void | undeploy()
Undeploy may be called several times, but only the call that decreases factoryCount to 0 disconnects the session and removes it from the session manager. |
| protected void | updateAllowExtendedCacheLogging(Map<K, V> m)
Enable or disable extended logging of JPA L2 cache usage. |
| protected void | |
| protected void | updateAllowExtendedThreadLoggingThreadDump(Map<K, V> m)
Enable or disable thread dump addition to extended thread logging. |
| protected void | updateAllowNativeSQLQueriesSetting(Map<K, V> m)
Enable or disable the capability of Native SQL function. |
| protected void | |
| protected void | |
| protected void | updateBatchWritingSetting(Map<K, V> persistenceProperties, ClassLoader loader)
Update batch writing setting. |
| protected void | updateCacheCoordination(Map<K, V> m, ClassLoader loader)
Configure cache coordination using properties. |
| protected void | updateCacheStatementSettings(Map<K, V> m)
Enable or disable statements cached, update statements cache size. |
| public static void | updateCaseSensitivitySettings(Map<K, V> m, MetadataProject project, AbstractSession session)
/** Enable or disable forcing field names to be case insensitive. |
| protected void | |
| protected void | updateCompositeMembersProperties(Set<SEPersistenceUnitInfo> compositePuInfos, Map<K, V> compositeProperties)
|
| private void | |
| private void | |
| private void | updateConcurrencyManagerAllowTakingStackTraceDuringReadLockAcquisition(Map<K, V> persistenceProperties)
|
| private void | |
| private void | updateConcurrencyManagerMaxAllowedFrequencyToProduceMassiveDumpLogMessage(Map<K, V> persistenceProperties)
|
| private void | updateConcurrencyManagerMaxAllowedFrequencyToProduceTinyDumpLogMessage(Map<K, V> persistenceProperties)
|
| private void | |
| private void | updateConcurrencyManagerNoOfThreadsAllowedToDoWriteLockManagerAcquireRequiredLocksInParallel(Map<K, V> persistenceProperties)
|
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| protected void | |
| protected void | updateConnectionSettings(ServerSession serverSession, Map<K, V> properties)
Process all properties under "eclipselink.connection-pool.". |
| protected void | updateDatabaseEventListener(Map<K, V> m, ClassLoader loader)
Checks for database events listener properties. |
| protected void | |
| protected void | updateFreeMemory(Map<K, V> m)
Allow the deployment metadata to be freed post-deploy to conserve memory. |
| protected void | |
| protected void | |
| protected void | |
| private static void | updateJTAControllerInPlatform(final ServerPlatform
target serverPlatform, final String ServerPlatform instanceJTA transaction controller class name jtaControllerClassName, final ClassLoader class loader containing JTA transaction controller class loader)Update JTA transaction controller class of provided |
| private void | |
| protected void | updateLoggers(Map<K, V>
the properties map persistenceProperties, boolean the boolean that denotes a serverPlatform change in the session. serverPlatformChanged, ClassLoader loader)Update loggers and settings for the singleton logger and the session logger. |
| protected void | updateLoginDefaultConnector(DatasourceLogin login, Map<K, V> m)
In cases where there is no data source, we will use properties to configure the login for our session. |
| protected void | |
| protected void | updateMetadataRepository(Map<K, V> m, ClassLoader loader)
Load the Metadata Repository for Extensibility |
| private void | |
| protected void | |
| protected void | |
| protected void | updatePessimisticLockTimeout(Map<K, V>
the properties map persistenceProperties)Update the default pessimistic lock timeout value. |
| protected void | updatePessimisticLockTimeoutUnit(Map<K, V>
the properties map persistenceProperties)Update the default pessimistic lock timeout unit value. |
| protected void | updatePools(ServerSession serverSession, Map<K, V> m)
Configure the internal connection pooling parameters. |
| protected void | updateProfiler(Map<K, V> persistenceProperties, ClassLoader loader)
Check for the PROFILER persistence or system property and set the Session's profiler. |
| protected void | updateProjectCache(Map<K, V> m, ClassLoader loader)
Load the projectCacheAccessor for JPA project caching |
| private void | |
| private void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected boolean | Returns: true if the ServerPlatform has changed.Updates the EclipseLink ServerPlatform class for use with this platform. |
| protected void | updateSession(Map<K, V> m, ClassLoader loader)
Make any changes to our ServerSession that can be made after it is created. |
| protected void | updateSharedCacheMode(Map<K, V> m)
Sets the SharedCacheMode with values from the jakarta.persistence.sharedCache.mode property. |
| protected void | updateShouldOptimizeResultSetAccess(Map<K, V> m)
Update whether session ShouldOptimizeResultSetAccess. |
| private void | |
| protected void | |
| protected void | updateTableCreationSettings(Map<K, V> m)
sets the TABLE_CREATION_SUFFIX property on the session's project to be applied to all table creation statements (DDL) |
| protected void | |
| protected void | updateTenancy(Map<K, V> m, ClassLoader loader)
Update whether session should use externally defined multi tenancy. |
| protected void | updateTolerateInvalidJPQL(Map<K, V> m)
Update whether session should tolerate invalid JPQL at creation time. |
| protected void | updateTunerDeploy(Map<K, V> m, ClassLoader loader)
Check for a tuning property and run the tuner deploy. |
| protected void | updateTunerPostDeploy(Map<K, V> m, ClassLoader loader)
Check for a tuning property and run the tuner deploy. |
| protected void | updateTunerPreDeploy(Map<K, V> m, ClassLoader loader)
Check for a tuning property and run the tuner preDeploy. |
| protected void | |
| public void | writeDDL(Map<K, V> props, DatabaseSessionImpl session, ClassLoader classLoader)
INTERNAL: Generate the DDL per the properties specified. |
| protected void | writeDDL(String ddlGeneration, Map<K, V> props, DatabaseSessionImpl session, ClassLoader classLoader)
INTERNAL: Generate the DDL from the persistence unit metadata. |
| protected void | writeDDL(String generationSourceProperty, String scriptGenerationSourceProperty, EntityManagerSetupImpl.
INTERNAL: Generate the DDL per the properties given. |
| protected void | writeDDLToDatabase(SchemaManager mgr, EntityManagerSetupImpl.
INTERNAL: Generate and write DDL from the persistence unit metadata to the database. |
| protected void | writeDDLToFiles(SchemaManager mgr, String appLocation, Object createDDLJdbc, Object dropDDLJdbc, EntityManagerSetupImpl.
Deprecated
Extenders should now use
writeDDLToFiles(SchemaManager, String, Object, Object, TableCreationType, Map)
|
| protected void | writeDDLToFiles(SchemaManager mgr, String appLocation, Object createDDLJdbc, Object dropDDLJdbc, EntityManagerSetupImpl.
Write the DDL to the files provided. |
| protected void | writeMetadataDDLToDatabase(EntityManagerSetupImpl.
INTERNAL: Generate and write DDL from the persistence unit metadata to the database. |
| protected void | writeMetadataDDLToScript(EntityManagerSetupImpl.
INTERNAL: Generate and write DDL from the persistence unit metadata to scripts. |
| protected void | writeSourceScriptToDatabase(Object source, DatabaseSessionImpl session, ClassLoader loader)
This method will read SQL from a reader or URL and send it through to the database. |