Responsibilities:
DatabaseLogin
| Modifier and Type | Field and Description |
|---|---|
| protected Map | aliasDescriptors
Cache the EJBQL descriptor aliases. |
| protected boolean | allowExtendedCacheLogging
Flag that allows extended logging of JPA L2 cache or not. |
| protected boolean | allowExtendedThreadLogging
Flag that allows extended thread logging or not. |
| protected boolean | allowExtendedThreadLoggingThreadDump
Flag that allows add to extended thread logging output thread stack trace or not. |
| protected boolean | allowNativeSQLQueries
Flag that allows native queries or not |
| protected boolean | allowQueryResultsCacheValidation
Flag that allows query result cache validation or not. |
| protected boolean | allowSQLDeferral
Flag that allows call deferral to be disabled |
| protected boolean | allowTablePerMultitenantDDLGeneration
Flag that allows DDL generation of table per tenant multitenant descriptors |
| protected Map | attributeGroups
List of named AttributeGroups - once Project is initialized, these are copied to the Session. |
| protected Collection | classNamesForWeaving
used for Caching JPA projects |
| protected Login | |
| protected CacheIsolationType | defaultCacheIsolation
Default value for ClassDescriptor.isIsolated. |
| protected Class | defaultIdentityMapClass
Default value for ClassDescriptor.identityMapClass. |
| protected int | defaultIdentityMapSize
Default value for ClassDescriptor.identityMapSize. |
| protected IdValidation | defaultIdValidation
Default value for ClassDescriptor.idValidation. |
| protected QueryResultsCachePolicy | defaultQueryResultsCachePolicy
Default value for query caching options for all named queries. |
| protected Vector | defaultReadOnlyClasses
Holds the default set of read-only classes that apply to each UnitOfWork. |
| protected boolean | defaultTemporalMutable
Define the default setting for configuring if dates and calendars are mutable. |
| protected Map | |
| protected Object | descriptorsLock
Ensures that only one thread at a time can add/remove descriptors |
| protected boolean | hasGenericHistorySupport
Cache if any descriptor has history. |
| protected boolean | hasIsolatedClasses
Cache if any descriptor is isolated. |
| protected transient boolean | hasMappingsPostCalculateChangesOnDeleted
Indicates whether there is at least one descriptor that has at least on mapping that require a call on deleted objects to update change sets. |
| protected boolean | hasNonIsolatedUOWClasses
Cache if all descriptors are isolated in the unit of work. |
| protected boolean | hasProxyIndirection
Cache if any descriptor is using ProxyIndirection. |
| protected List | jpaQueries
List of queries from JPA that need special processing before execution. |
| protected List | jpaTablePerTenantQueries
List of queries from JPA that may special processing and handling before execution. |
| protected transient ConcurrentFixedCache | jpqlParseCache
PERF: Provide an JPQL parse cache to optimize dynamic JPQL. |
| protected Map | mappedSuperclassDescriptors
Mapped Superclasses (JPA 2) collection of parent non-relational descriptors keyed on MetadataClass without creating a compile time dependency on JPA. |
| protected Map | metamodelIdClassMap
Store the IdClass Id attributes for exclusive use by the Metamodel API Keyed on the fully qualified accessible object owner class name. |
| protected MultitenantPolicy | |
| protected String | |
| protected boolean | namingIntoIndexed
Flag that allows transform named stored procedure parameters into positional/index based |
| protected List | |
| protected Map | partitioningPolicies
Map of named partitioning policies, keyed by their name. |
| protected List | queries
List of queries - once Project is initialized, these are copied to the Session. |
| protected boolean | queryCacheForceDeferredLocks
Force all queries and relationships to use deferred lock strategy during object building and L2 cache population. |
| protected Map | sqlResultSetMappings
This a collection of 'maps' that allow users to map custom SQL to query results |
| protected Collection | |
| protected String | vpdIdentifier
VPD connection settings |
| protected String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | Project(DatabaseLogin login)
PUBLIC: Create a new project that will connect through JDBC using the login information. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | addDefaultReadOnlyClass(Class<?> readOnlyClass)
PUBLIC: Add the read-only class which apply to each UnitOfWork created by default. |
| public void | addDescriptor(ClassDescriptor descriptor)
Implements abstract org. |
| public void | addDescriptor(final ClassDescriptor
The descriptor to be added to the session and the project. descriptor, final DatabaseSessionImpl The current database session. session)INTERNAL: Used by the BuilderInterface when reading a Project from INI files. |
| public void | addDescriptors(final Collection<E>
The descriptors to be added to the session and the project. descriptors, final DatabaseSessionImpl The current database session. session)INTERNAL: Add the descriptors to the session. |
| public void | addDescriptors(Project project, DatabaseSessionImpl session)
PUBLIC: Merge the descriptors from another project into this one. |
| public void | |
| public void | addJPATablePerTenantQuery(DatabaseQuery query)
INTERNAL: Return all pre-defined not yet parsed EJBQL queries to table per tenant entities. |
| public void | addMappedSuperclass(String
(Metadata class) key, ClassDescriptor (RelationalDescriptor) value, boolean replace)INTERNAL: 266912: Add a descriptor to the Map of mappedSuperclass descriptors |
| public void | addMetamodelIdClassMapEntry(String ownerName, String name)
INTERNAL: Add an IdClass entry to the map of ids for a particular owner This function is used exclusively by the Metamodel API. |
| public void | addPartitioningPolicy(PartitioningPolicy partitioningPolicy)
PUBLIC: Set the map of partitioning policies, keyed by name. |
| public void | addSQLResultSetMapping(SQLResultSetMapping sqlResultSetMapping)
PUBLIC: Add a named SQLResultSetMapping to this project. |
| public boolean | allowExtendedCacheLogging()
INTERNAL: Return true if extended logging of JPA L2 cache usage is allowed on this project. |
| public boolean | allowExtendedThreadLogging()
INTERNAL: Return true if extended thread logging is allowed on this project. |
| public boolean | allowExtendedThreadLoggingThreadDump()
INTERNAL: Return true if thread dumps will be added to extended thread logging. |
| public boolean | |
| public boolean | |
| public boolean | allowTablePerMultitenantDDLGeneration()
INTERNAL: Return true if native sql is allowed on this project. |
| public void | |
| public void | assumeExistenceForDoesExist()
PUBLIC: Switch all descriptors to assume existence for non-null primary keys. |
| public void | |
| public void | |
| public Project | |
| public void | conformAllDescriptors()
PUBLIC: Set all this project's descriptors to conform all read queries within the context of the unit of work. |
| public void | convertClassNamesToClasses(ClassLoader classLoader)
Implements abstract org. |
| public DatabaseSession | createDatabaseSession()
Implements abstract org. |
| public Server | |
| public Server | |
| public Server | createServerSession(int initial, int min, int max)
PUBLIC: Factory method to create a server session. |
| public Server | createServerSession(ConnectionPolicy defaultConnectionPolicy)
PUBLIC: Factory method to create a server session. |
| public Map | |
| public Map | getAttributeGroups()
INTERNAL: List of named AttributesGroups that will be copied to the session at initialization time. |
| public ClassDescriptor | |
| public Collection | |
| public Login | getDatasourceLogin()
Implements abstract org. |
| public CacheIsolationType | |
| public Class | |
| public int | |
| public IdValidation | |
| public QueryResultsCachePolicy | getDefaultQueryResultsCachePolicy()
PUBLIC: Return the default values for query caching options for all named queries. |
| public Vector | |
| public boolean | getDefaultTemporalMutable()
PUBLIC: Return the default setting for configuring if dates and calendars are mutable. |
| public ClassDescriptor | getDescriptor(Class<?> theClass)
Implements abstract org. |
| public ClassDescriptor | |
| public Map | |
| public List | |
| public List | getJPATablePerTenantQueries()
INTERNAL: Return all pre-defined not yet parsed JPQL queries to table per tenant entities. |
| public ConcurrentFixedCache | |
| public int | |
| public DatabaseLogin | |
| public ClassDescriptor | getMappedSuperclass(String
- theMetadata class key)INTERNAL: Use the Metadata key parameter to lookup the Descriptor from the Map of mappedSuperclass descriptors |
| public Map | getMappedSuperclassDescriptors()
INTERNAL: Return the Map of RelationalDescriptor objects representing mapped superclass parents keyed by className of the metadata class. |
| public Map | getMetamodelIdClassMap()
INTERNAL: Return the Map of IdClass attribute lists keyed on owner class name. |
| public MultitenantPolicy | |
| public String | |
| public List | getOrderedDescriptors()
Implements abstract org. |
| public Map | |
| public PartitioningPolicy | |
| public List | |
| public SQLResultSetMapping | getSQLResultSetMapping(String sqlResultSetMapping)
PUBLIC: Get a named SQLResultSetMapping from this project. |
| public Collection | getStructConverters()
INTERNAL: Returns structure converter class names that would be set on the databasePlatform instance This is used to avoid the platform instance changing at login. |
| public String | |
| public String | getVPDLastIdentifierClassName()
INTERNAL: Return the name of the last class to set a VPD identifiers. |
| public boolean | hasGenericHistorySupport()
INTERNAL: Answers if at least one Descriptor or Mapping had a HistoryPolicy at initialize time. |
| public boolean | hasIsolatedCacheClassWithoutUOWIsolation()
INTERNAL: Return whether this project has a descriptor that is both Isolated and has a cache isolation level other than ISOLATE_CACHE_ALWAYS |
| public boolean | |
| public boolean | hasMappedSuperclass(String className)
INTERNAL: Return whether the given class is mapped as superclass. |
| public boolean | |
| public boolean | hasMappingsPostCalculateChangesOnDeleted()
INTERNAL: Indicates whether there is at least one descriptor that has at least on mapping that require a call on deleted objects to update change sets. |
| public boolean | |
| public boolean | |
| public boolean | hasSQLResultSetMapping(String sqlResultSetMapping)
PUBLIC: Return true if the sql result set mapping name exists. |
| public boolean | hasVPDIdentifier(AbstractSession session)
PUBLIC: Return true if there is a VPD identifier for this project. |
| public boolean | isAllowQueryResultsCacheValidation()
INTERNAL: Flag that allows query result cache validation or not. |
| public boolean | isQueryCacheForceDeferredLocks()
PUBLIC: Get property to Force all queries and relationships to use deferred lock strategy during object building and L2 cache population. |
| public boolean | namingIntoIndexed()
INTERNAL: Return true is allowed to transform named stored procedure parameters into positional/index based. |
| public void | setAliasDescriptors(Map<String, ClassDescriptor> aHashtable)
INTERNAL: Set the alias descriptors hashtable. |
| public void | setAllowExtendedCacheLogging(boolean allowExtendedCacheLogging)
INTERNAL: Set whether extended logging of JPA L2 cache usage is allowed on this project. |
| public void | setAllowExtendedThreadLogging(boolean allowExtendedThreadLogging)
INTERNAL: Set whether extended thread logging is allowed on this project. |
| public void | setAllowExtendedThreadLoggingThreadDump(boolean allowExtendedThreadLoggingThreadDump)
INTERNAL: Set if thread dumps will be added to extended thread logging. |
| public void | setAllowNativeSQLQueries(boolean allowNativeSQLQueries)
INTERNAL: Set whether native sql is allowed on this project. |
| public void | setAllowQueryResultsCacheValidation(boolean allowQueryResultsCacheValidation)
INTERNAL: Set to true to enable query result cache validation or not. |
| public void | setAllowSQLDeferral(boolean allowSQLDeferral)
INTERNAL: Set whether sql deferral is allowed on this project |
| public void | setAllowTablePerMultitenantDDLGeneration(boolean allowTablePerMultitenantDDLGeneration)
INTERNAL: Set whether ddl generation should allowed for table per tenant multitenant descriptors. |
| public void | setClassNamesForWeaving(Collection<String> classNamesForWeaving)
INTERNAL: Returns all classes in this project that are needed for weaving. |
| public void | setDatasourceLogin(Login datasourceLogin)
PUBLIC: Set the login to be used to connect to the database for this project. |
| public void | setDefaultCacheIsolation(CacheIsolationType isolationType)
PUBLIC: Set project level default value for class cache isolation. |
| public void | setDefaultIdentityMapClass(Class<? extends IdentityMap> defaultIdentityMapClass)
PUBLIC: Set default value for descriptor cache type. |
| public void | setDefaultIdentityMapSize(int defaultIdentityMapSize)
PUBLIC: Set default value descriptor cache size. |
| public void | setDefaultIdValidation(IdValidation defaultIdValidation)
PUBLIC: Set default value for descriptor primary key validation. |
| public void | setDefaultQueryResultsCachePolicy(QueryResultsCachePolicy defaultQueryResultsCachePolicy)
PUBLIC: Set the default values for query caching options for all named queries. |
| public void | setDefaultReadOnlyClasses(Collection<E> newValue)
PUBLIC: Set the read-only classes which apply to each UnitOfWork create by default. |
| public void | setDefaultTemporalMutable(boolean defaultTemporalMutable)
PUBLIC: Set the default setting for configuring if dates and calendars are mutable. |
| public void | setDeferModificationsUntilCommit(int deferralLevel)
ADVANCED: This method is a 'helper' method for updating all of the descriptors within this project to have a particular deferral level. |
| public void | |
| public void | setHasGenericHistorySupport(boolean hasGenericHistorySupport)
INTERNAL: Set to true during descriptor initialize if any descriptor has history. |
| public void | setHasIsolatedClasses(boolean hasIsolatedClasses)
INTERNAL: Set to true during descriptor initialize if any descriptor is isolated. |
| public void | setHasMappingsPostCalculateChangesOnDeleted(boolean hasMappingsPostCalculateChangesOnDeleted)
INTERNAL: Indicates whether there is at least one descriptor that has at least on mapping that require a call on deleted objects to update change sets. |
| public void | setHasNonIsolatedUOWClasses(boolean hasNonIsolatedUOWClasses)
INTERNAL: Set if any descriptors are not isolated to the unit of work. |
| public void | setHasProxyIndirection(boolean hasProxyIndirection)
INTERNAL: Set to true during descriptor initialize if any descriptor uses ProxyIndirection Determines if ProxyIndirectionPolicy.getValueFromProxy should be called. |
| protected void | |
| public void | |
| public void | setLogin(DatabaseLogin datasourceLogin)
Implements abstract org. |
| public void | setLogin(Login datasourceLogin)
Implements abstract org. |
| public void | |
| public void | |
| public void | setNamingIntoIndexed(boolean namingIntoIndexed)
INTERNAL: Set whether named stored procedure parameters is allowed to transform into positional/index based. |
| public void | |
| public void | setPartitioningPolicies(Map<String, PartitioningPolicy> partitioningPolicies)
PUBLIC: Set the map of partitioning policies, keyed by name. |
| public void | |
| public void | setQueryCacheForceDeferredLocks(boolean queryCacheForceDeferredLocks)
PUBLIC: Set property to Force all queries and relationships to use deferred lock strategy during object building and L2 cache population. |
| public void | setStructConverters(Collection<String> structConverters)
INTERNAL: Returns structure converter class names that would be set on the databasePlatform instance This is used to avoid the platform instance changing at login. |
| public void | |
| public void | setVPDLastIdentifierClassName(String vpdLastIdentifierClassName)
INTERNAL: Set from individual descriptors from the project that set a VPD identifier and used in validation exception. |
| public String | |
| public void | |
| public void | useCacheIdentityMap(int cacheSize)
PUBLIC: Switch all descriptors to use the cache identity map the size. |
| public void | |
| public void | useFullIdentityMap(int initialCacheSize)
PUBLIC: Switch all descriptors to use the full identity map with initial cache size. |
| public void | |
| public void | useSoftCacheWeakIdentityMap()
PUBLIC: Switch all descriptors to use the soft cache weak identity map. |
| public void | useSoftCacheWeakIdentityMap(int cacheSize)
PUBLIC: Switch all descriptors to use the soft cache weak identity map with soft cache size. |
| public boolean | |
| public boolean | |
| public void | |
| public void | useWeakIdentityMap(int initialCacheSize)
PUBLIC: Switch all descriptors to use the weak identity map. |