public class EntityManagerSetupImpl
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
EntityManagerSetupImpl.TableCreationType |
| Modifier and Type | Field and Description |
|---|---|
protected EntityManagerSetupImpl |
compositeEmSetupImpl |
protected java.util.Set<EntityManagerSetupImpl> |
compositeMemberEmSetupImpls |
static java.lang.String[] |
connectionPropertyNames |
protected ConcurrencyManager |
deployLock |
protected java.lang.Boolean |
enableWeaving |
static java.lang.String |
ERROR_LOADING_XML_FILE
Initial -----------> PredeployFailed ---
| |
V |
Predeployed ---> DeployFailed -- |
| | |
V V V
HalfDeployed --> Deployed -> Undeployed
| ^
V |
DeployFailed -------------------
|
static java.lang.String |
EXCEPTION_LOADING_ENTITY_CLASS |
protected int |
factoryCount |
protected boolean |
isInContainerMode |
protected boolean |
isMetadataExpired
Used to indicate that an EntityManagerFactoryImpl based on this
EntityManagerSetupImpl has been refreshed.
|
protected boolean |
isSessionLoadedFromSessionsXML |
protected boolean |
isWeavingStatic |
protected PersistenceException |
persistenceException |
protected PersistenceUnitInfo |
persistenceUnitInfo |
protected java.lang.String |
persistenceUnitUniqueName |
protected MetadataProcessor |
processor |
protected ProjectCache |
projectCacheAccessor |
protected boolean |
requiresConnection |
protected SecurableObjectHolder |
securableObjectHolder |
protected AbstractSession |
session |
protected java.lang.String |
sessionName |
protected boolean |
shouldBuildProject |
protected java.lang.String |
state
Initial -----> HalfPredeployedCompositeMember -----> PredeployFailed
| ^ |
V------->| V
Predeployed
|
static java.lang.String |
STATE_DEPLOY_FAILED |
static java.lang.String |
STATE_DEPLOYED |
static java.lang.String |
STATE_HALF_DEPLOYED |
static java.lang.String |
STATE_HALF_PREDEPLOYED_COMPOSITE_MEMBER |
static java.lang.String |
STATE_INITIAL |
static java.lang.String |
STATE_PREDEPLOY_FAILED |
static java.lang.String |
STATE_PREDEPLOYED |
static java.lang.String |
STATE_UNDEPLOYED |
protected StaticWeaveInfo |
staticWeaveInfo |
protected java.util.List<StructConverter> |
structConverters |
protected PersistenceWeaver |
weaver
Holds a reference to the weaver class transformer so it can be cleared after login.
|
| Constructor and Description |
|---|
EntityManagerSetupImpl() |
EntityManagerSetupImpl(java.lang.String persistenceUnitUniqueName,
java.lang.String sessionName) |
| Modifier and Type | Method and Description |
|---|---|
protected static java.lang.String |
addFileSeperator(java.lang.String appLocation) |
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
|
void |
addStructConverters()
Add the StructConverters that were specified by annotation on the DatabasePlatform
This method must be called after the DatabasePlatform has been detected
|
protected void |
assignCMP3Policy()
Assign a CMP3Policy to each descriptor, and sets the OptimisticLockingPolicy's LockOnChangeMode if applicable.
|
protected static java.lang.Object |
buildObjectForClass(java.lang.Class clazz,
java.lang.Class mustBeImplementedInterface)
This method will be used to validate the specified class and return it's instance.
|
protected static java.lang.String |
buildSessionNameSuffixFromConnectionProperties(java.util.Map properties) |
void |
changeSessionName(java.lang.String newSessionName) |
protected PersistenceException |
createDeployFailedPersistenceException(java.lang.Throwable ex) |
protected PersistenceException |
createPredeployFailedPersistenceException(java.lang.Throwable ex) |
AbstractSession |
deploy(java.lang.ClassLoader realClassLoader,
java.util.Map additionalProperties)
Deploy a persistence session and return an EntityManagerFactory.
|
protected void |
deployCompositeMembers(java.util.Map deployProperties,
java.lang.ClassLoader realClassLoader) |
protected static java.lang.Class |
findClass(java.lang.String className,
java.lang.ClassLoader loader) |
protected static java.lang.Class |
findClassForProperty(java.lang.String className,
java.lang.String propertyName,
java.lang.ClassLoader loader) |
EntityManagerSetupImpl |
getCompositeEmSetupImpl() |
protected static java.util.Map<java.lang.String,SEPersistenceUnitInfo> |
getCompositeMemberPuInfoMap(PersistenceUnitInfo puInfo,
java.util.Map predeployProperties) |
protected static java.util.Set<SEPersistenceUnitInfo> |
getCompositeMemberPuInfoSet(PersistenceUnitInfo puInfo,
java.util.Map predeployProperties) |
static ConnectionPolicy.ExclusiveMode |
getConnectionPolicyExclusiveModeFromProperties(java.util.Map m,
AbstractSession abstractSession,
boolean useSystemAsDefault) |
DatabaseSessionImpl |
getDatabaseSession() |
DatabaseSessionImpl |
getDatabaseSession(java.util.Map props)
We may be provided a connection via the properties to use.
|
protected javax.sql.DataSource |
getDatasourceFromProperties(java.util.Map m,
java.lang.String property,
javax.sql.DataSource defaultDataSource)
This is used to return either the defaultDatasource or, if one exists, a datasource
defined under the property from the Map m.
|
java.lang.String |
getDeployedSessionName()
Return the name of the session this SetupImpl is building.
|
int |
getFactoryCount() |
Metamodel |
getMetamodel(java.lang.ClassLoader classLoader)
INTERNAL:
Return an instance of Metamodel interface for access to the
metamodel of the persistence unit.
|
static java.lang.String |
getOrBuildSessionName(java.util.Map properties,
PersistenceUnitInfo puInfo,
java.lang.String persistenceUnitUniqueName) |
PersistenceUnitInfo |
getPersistenceUnitInfo() |
java.lang.String |
getPersistenceUnitUniqueName() |
AbstractSession |
getSession() |
java.lang.String |
getSessionName() |
protected java.util.List<StructConverter> |
getStructConverters(java.lang.ClassLoader realClassLoader)
Internal:
Returns a list of StructConverter instances from a list of StructConverter names stored within the project.
|
protected boolean |
hasSchemaDatabaseGeneration(java.util.Map m) |
protected boolean |
hasSchemaScriptsGeneration(java.util.Map m) |
protected void |
initializeCanonicalMetamodel(Metamodel model)
INTERNAL:
Initialize the Canonical Metamodel classes generated by EclipseLink
|
protected void |
initOrUpdateLogging(java.util.Map m,
SessionLog log) |
protected void |
initSession()
Normally when a property is missing nothing should be applied to the session.
|
boolean |
isComposite() |
static boolean |
isComposite(PersistenceUnitInfo puInfo) |
boolean |
isCompositeMember() |
boolean |
isDeployed() |
boolean |
isDeployFailed() |
boolean |
isHalfDeployed() |
boolean |
isHalfPredeployedCompositeMember() |
boolean |
isInContainerMode() |
boolean |
isInitial() |
boolean |
isMetadataExpired()
Used to indicate that an EntityManagerFactoryImpl based on this
EntityManagerSetupImpl has been refreshed.
|
boolean |
isPredeployed() |
boolean |
isPredeployFailed() |
boolean |
isUndeployed() |
boolean |
isValidationOnly(java.util.Map m) |
protected boolean |
isValidationOnly(java.util.Map m,
boolean shouldMergeMap) |
protected java.util.Map |
mergeWithExistingMap(java.util.Map m) |
boolean |
mustBeCompositeMember() |
static boolean |
mustBeCompositeMember(PersistenceUnitInfo puInfo) |
protected static void |
overrideMemberProperties(java.util.Map memberProperties,
java.util.Map compositeProperties) |
ClassTransformer |
predeploy(PersistenceUnitInfo info,
java.util.Map extendedProperties)
Perform any steps necessary prior to actual deployment.
|
protected void |
predeployCompositeMembers(java.util.Map predeployProperties,
java.lang.ClassLoader tempClassLoader) |
void |
preInitializeCanonicalMetamodel(EntityManagerFactoryImpl factory)
INTERNAL:
First phase of canonical metamodel initialization.
|
void |
preInitializeMetamodel()
INTERNAL:
Cause the first phase of metamodel initialization.
|
protected void |
processDescriptorCustomizers(java.util.Map m,
java.lang.ClassLoader loader) |
protected void |
processSessionCustomizer(java.util.Map m,
java.lang.ClassLoader loader) |
EntityManagerSetupImpl |
refreshMetadata(java.util.Map 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.
|
void |
setCompositeEmSetupImpl(EntityManagerSetupImpl compositeEmSetupImpl) |
protected void |
setDescriptorNamedQueries(java.util.Map m)
Copy named queries defined in EclipseLink descriptor into the session if it was indicated to do so.
|
protected void |
setExceptionHandler(java.util.Map m,
java.lang.ClassLoader loader)
Allow customized exception handler to be added into session.
|
void |
setIsInContainerMode(boolean isInContainerMode)
This sets the isInContainerMode flag.
|
void |
setIsMetadataExpired(boolean hasExpiredMetadata)
Used to indicate that an EntityManagerFactoryImpl based on this
EntityManagerSetupImpl has been refreshed.
|
void |
setMetamodel(Metamodel aMetamodel)
INTERNAL:
Convenience function to allow us to reset the Metamodel
in the possible case that we want to regenerate it.
|
void |
setRequiresConnection(boolean requiresConnection)
INTERNAL:
By default we require a connection to the database.
|
protected void |
setSessionEventListener(java.util.Map m,
java.lang.ClassLoader loader)
Allow customized session event listener to be added into session.
|
void |
setStaticWeaveInfo(StaticWeaveInfo staticWeaveInfo) |
boolean |
shouldGetSessionOnCreateFactory(java.util.Map m)
Return if the session should be deployed and connected during the creation of the EntityManagerFactory,
or if it should be deferred until createEntityManager().
|
boolean |
shouldRedeploy() |
boolean |
shouldSendMetadataRefreshCommand(java.util.Map 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.
|
static void |
throwPersistenceUnitNameAlreadyInUseException(java.lang.String puName,
PersistenceUnitInfo newPuInfo,
PersistenceUnitInfo exsitingPuInfo) |
void |
triggerMetadataRefresh(java.util.Map properties)
This method is just a wrapper on refreshMetadata so that core does not need a dependency on JPA
due to the EntityManagerSetupImpl return value.
|
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 |
updateAllowNativeSQLQueriesSetting(java.util.Map m)
Enable or disable the capability of Native SQL function.
|
protected void |
updateAllowNULLMAXMINSetting(java.util.Map m)
Enable or disable default allowing null return from MAX or MIN
|
protected void |
updateAllowZeroIdSetting(java.util.Map m)
Enable or disable default allowing 0 as an id.
|
protected void |
updateBatchWritingSetting(java.util.Map persistenceProperties,
java.lang.ClassLoader loader)
Update batch writing setting.
|
protected void |
updateCacheCoordination(java.util.Map m,
java.lang.ClassLoader loader)
Configure cache coordination using properties.
|
protected void |
updateCacheStatementSettings(java.util.Map m)
Enable or disable statements cached, update statements cache size.
|
static void |
updateCaseSensitivitySettings(java.util.Map m,
MetadataProject project,
AbstractSession session)
/**
Enable or disable forcing field names to be case insensitive.
|
protected void |
updateCompositeMembersProperties(java.util.Map compositeProperties) |
protected void |
updateCompositeMembersProperties(java.util.Set<SEPersistenceUnitInfo> compositePuInfos,
java.util.Map compositeProperties) |
protected void |
updateConnectionPolicy(ServerSession serverSession,
java.util.Map m) |
protected void |
updateConnectionSettings(ServerSession serverSession,
java.util.Map properties)
Process all properties under "eclipselink.connection-pool.".
|
protected void |
updateDatabaseEventListener(java.util.Map m,
java.lang.ClassLoader loader)
Checks for database events listener properties.
|
protected void |
updateDescriptorCacheSettings(java.util.Map m,
java.lang.ClassLoader loader) |
protected void |
updateFreeMemory(java.util.Map m)
Allow the deployment metadata to be freed post-deploy to conserve memory.
|
protected void |
updateIdValidation(java.util.Map m)
Enable or disable default allowing 0 as an id.
|
protected void |
updateIndexForeignKeys(java.util.Map m)
Sets shouldCreateIndicesOnForeignKeys DDL generation option.
|
protected void |
updateJPQLParser(java.util.Map m)
Enable or disable the capability of Native SQL function.
|
protected void |
updateLoggers(java.util.Map persistenceProperties,
boolean serverPlatformChanged,
java.lang.ClassLoader loader)
Update loggers and settings for the singleton logger and the session logger.
|
protected void |
updateLoginDefaultConnector(DatasourceLogin login,
java.util.Map m)
In cases where there is no data source, we will use properties to configure the login for
our session.
|
protected void |
updateLogins(java.util.Map m)
Override the default login creation method.
|
protected void |
updateMetadataRepository(java.util.Map m,
java.lang.ClassLoader loader)
Load the Metadata Repository for Extensibility
|
protected void |
updateNativeSQLSetting(java.util.Map m)
Enable or disable the capability of Native SQL function.
|
protected void |
updatePartitioning(java.util.Map m,
java.lang.ClassLoader loader)
Checks for partitioning properties.
|
protected void |
updatePessimisticLockTimeout(java.util.Map persistenceProperties)
Update the default pessimistic lock timeout value.
|
protected void |
updatePessimisticLockTimeoutUnit(java.util.Map persistenceProperties)
Update the default pessimistic lock timeout unit value.
|
protected void |
updatePools(ServerSession serverSession,
java.util.Map m)
Configure the internal connection pooling parameters.
|
protected void |
updateProfiler(java.util.Map persistenceProperties,
java.lang.ClassLoader loader)
Check for the PROFILER persistence or system property and set the Session's profiler.
|
protected void |
updateProjectCache(java.util.Map m,
java.lang.ClassLoader loader)
Load the projectCacheAccessor for JPA project caching
|
protected void |
updateRemote(java.util.Map m,
java.lang.ClassLoader loader)
Checks for partitioning properties.
|
protected void |
updateSequencing(java.util.Map m)
Configure sequencing settings.
|
protected void |
updateSequencingStart(java.util.Map m) |
protected void |
updateSerializer(java.util.Map m,
java.lang.ClassLoader loader)
Update session serializer.
|
protected boolean |
updateServerPlatform(java.util.Map m,
java.lang.ClassLoader loader)
Updates the EclipseLink ServerPlatform class for use with this platform.
|
protected void |
updateSession(java.util.Map m,
java.lang.ClassLoader loader)
Make any changes to our ServerSession that can be made after it is created.
|
protected void |
updateSharedCacheMode(java.util.Map m)
Sets the SharedCacheMode with values from the javax.persistence.sharedCache.mode property.
|
protected void |
updateShouldOptimizeResultSetAccess(java.util.Map m)
Update whether session ShouldOptimizeResultSetAccess.
|
protected void |
updateSQLCastSetting(java.util.Map m)
Enable or disable SQL casting.
|
protected void |
updateTableCreationSettings(java.util.Map m)
sets the TABLE_CREATION_SUFFIX property on the session's project to be applied to all table creation statements (DDL)
|
protected void |
updateTemporalMutableSetting(java.util.Map m)
Enable or disable default temporal mutable setting.
|
protected void |
updateTenancy(java.util.Map m,
java.lang.ClassLoader loader)
Update whether session should use externally defined multi tenancy.
|
protected void |
updateTolerateInvalidJPQL(java.util.Map m)
Update whether session should tolerate invalid JPQL at creation time.
|
protected void |
updateTunerDeploy(java.util.Map m,
java.lang.ClassLoader loader)
Check for a tuning property and run the tuner deploy.
|
protected void |
updateTunerPostDeploy(java.util.Map m,
java.lang.ClassLoader loader)
Check for a tuning property and run the tuner deploy.
|
protected void |
updateTunerPreDeploy(java.util.Map m,
java.lang.ClassLoader loader)
Check for a tuning property and run the tuner preDeploy.
|
protected void |
updateUppercaseSetting(java.util.Map m)
Enable or disable forcing field names to uppercase.
|
void |
writeDDL(java.util.Map props,
DatabaseSessionImpl session,
java.lang.ClassLoader classLoader)
INTERNAL:
Generate the DDL per the properties specified.
|
protected void |
writeDDL(java.lang.String ddlGeneration,
java.util.Map props,
DatabaseSessionImpl session,
java.lang.ClassLoader classLoader)
INTERNAL:
Generate the DDL from the persistence unit metadata.
|
protected void |
writeDDL(java.lang.String generationSourceProperty,
java.lang.String scriptGenerationSourceProperty,
EntityManagerSetupImpl.TableCreationType tableCreationType,
java.util.Map props,
DatabaseSessionImpl session,
java.lang.ClassLoader loader)
INTERNAL:
Generate the DDL per the properties given.
|
protected void |
writeDDLToDatabase(SchemaManager mgr,
EntityManagerSetupImpl.TableCreationType ddlType)
INTERNAL:
Generate and write DDL from the persistence unit metadata to the database.
|
protected void |
writeDDLToFiles(SchemaManager mgr,
java.lang.String appLocation,
java.lang.Object createDDLJdbc,
java.lang.Object dropDDLJdbc,
EntityManagerSetupImpl.TableCreationType ddlType)
Deprecated.
Extenders should now use
writeDDLToFiles(SchemaManager, String, Object, Object, TableCreationType, Map) |
protected void |
writeDDLToFiles(SchemaManager mgr,
java.lang.String appLocation,
java.lang.Object createDDLJdbc,
java.lang.Object dropDDLJdbc,
EntityManagerSetupImpl.TableCreationType ddlType,
java.util.Map props)
Write the DDL to the files provided.
|
protected void |
writeMetadataDDLToDatabase(EntityManagerSetupImpl.TableCreationType tableCreationType,
java.util.Map props,
DatabaseSessionImpl session,
java.lang.ClassLoader classLoader)
INTERNAL:
Generate and write DDL from the persistence unit metadata to the database.
|
protected void |
writeMetadataDDLToScript(EntityManagerSetupImpl.TableCreationType tableCreationType,
java.util.Map props,
DatabaseSessionImpl session,
java.lang.ClassLoader classLoader)
INTERNAL:
Generate and write DDL from the persistence unit metadata to scripts.
|
protected void |
writeSourceScriptToDatabase(java.lang.Object source,
DatabaseSessionImpl session,
java.lang.ClassLoader loader)
This method will read SQL from a reader or URL and send it through
to the database.
|
protected java.lang.String persistenceUnitUniqueName
protected java.lang.String sessionName
protected MetadataProcessor processor
protected PersistenceWeaver weaver
protected PersistenceUnitInfo persistenceUnitInfo
protected int factoryCount
protected AbstractSession session
protected boolean isInContainerMode
protected boolean isSessionLoadedFromSessionsXML
protected ProjectCache projectCacheAccessor
protected boolean shouldBuildProject
protected java.lang.Boolean enableWeaving
protected boolean isWeavingStatic
protected StaticWeaveInfo staticWeaveInfo
protected SecurableObjectHolder securableObjectHolder
protected ConcurrencyManager deployLock
protected boolean requiresConnection
protected java.util.List<StructConverter> structConverters
public static final java.lang.String STATE_INITIAL
public static final java.lang.String STATE_PREDEPLOYED
public static final java.lang.String STATE_HALF_DEPLOYED
public static final java.lang.String STATE_DEPLOYED
public static final java.lang.String STATE_PREDEPLOY_FAILED
public static final java.lang.String STATE_DEPLOY_FAILED
public static final java.lang.String STATE_UNDEPLOYED
public static final java.lang.String STATE_HALF_PREDEPLOYED_COMPOSITE_MEMBER
protected java.lang.String state
public static final java.lang.String ERROR_LOADING_XML_FILE
public static final java.lang.String EXCEPTION_LOADING_ENTITY_CLASS
public static java.lang.String[] connectionPropertyNames
protected EntityManagerSetupImpl compositeEmSetupImpl
protected java.util.Set<EntityManagerSetupImpl> compositeMemberEmSetupImpls
protected boolean isMetadataExpired
protected PersistenceException persistenceException
public EntityManagerSetupImpl(java.lang.String persistenceUnitUniqueName,
java.lang.String sessionName)
public EntityManagerSetupImpl()
protected static java.lang.String addFileSeperator(java.lang.String appLocation)
public static java.lang.String getOrBuildSessionName(java.util.Map properties,
PersistenceUnitInfo puInfo,
java.lang.String persistenceUnitUniqueName)
protected static java.lang.String buildSessionNameSuffixFromConnectionProperties(java.util.Map properties)
public void changeSessionName(java.lang.String newSessionName)
protected void removeSessionFromGlobalSessionManager()
public AbstractSession deploy(java.lang.ClassLoader realClassLoader,
java.util.Map additionalProperties)
realClassLoader - The class loader that was used to load the entity classes. This loader
will be maintained for the lifespan of the loaded classes.additionalProperties - 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).protected PersistenceException createDeployFailedPersistenceException(java.lang.Throwable ex)
protected void addProjectToSession(ServerSession session,
Project project)
protected void addSessionToGlobalSessionManager()
public void addStructConverters()
protected void assignCMP3Policy()
protected boolean updateServerPlatform(java.util.Map m,
java.lang.ClassLoader loader)
protected void updatePartitioning(java.util.Map m,
java.lang.ClassLoader loader)
protected void updateRemote(java.util.Map m,
java.lang.ClassLoader loader)
protected void updateDatabaseEventListener(java.util.Map m,
java.lang.ClassLoader loader)
protected void updateLoggers(java.util.Map persistenceProperties,
boolean serverPlatformChanged,
java.lang.ClassLoader loader)
persistenceProperties - the properties mapserverPlatformChanged - the boolean that denotes a serverPlatform change in the session.protected void updateProfiler(java.util.Map persistenceProperties,
java.lang.ClassLoader loader)
protected static java.lang.Class findClass(java.lang.String className,
java.lang.ClassLoader loader)
throws java.lang.ClassNotFoundException,
java.security.PrivilegedActionException
java.lang.ClassNotFoundExceptionjava.security.PrivilegedActionExceptionprotected static java.lang.Class findClassForProperty(java.lang.String className,
java.lang.String propertyName,
java.lang.ClassLoader loader)
protected java.util.List<StructConverter> getStructConverters(java.lang.ClassLoader realClassLoader)
realClassLoader - protected boolean hasSchemaDatabaseGeneration(java.util.Map m)
protected boolean hasSchemaScriptsGeneration(java.util.Map m)
public AbstractSession getSession()
public DatabaseSessionImpl getDatabaseSession()
public DatabaseSessionImpl getDatabaseSession(java.util.Map props)
protected static java.lang.Object buildObjectForClass(java.lang.Class clazz,
java.lang.Class mustBeImplementedInterface)
throws java.lang.IllegalAccessException,
java.security.PrivilegedActionException,
java.lang.InstantiationException
java.lang.IllegalAccessExceptionjava.security.PrivilegedActionExceptionjava.lang.InstantiationExceptionprotected void updateDescriptorCacheSettings(java.util.Map m,
java.lang.ClassLoader loader)
protected void updateConnectionSettings(ServerSession serverSession,
java.util.Map properties)
protected void updateConnectionPolicy(ServerSession serverSession,
java.util.Map m)
public static ConnectionPolicy.ExclusiveMode getConnectionPolicyExclusiveModeFromProperties(java.util.Map m,
AbstractSession abstractSession,
boolean useSystemAsDefault)
public ClassTransformer predeploy(PersistenceUnitInfo info,
java.util.Map extendedProperties)
deploy(ClassLoader, Map)protected PersistenceException createPredeployFailedPersistenceException(java.lang.Throwable ex)
public java.lang.String getDeployedSessionName()
public PersistenceUnitInfo getPersistenceUnitInfo()
public boolean isValidationOnly(java.util.Map m)
protected boolean isValidationOnly(java.util.Map m,
boolean shouldMergeMap)
public boolean shouldGetSessionOnCreateFactory(java.util.Map m)
protected java.util.Map mergeWithExistingMap(java.util.Map m)
public boolean isInContainerMode()
protected void updateCacheCoordination(java.util.Map m,
java.lang.ClassLoader loader)
protected void updateSerializer(java.util.Map m,
java.lang.ClassLoader loader)
protected void updateShouldOptimizeResultSetAccess(java.util.Map m)
protected void updateTenancy(java.util.Map m,
java.lang.ClassLoader loader)
protected void updateTolerateInvalidJPQL(java.util.Map m)
protected void updateLogins(java.util.Map m)
protected javax.sql.DataSource getDatasourceFromProperties(java.util.Map m,
java.lang.String property,
javax.sql.DataSource defaultDataSource)
protected void updateLoginDefaultConnector(DatasourceLogin login,
java.util.Map m)
protected void updatePools(ServerSession serverSession,
java.util.Map m)
protected void initSession()
protected void updateSession(java.util.Map m,
java.lang.ClassLoader loader)
public void setIsInContainerMode(boolean isInContainerMode)
public void setIsMetadataExpired(boolean hasExpiredMetadata)
protected void processSessionCustomizer(java.util.Map m,
java.lang.ClassLoader loader)
protected void initOrUpdateLogging(java.util.Map m,
SessionLog log)
protected void processDescriptorCustomizers(java.util.Map m,
java.lang.ClassLoader loader)
public boolean isInitial()
public boolean isMetadataExpired()
public boolean isPredeployed()
public boolean isDeployed()
public boolean isHalfDeployed()
public boolean isUndeployed()
public boolean isPredeployFailed()
public boolean isDeployFailed()
public boolean isHalfPredeployedCompositeMember()
public java.lang.String getPersistenceUnitUniqueName()
public int getFactoryCount()
public java.lang.String getSessionName()
public boolean shouldRedeploy()
public boolean shouldSendMetadataRefreshCommand(java.util.Map m)
public void undeploy()
public void setRequiresConnection(boolean requiresConnection)
protected void setSessionEventListener(java.util.Map m,
java.lang.ClassLoader loader)
protected void setExceptionHandler(java.util.Map m,
java.lang.ClassLoader loader)
protected void updateBatchWritingSetting(java.util.Map persistenceProperties,
java.lang.ClassLoader loader)
protected void updateMetadataRepository(java.util.Map m,
java.lang.ClassLoader loader)
protected void updateTunerPreDeploy(java.util.Map m,
java.lang.ClassLoader loader)
protected void updateTunerDeploy(java.util.Map m,
java.lang.ClassLoader loader)
protected void updateTunerPostDeploy(java.util.Map m,
java.lang.ClassLoader loader)
protected void updateFreeMemory(java.util.Map m)
protected void updateNativeSQLSetting(java.util.Map m)
protected void updateSequencing(java.util.Map m)
protected void updateSequencingStart(java.util.Map m)
protected void updateProjectCache(java.util.Map m,
java.lang.ClassLoader loader)
protected void updateJPQLParser(java.util.Map m)
protected void updateAllowNativeSQLQueriesSetting(java.util.Map m)
protected void updateSQLCastSetting(java.util.Map m)
protected void updateUppercaseSetting(java.util.Map m)
public static void updateCaseSensitivitySettings(java.util.Map m,
MetadataProject project,
AbstractSession session)
protected void updatePessimisticLockTimeout(java.util.Map persistenceProperties)
persistenceProperties - the properties mapprotected void updatePessimisticLockTimeoutUnit(java.util.Map persistenceProperties)
persistenceProperties - the properties mapprotected void updateCacheStatementSettings(java.util.Map m)
protected void updateAllowZeroIdSetting(java.util.Map m)
protected void updateAllowNULLMAXMINSetting(java.util.Map m)
protected void updateIdValidation(java.util.Map m)
protected void updateSharedCacheMode(java.util.Map m)
protected void updateTableCreationSettings(java.util.Map m)
protected void updateIndexForeignKeys(java.util.Map m)
protected void updateTemporalMutableSetting(java.util.Map m)
protected void setDescriptorNamedQueries(java.util.Map m)
public Metamodel getMetamodel(java.lang.ClassLoader classLoader)
protected void initializeCanonicalMetamodel(Metamodel model)
public void setMetamodel(Metamodel aMetamodel)
aMetamodel - public boolean mustBeCompositeMember()
public boolean isCompositeMember()
public boolean isComposite()
public static boolean mustBeCompositeMember(PersistenceUnitInfo puInfo)
public static boolean isComposite(PersistenceUnitInfo puInfo)
public void setCompositeEmSetupImpl(EntityManagerSetupImpl compositeEmSetupImpl)
public EntityManagerSetupImpl getCompositeEmSetupImpl()
public void setStaticWeaveInfo(StaticWeaveInfo staticWeaveInfo)
protected void predeployCompositeMembers(java.util.Map predeployProperties,
java.lang.ClassLoader tempClassLoader)
protected void deployCompositeMembers(java.util.Map deployProperties,
java.lang.ClassLoader realClassLoader)
public void preInitializeMetamodel()
public void preInitializeCanonicalMetamodel(EntityManagerFactoryImpl factory)
factory - protected void updateCompositeMembersProperties(java.util.Map compositeProperties)
protected void updateCompositeMembersProperties(java.util.Set<SEPersistenceUnitInfo> compositePuInfos, java.util.Map compositeProperties)
protected static void overrideMemberProperties(java.util.Map memberProperties,
java.util.Map compositeProperties)
protected static java.util.Map<java.lang.String,SEPersistenceUnitInfo> getCompositeMemberPuInfoMap(PersistenceUnitInfo puInfo, java.util.Map predeployProperties)
protected static java.util.Set<SEPersistenceUnitInfo> getCompositeMemberPuInfoSet(PersistenceUnitInfo puInfo, java.util.Map predeployProperties)
public static void throwPersistenceUnitNameAlreadyInUseException(java.lang.String puName,
PersistenceUnitInfo newPuInfo,
PersistenceUnitInfo exsitingPuInfo)
public EntityManagerSetupImpl refreshMetadata(java.util.Map properties)
properties - public void triggerMetadataRefresh(java.util.Map properties)
refreshMetadatapublic void writeDDL(java.util.Map props,
DatabaseSessionImpl session,
java.lang.ClassLoader classLoader)
protected void writeDDL(java.lang.String ddlGeneration,
java.util.Map props,
DatabaseSessionImpl session,
java.lang.ClassLoader classLoader)
protected void writeDDL(java.lang.String generationSourceProperty,
java.lang.String scriptGenerationSourceProperty,
EntityManagerSetupImpl.TableCreationType tableCreationType,
java.util.Map props,
DatabaseSessionImpl session,
java.lang.ClassLoader loader)
protected void writeDDLToDatabase(SchemaManager mgr,
EntityManagerSetupImpl.TableCreationType ddlType)
@Deprecated
protected void writeDDLToFiles(SchemaManager mgr,
java.lang.String appLocation,
java.lang.Object createDDLJdbc,
java.lang.Object dropDDLJdbc,
EntityManagerSetupImpl.TableCreationType ddlType)
writeDDLToFiles(SchemaManager, String, Object, Object, TableCreationType, Map)protected void writeDDLToFiles(SchemaManager mgr,
java.lang.String appLocation,
java.lang.Object createDDLJdbc,
java.lang.Object dropDDLJdbc,
EntityManagerSetupImpl.TableCreationType ddlType,
java.util.Map props)
protected void writeMetadataDDLToDatabase(EntityManagerSetupImpl.TableCreationType tableCreationType, java.util.Map props, DatabaseSessionImpl session, java.lang.ClassLoader classLoader)
protected void writeMetadataDDLToScript(EntityManagerSetupImpl.TableCreationType tableCreationType, java.util.Map props, DatabaseSessionImpl session, java.lang.ClassLoader classLoader)
protected void writeSourceScriptToDatabase(java.lang.Object source,
DatabaseSessionImpl session,
java.lang.ClassLoader loader)