public class ClassDescriptor extends CoreDescriptor<AttributeGroup,DescriptorEventManager,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,java.util.Vector,org.eclipse.persistence.internal.descriptors.ObjectBuilder> implements java.lang.Cloneable, java.io.Serializable
Purpose: Abstract descriptor class for defining persistence information on a class. This class provides the data independent behavior and is subclassed, for relational, object-relational, EIS, XML, etc.
Modifier and Type | Field and Description |
---|---|
protected java.util.List<AttributeAccessor> |
accessorTree
A list of AttributeAccessors in order of access from root to leaf to arrive at current AggregateDescriptor.
|
protected java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> |
additionalAggregateCollectionKeyFields
used by aggregate descriptors to hold additional fields needed when they are stored in an AggregatateCollection
These fields are generally foreign key fields that are required in addition to the fields in the descriptor's
mappings to uniquely identify the Aggregate
|
protected java.util.Map<org.eclipse.persistence.internal.helper.DatabaseTable,java.util.Map<org.eclipse.persistence.internal.helper.DatabaseField,org.eclipse.persistence.internal.helper.DatabaseField>> |
additionalTablePrimaryKeyFields |
protected java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> |
additionalWritableMapKeyFields
stores fields that are written by Map key mappings so they can be checked for multiple writable mappings
|
protected static int |
AGGREGATE |
protected static int |
AGGREGATE_COLLECTION |
protected java.lang.String |
alias |
protected java.util.Vector<org.eclipse.persistence.internal.helper.DatabaseField> |
allFields |
protected java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> |
allSelectionFields |
protected java.lang.Class |
amendmentClass |
protected java.lang.String |
amendmentClassName |
protected java.lang.String |
amendmentMethodName |
protected CacheInvalidationPolicy |
cacheInvalidationPolicy |
protected CachePolicy |
cachePolicy |
protected boolean |
cascadedLockingInitialized
INTERNAL: flag to indicate the initialization state of cascade locking for this descriptor
|
protected java.util.List<org.eclipse.persistence.internal.descriptors.CascadeLockingPolicy> |
cascadeLockingPolicies |
protected ObjectChangePolicy |
changePolicy |
protected CMPPolicy |
cmpPolicy |
protected java.util.Vector |
constraintDependencies |
protected CopyPolicy |
copyPolicy |
protected java.lang.String |
copyPolicyClassName |
protected QueryRedirector |
defaultDeleteObjectQueryRedirector |
protected java.lang.String |
defaultDeleteObjectQueryRedirectorClassName |
protected QueryRedirector |
defaultInsertObjectQueryRedirector |
protected java.lang.String |
defaultInsertObjectQueryRedirectorClassName |
protected QueryRedirector |
defaultQueryRedirector |
protected java.lang.String |
defaultQueryRedirectorClassName |
protected QueryRedirector |
defaultReadAllQueryRedirector |
protected java.lang.String |
defaultReadAllQueryRedirectorClassName |
protected QueryRedirector |
defaultReadObjectQueryRedirector |
protected java.lang.String |
defaultReadObjectQueryRedirectorClassName |
protected QueryRedirector |
defaultReportQueryRedirector |
protected java.lang.String |
defaultReportQueryRedirectorClassName |
protected org.eclipse.persistence.internal.helper.DatabaseTable |
defaultTable |
protected QueryRedirector |
defaultUpdateObjectQueryRedirector |
protected java.lang.String |
defaultUpdateObjectQueryRedirectorClassName |
protected java.util.Map<java.lang.String,DatabaseMapping> |
derivesIdMappings |
protected java.lang.String |
descriptorCustomizerClassName
JPA DescriptorCustomizer list stored here to preserve it when caching the project
|
protected int |
descriptorType |
static int |
DO_NOT_SEND_CHANGES |
protected static int |
ERROR |
protected FetchGroupManager |
fetchGroupManager |
protected java.util.Vector<org.eclipse.persistence.internal.helper.DatabaseField> |
fields |
protected java.util.Set<org.eclipse.persistence.internal.helper.DatabaseField> |
foreignKeyValuesForCaching
Stores a set of FK fields that will be cached to later retrieve noncacheable mappings
|
protected boolean |
hasMultipleTableConstraintDependecy
Defines if any mapping reference a field in a secondary table.
|
protected boolean |
hasNoncacheableMappings
caches if this descriptor has any non cacheable mappings
|
protected boolean |
hasRelationships
whether this descriptor has any relationships through its mappings, through inheritance, or through aggregates
|
protected boolean |
hasSimplePrimaryKey
PERF: Compute and store if the primary key is simple (direct-mapped) to allow fast extraction.
|
protected HistoryPolicy |
historyPolicy |
protected IdValidation |
idValidation
Allow zero primary key validation to be configured.
|
protected int |
initializationStage |
protected static int |
INITIALIZED |
protected static int |
INTERFACE |
protected int |
interfaceInitializationStage |
protected InterfacePolicy |
interfacePolicy |
static int |
INVALIDATE_CHANGED_OBJECTS |
protected boolean |
isCascadeOnDeleteSetOnDatabaseOnSecondaryTables
Support delete cascading on the database for multiple and inheritance tables.
|
protected boolean |
isNativeConnectionRequired
Allow connection unwrapping to be configured.
|
static int |
ISOLATE_CACHE_AFTER_TRANSACTION |
static int |
ISOLATE_CACHE_ALWAYS |
static int |
ISOLATE_FROM_CLIENT_SESSION |
static int |
ISOLATE_NEW_DATA_AFTER_TRANSACTION |
protected java.lang.Class |
javaClass |
protected java.lang.String |
javaClassName |
protected java.util.List<DatabaseMapping> |
lockableMappings |
protected java.util.Vector<DatabaseMapping> |
mappings |
protected java.util.List<DatabaseMapping> |
mappingsPostCalculateChanges
Mappings that require postCalculateChanges method to be called
|
protected java.util.List<DatabaseMapping> |
mappingsPostCalculateChangesOnDeleted
Mappings that require postCalculateChangesOnDeleted method to be called
|
protected java.util.Map<org.eclipse.persistence.internal.helper.DatabaseTable,java.util.Set<org.eclipse.persistence.internal.helper.DatabaseTable>> |
multipleTableForeignKeys |
protected java.util.List<org.eclipse.persistence.internal.helper.DatabaseTable> |
multipleTableInsertOrder |
protected MultitenantPolicy |
multitenantPolicy |
protected static int |
NORMAL
Define valid descriptor types.
|
protected org.eclipse.persistence.internal.descriptors.OptimisticLockingPolicy |
optimisticLockingPolicy |
protected PartitioningPolicy |
partitioningPolicy |
protected java.lang.String |
partitioningPolicyName |
protected static int |
POST_INITIALIZED |
protected java.util.List<DatabaseMapping> |
preDeleteMappings
stores a list of mappings that require preDelete as a group prior to the delete individually
|
protected static int |
PREINITIALIZED |
protected java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> |
primaryKeyFields |
protected java.util.List<IdValidation> |
primaryKeyIdValidations
Allow zero primary key validation to be configured per field.
|
protected java.util.Map |
properties
Additional properties may be added.
|
protected java.util.Map<java.lang.String,QueryKey> |
queryKeys |
protected DescriptorQueryManager |
queryManager |
protected java.util.Set<ClassDescriptor> |
referencingClasses |
protected ReturningPolicy |
returningPolicy |
protected java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> |
selectionFields |
static int |
SEND_NEW_OBJECTS_WITH_CHANGES |
static int |
SEND_OBJECT_CHANGES |
protected Sequence |
sequence
Store the Sequence used for the descriptor.
|
protected org.eclipse.persistence.internal.helper.DatabaseField |
sequenceNumberField |
protected java.lang.String |
sequenceNumberName |
protected SerializedObjectPolicy |
serializedObjectPolicy |
protected java.lang.String |
sessionName |
protected boolean |
shouldAcquireCascadedLocks
PERF: Used to optimize cache locking to only acquire deferred locks when required (no-indirection).
|
protected boolean |
shouldAlwaysConformResultsInUnitOfWork |
protected boolean |
shouldBeReadOnly |
protected boolean |
shouldLockForClone
This flag controls if a UOW should acquire locks for clone or simple clone the instance passed to registerExistingObject.
|
protected boolean |
shouldOrderMappings |
protected boolean |
shouldRegisterResultsInUnitOfWork |
static boolean |
shouldUseFullChangeSetsForNewObjects
INTERNAL: Backdoor for using changes sets for new objects.
|
protected java.util.Vector<org.eclipse.persistence.internal.helper.DatabaseTable> |
tables |
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
unconvertedProperties
Allow the user to defined un-converted properties which will be initialized at runtime.
|
static int |
UNDEFINED_ISOLATATION |
static int |
UNDEFINED_OBJECT_CHANGE_BEHAVIOR |
protected static int |
UNINITIALIZED
The following are the [initializationStage] states the descriptor passes through during the initialization.
|
static int |
USE_SESSION_CACHE_AFTER_TRANSACTION |
protected java.util.List<org.eclipse.persistence.internal.descriptors.VirtualAttributeMethodInfo> |
virtualAttributeMethods
A list of methods that are used by virtual mappings.
|
protected boolean |
weavingUsesPropertyAccess
This flag stores whether this descriptor is using Property access based on JPA semantics.
|
protected WrapperPolicy |
wrapperPolicy |
attributeGroups, eventManager, field, inheritancePolicy, instantiationPolicy, objectBuilder
Constructor and Description |
---|
ClassDescriptor()
PUBLIC:
Return a new descriptor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAbstractQueryKey(java.lang.String queryKeyName)
PUBLIC:
This method should only be used for interface descriptors.
|
void |
addCascadeLockingPolicy(org.eclipse.persistence.internal.descriptors.CascadeLockingPolicy policy)
INTERNAL:
Add the cascade locking policy to all children that have a relationship to this descriptor
either by inheritance or by encapsulation/aggregation.
|
void |
addConstraintDependencies(java.lang.Class dependencies)
ADVANCED:
EclipseLink automatically orders database access through the foreign key information provided in 1:1 and 1:m mappings.
|
void |
addConstraintDependency(java.lang.Class dependencies)
ADVANCED:
EclipseLink automatically orders database access through the foreign key information provided in 1:1 and 1:m mappings.
|
DatabaseMapping |
addDirectMapping(java.lang.String attributeName,
java.lang.String fieldName)
PUBLIC:
Add a direct to field mapping to the receiver.
|
DatabaseMapping |
addDirectMapping(java.lang.String attributeName,
java.lang.String getMethodName,
java.lang.String setMethodName,
java.lang.String fieldName)
PUBLIC:
Add a direct to field mapping to the receiver.
|
void |
addDirectQueryKey(java.lang.String queryKeyName,
java.lang.String fieldName)
PUBLIC:
Add a query key to the descriptor.
|
void |
addForeignKeyFieldForMultipleTable(org.eclipse.persistence.internal.helper.DatabaseField sourceForeignKeyField,
org.eclipse.persistence.internal.helper.DatabaseField targetPrimaryKeyField)
PUBLIC:
This protocol can be used to associate multiple tables with foreign key
information.
|
void |
addForeignKeyFieldNameForMultipleTable(java.lang.String sourceForeignKeyFieldName,
java.lang.String targetPrimaryKeyFieldName)
PUBLIC:
This protocol can be used to associate multiple tables with foreign key
information.
|
DatabaseMapping |
addMapping(DatabaseMapping mapping)
PUBLIC:
Add a database mapping to the receiver.
|
void |
addMappingsPostCalculateChanges(DatabaseMapping mapping)
Add a mapping to the list of mappings that require postCalculateChanges method to be called.
|
void |
addMappingsPostCalculateChangesOnDeleted(DatabaseMapping mapping)
Add a mapping to the list of mappings that require mappingsPostCalculateChangesOnDeleted method to be called.
|
void |
addPreDeleteMapping(DatabaseMapping mapping)
INTERNAL:
Add the mapping to be notified before deletion.
|
void |
addPrimaryKeyField(org.eclipse.persistence.internal.helper.DatabaseField field)
ADVANCED:
Specify the primary key field of the descriptors table.
|
void |
addPrimaryKeyFieldName(java.lang.String fieldName)
PUBLIC:
Specify the primary key field of the descriptors table.
|
void |
addQueryKey(QueryKey queryKey)
PUBLIC:
Add a query key to the descriptor.
|
void |
addTable(org.eclipse.persistence.internal.helper.DatabaseTable table)
PUBLIC:
Specify the table for the class of objects the receiver describes.
|
void |
addTableName(java.lang.String tableName)
PUBLIC:
Specify the table name for the class of objects the receiver describes.
|
void |
addUnconvertedProperty(java.lang.String propertyName,
java.lang.String propertyValue,
java.lang.String propertyType)
PUBLIC:
Add an unconverted property (to be initialiazed at runtime)
|
void |
adjustMultipleTableInsertOrder()
INTERNAL:
Adjust the order of the tables in the multipleTableInsertOrder Vector according to the FK
relationship if one (or more) were previously specified.
|
void |
alwaysConformResultsInUnitOfWork()
PUBLIC:
Used to set the descriptor to always conform in any unit of work query.
|
void |
alwaysRefreshCache()
PUBLIC:
This method is the equivalent of calling
setShouldAlwaysRefreshCache(boolean) with an argument of true :
it configures a ClassDescriptor to always refresh the cache if data is received from the database by any query. |
void |
alwaysRefreshCacheOnRemote()
PUBLIC:
This method is the equivalent of calling
setShouldAlwaysRefreshCacheOnRemote(boolean) with an argument of true :
it configures a ClassDescriptor to always remotely refresh the cache if data is received from the database by any
query in a RemoteSession . |
void |
applyAmendmentMethod()
ADVANCED:
Call the descriptor amendment method.
|
void |
applyAmendmentMethod(DescriptorEvent event)
INTERNAL:
Call the descriptor amendment method.
|
boolean |
arePrimaryKeyFields(java.util.Vector fields)
INTERNAL:
Used to determine if a foreign key references the primary key.
|
protected void |
assignDefaultValues(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Some attributes have default values defined in Project.
|
Expression |
buildBatchCriteriaByPK(ExpressionBuilder builder,
ObjectLevelReadQuery query)
INTERNAL:
Return the selection criteria used to IN batch fetching.
|
org.eclipse.persistence.internal.databaseaccess.DatasourceCall |
buildCallFromStatement(org.eclipse.persistence.internal.expressions.SQLStatement statement,
DatabaseQuery query,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Return a call built from a statement.
|
java.util.Vector |
buildDirectValuesFromFieldValue(java.lang.Object fieldValue)
INTERNAL:
Extract the direct values from the specified field value.
|
org.eclipse.persistence.internal.helper.DatabaseField |
buildField(org.eclipse.persistence.internal.helper.DatabaseField field)
INTERNAL:
The table of the field is ensured to be unique from the descriptor's tables.
|
org.eclipse.persistence.internal.helper.DatabaseField |
buildField(org.eclipse.persistence.internal.helper.DatabaseField field,
org.eclipse.persistence.internal.helper.DatabaseTable relationTable) |
org.eclipse.persistence.internal.helper.DatabaseField |
buildField(java.lang.String fieldName)
INTERNAL:
A DatabaseField is built from the given field name.
|
java.lang.Object |
buildFieldValueFromDirectValues(java.util.Vector directValues,
java.lang.String elementDataTypeName,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Build the appropriate field value for the specified
set of direct values.
|
java.lang.Object |
buildFieldValueFromForeignKeys(java.util.Vector foreignKeys,
java.lang.String referenceDataTypeName,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Build and return the appropriate field value for the specified
set of foreign keys (i.e. each row has the fields that
make up a foreign key).
|
java.lang.Object |
buildFieldValueFromNestedRow(org.eclipse.persistence.internal.sessions.AbstractRecord nestedRow,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Build and return the field value from the specified nested database row.
|
java.lang.Object |
buildFieldValueFromNestedRows(java.util.Vector nestedRows,
java.lang.String structureName,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Build and return the appropriate field value for the specified
set of nested rows.
|
org.eclipse.persistence.internal.sessions.AbstractRecord |
buildNestedRowFromFieldValue(java.lang.Object fieldValue)
INTERNAL:
Build and return the nested database row from the specified field value.
|
java.util.Vector |
buildNestedRowsFromFieldValue(java.lang.Object fieldValue,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Build and return the nested rows from the specified field value.
|
protected void |
checkDatabase(org.eclipse.persistence.internal.sessions.AbstractSession session)
To check that tables and fields are present in database
|
void |
checkInheritanceTreeAggregateSettings(org.eclipse.persistence.internal.sessions.AbstractSession session,
AggregateMapping mapping)
INTERNAL:
Verify that an aggregate descriptor's inheritance tree
is full of aggregate descriptors.
|
java.lang.Object |
clone()
INTERNAL:
Clones the descriptor
|
void |
convertClassNamesToClasses(java.lang.ClassLoader classLoader)
INTERNAL:
Convert all the class-name-based settings in this Descriptor to actual class-based
settings.
|
void |
createCopyPolicy(java.lang.String policyType)
PUBLIC:
Create a copy policy of the type passed in as a string.
|
void |
createInstantiationPolicy(java.lang.String policyType)
PUBLIC:
Create a instantiation policy of the type passed in as a string.
|
protected void |
createMultipleTableInsertOrder()
INTERNAL:
Create multiple table insert order.
|
protected void |
createMultipleTableInsertOrderFromComparison(int[][] tableComparison,
int nStart)
INTERNAL:
This helper method creates multipleTableInsertOrderFromComparison using comparison matrix
created by createTableComparison(getTables()) method call.
|
protected int[][] |
createTableComparison(java.util.List<org.eclipse.persistence.internal.helper.DatabaseTable> tables,
int nStart)
INTERNAL:
This helper method creates a matrix that contains insertion order comparison for the tables.
|
protected boolean |
createTableOrder(int k,
int nTables,
int[] tableOrder,
int[][] tableComparison)
INTERNAL:
This helper method recursively puts indexes from 0 to nTables-1 into tableOrder according to tableComparison 2 dim array.
|
void |
descriptorIsAggregate()
PUBLIC:
Sets the descriptor to be an aggregate.
|
void |
descriptorIsAggregateCollection()
PUBLIC:
Sets the descriptor to be part of an aggregate collection.
|
void |
descriptorIsForInterface()
PUBLIC:
Sets the descriptor to be for an interface.
|
void |
descriptorIsNormal()
PUBLIC:
Sets the descriptor to be normal.
|
void |
disableCacheHits()
PUBLIC:
Allow for cache hits on primary key read object queries to be disabled.
|
void |
disableCacheHitsOnRemote()
PUBLIC:
Allow for remote session cache hits on primary key read object queries to be disabled.
|
void |
dontAlwaysConformResultsInUnitOfWork()
PUBLIC:
The descriptor is defined to not conform the results in unit of work in read query.
|
void |
dontAlwaysRefreshCache()
PUBLIC:
This method is the equivalent of calling
setShouldAlwaysRefreshCache(boolean) with an argument of false :
it ensures that a ClassDescriptor is not configured to always refresh the cache if data is received from the database by any query. |
void |
dontAlwaysRefreshCacheOnRemote()
PUBLIC:
This method is the equivalent of calling
setShouldAlwaysRefreshCacheOnRemote(boolean) with an argument of false :
it ensures that a ClassDescriptor is not configured to always remotely refresh the cache if data is received from the
database by any query in a RemoteSession . |
void |
dontDisableCacheHits()
PUBLIC:
Allow for cache hits on primary key read object queries.
|
void |
dontDisableCacheHitsOnRemote()
PUBLIC:
Allow for remote session cache hits on primary key read object queries.
|
void |
dontOnlyRefreshCacheIfNewerVersion()
PUBLIC:
This method is the equivalent of calling
setShouldOnlyRefreshCacheIfNewerVersion(boolean) with an argument of false :
it ensures that a ClassDescriptor is not configured to only refresh the cache if the data received from the database by
a query is newer than the data in the cache (as determined by the optimistic locking field). |
protected org.eclipse.persistence.internal.helper.DatabaseTable |
extractDefaultTable()
INTERNAL:
The first table in the tables is always treated as default.
|
java.util.List<AttributeAccessor> |
getAccessorTree() |
java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> |
getAdditionalAggregateCollectionKeyFields()
INTERNAL:
additionalAggregateCollectionKeyFields are used by aggregate descriptors to hold additional fields needed when they are stored in an AggregatateCollection
These fields are generally foreign key fields that are required in addition to the fields in the descriptor's
mappings to uniquely identify the Aggregate
|
java.util.Map<org.eclipse.persistence.internal.helper.DatabaseTable,java.util.Map<org.eclipse.persistence.internal.helper.DatabaseField,org.eclipse.persistence.internal.helper.DatabaseField>> |
getAdditionalTablePrimaryKeyFields()
INTERNAL:
This is used to map the primary key field names in a multiple table descriptor.
|
java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> |
getAdditionalWritableMapKeyFields()
INTERNAL:
Return a list of fields that are written by map keys
Used to determine if there is a multiple writable mappings issue
|
java.lang.String |
getAlias()
PUBLIC:
Get the alias
|
java.util.Vector<org.eclipse.persistence.internal.helper.DatabaseField> |
getAllFields()
INTERNAL:
Return all the fields which include all child class fields.
|
java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> |
getAllSelectionFields()
INTERNAL:
Return all selection fields which include all child class fields.
|
java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> |
getAllSelectionFields(ObjectLevelReadQuery query)
INTERNAL:
Return all selection fields which include all child class fields.
|
java.lang.Class |
getAmendmentClass()
PUBLIC:
Return the amendment class.
|
java.lang.String |
getAmendmentClassName()
INTERNAL:
Return amendment class name, used by the MW.
|
java.lang.String |
getAmendmentMethodName()
PUBLIC:
Return the amendment method.
|
AttributeGroup |
getAttributeGroup(java.lang.String name)
PUBLIC:
Returns the attribute group corresponding to the name provided.
|
java.util.Map<java.lang.String,AttributeGroup> |
getAttributeGroups()
ADVANCED:
Returns the attribute groups for this Descriptor.
|
java.lang.Class |
getCacheInterceptorClass()
A CacheInterceptor is an adaptor that when overridden and assigned to a Descriptor all interaction
between EclipseLink and the internal cache for that class will pass through the Interceptor.
|
java.lang.String |
getCacheInterceptorClassName()
A CacheInterceptor is an adaptor that when overridden and assigned to a Descriptor all interaction
between EclipseLink and the internal cache for that class will pass through the Interceptor.
|
CacheInvalidationPolicy |
getCacheInvalidationPolicy()
PUBLIC:
Return the CacheInvalidationPolicy for this descriptor
For uninitialized cache invalidation policies, this will return a NoExpiryCacheInvalidationPolicy
|
CacheIsolationType |
getCacheIsolation()
PUBLIC:
Controls how the Entity instances will be cached.
|
CacheKeyType |
getCacheKeyType()
ADVANCED:
Return what cache key type to use to store the object in the cache.
|
CachePolicy |
getCachePolicy()
Return the cache policy.
|
int |
getCacheSynchronizationType()
PUBLIC:
Get a value indicating the type of cache synchronization that will be used on objects of
this type.
|
java.util.List<org.eclipse.persistence.internal.descriptors.CascadeLockingPolicy> |
getCascadeLockingPolicies()
INTERNAL:
|
CMPPolicy |
getCMPPolicy()
ADVANCED:
Return the cmp descriptor that holds cmp specific information.
|
java.util.Vector |
getConstraintDependencies()
ADVANCED:
automatically orders database access through the foreign key information provided in 1:1 and 1:m mappings.
|
CopyPolicy |
getCopyPolicy()
INTERNAL:
Returns the copy policy.
|
java.lang.String |
getCopyPolicyClassName()
INTERNAL:
Returns the name of a Class that implements CopyPolicy
Will be instantiated as a copy policy at initialization times
using the no-args constructor
|
QueryRedirector |
getDefaultDeleteObjectQueryRedirector()
A Default DeleteObjectQuery Redirector will be applied to any executing
DeleteObjectQuery or DeleteAllQuery that does not have a redirector set directly on the query.
|
FetchGroup |
getDefaultFetchGroup()
INTERNAL:
Return the default fetch group on the descriptor.
|
QueryRedirector |
getDefaultInsertObjectQueryRedirector()
A Default InsertObjectQuery Redirector will be applied to any executing
InsertObjectQuery that does not have a redirector set directly on the query.
|
QueryRedirector |
getDefaultQueryRedirector()
A Default Query Redirector will be applied to any executing object query
that does not have a more precise default (like the default
ReadObjectQuery Redirector) or a redirector set directly on the query.
|
QueryRedirector |
getDefaultReadAllQueryRedirector()
A Default ReadAllQuery Redirector will be applied to any executing
ReadAllQuery that does not have a redirector set directly on the query.
|
QueryRedirector |
getDefaultReadObjectQueryRedirector()
A Default ReadObjectQuery Redirector will be applied to any executing
ReadObjectQuery that does not have a redirector set directly on the query.
|
QueryRedirector |
getDefaultReportQueryRedirector()
A Default ReportQuery Redirector will be applied to any executing
ReportQuery that does not have a redirector set directly on the query.
|
org.eclipse.persistence.internal.helper.DatabaseTable |
getDefaultTable()
INTERNAL:
The first table in the tables is always treated as default.
|
QueryRedirector |
getDefaultUpdateObjectQueryRedirector()
A Default UpdateObjectQuery Redirector will be applied to any executing
UpdateObjectQuery or UpdateAllQuery that does not have a redirector set directly on the query.
|
java.util.Collection<DatabaseMapping> |
getDerivesIdMappinps()
ADVANCED:
Return the derives id mappings.
|
java.lang.String |
getDescriptorCustomizerClassName()
INTERNAL:
DescriptorCustomizer is the JPA equivalent of an amendment method.
|
DescriptorEventManager |
getDescriptorEventManager()
PUBLIC:
Get the event manager for the descriptor.
|
InheritancePolicy |
getDescriptorInheritancePolicy()
PUBLIC:
The inheritance policy is used to define how a descriptor takes part in inheritance.
|
DescriptorQueryManager |
getDescriptorQueryManager()
PUBLIC:
Return the queryManager.
|
int |
getDescriptorType()
ADVANCED:
return the descriptor type (NORMAL by default, others include INTERFACE, AGGREGATE, AGGREGATE COLLECTION)
|
java.lang.String |
getDescriptorTypeValue()
INTERNAL:
This method is explicitly used by the XML reader.
|
DescriptorEventManager |
getEventManager()
PUBLIC:
Get the event manager for the descriptor.
|
FetchGroupManager |
getFetchGroupManager()
PUBLIC:
Get the fetch group manager for the descriptor.
|
java.util.Vector<org.eclipse.persistence.internal.helper.DatabaseField> |
getFields()
INTERNAL:
Return all the fields
|
java.util.Set<org.eclipse.persistence.internal.helper.DatabaseField> |
getForeignKeyValuesForCaching()
INTERNAL:
|
boolean |
getFullyMergeEntity() |
HistoryPolicy |
getHistoryPolicy()
PUBLIC:
Return this descriptor's HistoryPolicy.
|
java.lang.Class |
getIdentityMapClass()
INTERNAL:
Return the class of identity map to be used by this descriptor.
|
int |
getIdentityMapSize()
PUBLIC:
Return the size of the identity map.
|
IdValidation |
getIdValidation()
ADVANCED:
Return what types are allowed as a primary key (id).
|
InheritancePolicy |
getInheritancePolicy()
PUBLIC:
The inheritance policy is used to define how a descriptor takes part in inheritance.
|
InheritancePolicy |
getInheritancePolicyOrNull()
INTERNAL:
Return the inheritance policy.
|
org.eclipse.persistence.internal.descriptors.InstantiationPolicy |
getInstantiationPolicy()
INTERNAL:
Returns the instantiation policy.
|
InterfacePolicy |
getInterfacePolicy()
PUBLIC:
Returns the InterfacePolicy.
|
InterfacePolicy |
getInterfacePolicyOrNull()
INTERNAL:
Returns the InterfacePolicy.
|
java.lang.Class |
getJavaClass()
PUBLIC:
Return the java class.
|
java.lang.String |
getJavaClassName()
Return the class name, used by the MW.
|
java.util.List<DatabaseMapping> |
getLockableMappings()
INTERNAL:
Returns a reference to the mappings that must be traverse when locking
|
DatabaseMapping |
getMappingForAttributeName(java.lang.String attributeName)
PUBLIC:
Returns the mapping associated with a given attribute name.
|
java.util.Vector<DatabaseMapping> |
getMappings()
PUBLIC:
Returns mappings
|
java.util.List<DatabaseMapping> |
getMappingsPostCalculateChanges()
Mappings that require postCalculateChanges method to be called
|
java.util.List<DatabaseMapping> |
getMappingsPostCalculateChangesOnDeleted()
Mappings that require mappingsPostCalculateChangesOnDeleted method to be called
|
java.util.Vector |
getMultipleTableForeignKeyAssociations()
INTERNAL:
Returns the foreign key relationships used for multiple tables which were specified by the user.
|
java.util.Map<org.eclipse.persistence.internal.helper.DatabaseTable,java.util.Set<org.eclipse.persistence.internal.helper.DatabaseTable>> |
getMultipleTableForeignKeys()
INTERNAL:
Returns the foreign key relationships used for multiple tables which were specified by the user.
|
java.util.List<org.eclipse.persistence.internal.helper.DatabaseTable> |
getMultipleTableInsertOrder()
INTERNAL:
Returns the List of DatabaseTables in the order which INSERTS should take place.
|
java.util.Vector |
getMultipleTablePrimaryKeyAssociations()
INTERNAL:
Returns the foreign key relationships used for multiple tables which were specified by the user.
|
MultitenantPolicy |
getMultitenantPolicy()
INTERNAL:
Retun the multitenant policy
|
org.eclipse.persistence.internal.descriptors.ObjectBuilder |
getObjectBuilder()
INTERNAL:
Return the object builder
|
ObjectChangePolicy |
getObjectChangePolicy()
PUBLIC:
Return this objects ObjectChangePolicy.
|
ObjectChangePolicy |
getObjectChangePolicyInternal()
INTERNAL:
Return this objects ObjectChangePolicy and do not lazy initialize
|
org.eclipse.persistence.internal.descriptors.OptimisticLockingPolicy |
getOptimisticLockingPolicy()
PUBLIC:
Returns the OptimisticLockingPolicy.
|
PartitioningPolicy |
getPartitioningPolicy()
PUBLIC:
Return the descriptor's partitioning policy.
|
java.lang.String |
getPartitioningPolicyName()
PUBLIC:
Return the name of the descriptor's partitioning policy.
|
java.util.List<DatabaseMapping> |
getPreDeleteMappings()
INTERNAL:
Set of mappings that require early delete behavior.
|
java.util.Vector<java.lang.String> |
getPrimaryKeyFieldNames()
PUBLIC:
Return the names of all the primary keys.
|
java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> |
getPrimaryKeyFields()
INTERNAL:
Return all the primary key fields
|
java.util.List<IdValidation> |
getPrimaryKeyIdValidations()
ADVANCED:
Return what types are allowed in each primary key field (id).
|
java.util.Map |
getProperties()
PUBLIC:
Returns the user defined properties.
|
java.lang.Object |
getProperty(java.lang.String name)
PUBLIC:
Returns the descriptor property associated the given String.
|
QueryKey |
getQueryKeyNamed(java.lang.String queryKeyName)
INTERNAL:
Return the query key with the specified name
|
java.util.Map<java.lang.String,QueryKey> |
getQueryKeys()
PUBLIC:
Return the query keys.
|
DescriptorQueryManager |
getQueryManager()
PUBLIC:
Return the queryManager.
|
java.lang.Class |
getRemoteIdentityMapClass()
INTERNAL:
Return the class of identity map to be used by this descriptor.
|
int |
getRemoteIdentityMapSize()
PUBLIC:
Return the size of the remote identity map.
|
ReturningPolicy |
getReturningPolicy()
PUBLIC:
Return returning policy.
|
ClassDescriptor |
getRootDescriptor()
PUBLIC:
This method returns the root descriptor for for this descriptor's class heirarchy.
|
java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> |
getSelectionFields()
INTERNAL:
Return all selection fields
|
java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> |
getSelectionFields(ObjectLevelReadQuery query)
INTERNAL:
Return all selection fields
|
Sequence |
getSequence()
Return the descriptor's sequence.
|
org.eclipse.persistence.internal.helper.DatabaseField |
getSequenceNumberField()
INTERNAL:
Get sequence number field
|
java.lang.String |
getSequenceNumberFieldName()
PUBLIC:
Get sequence number field name
|
java.lang.String |
getSequenceNumberName()
PUBLIC:
Get sequence number name
|
SerializedObjectPolicy |
getSerializedObjectPolicy()
INTERNAL:
|
java.lang.String |
getSessionName()
INTERNAL:
Return the name of the session local to this descriptor.
|
org.eclipse.persistence.internal.helper.DatabaseTable |
getTable(java.lang.String tableName)
INTERNAL:
Checks if table name exists with the current descriptor or not.
|
java.lang.String |
getTableName()
PUBLIC:
Return the name of the descriptor's first table.
|
java.util.Vector |
getTableNames()
PUBLIC:
Return the table names.
|
TablePerClassPolicy |
getTablePerClassPolicy()
PUBLIC:
Returns the TablePerClassPolicy.
|
java.util.Vector<org.eclipse.persistence.internal.helper.DatabaseTable> |
getTables()
INTERNAL:
Return all the tables.
|
org.eclipse.persistence.internal.helper.DatabaseField |
getTypedField(org.eclipse.persistence.internal.helper.DatabaseField field)
INTERNAL:
searches first descriptor than its ReturningPolicy for an equal field
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getUnconvertedProperties()
INTERNAL:
Used to store un-converted properties, which are subsequenctly converted
at runtime (through the convertClassNamesToClasses method.
|
int |
getUnitOfWorkCacheIsolationLevel()
ADVANCED:
Return the unit of work cache isolation setting.
|
java.util.List<org.eclipse.persistence.internal.descriptors.VirtualAttributeMethodInfo> |
getVirtualAttributeMethods()
INTERNAL:
Return the list of virtual methods sets for this Entity.
|
WrapperPolicy |
getWrapperPolicy()
ADVANCED:
Return the WrapperPolicy for this descriptor.
|
boolean |
hasCascadeLockingPolicies()
INTERNAL:
|
boolean |
hasCMPPolicy()
INTERNAL:
Return if the descriptor has a CMP policy.
|
boolean |
hasDependencyOnParts()
INTERNAL:
Checks if the class has any private owned parts or other dependencies, (i.e.
|
boolean |
hasDerivedId()
INTERNAL:
returns true if users have designated one or more mappings as IDs.
|
boolean |
hasEventManager()
INTERNAL:
returns true if a DescriptorEventManager has been set.
|
boolean |
hasFetchGroupManager()
INTERNAL:
Return if the descriptor has a fetch group manager associated with.
|
boolean |
hasInheritance()
INTERNAL:
Return if this descriptor is involved in inheritance, (is child or parent).
|
boolean |
hasInterfacePolicy()
INTERNAL:
Return if this descriptor is involved in interface, (is child or parent).
|
boolean |
hasMappingsPostCalculateChanges()
Are there any mappings that require postCalculateChanges method to be called.
|
boolean |
hasMappingsPostCalculateChangesOnDeleted()
Are there any mappings that require mappingsPostCalculateChangesOnDeleted method to be called.
|
boolean |
hasMultipleTableConstraintDependecy()
Return if any mapping reference a field in a secondary table.
|
boolean |
hasMultipleTables()
INTERNAL:
Check if descriptor has multiple tables
|
boolean |
hasMultitenantPolicy()
Return true if the descriptor has a multitenant policy
|
boolean |
hasNestedIdentityReference(boolean withChildren)
INTERNAL:
Calculates whether descriptor references an entity (directly or through a nested mapping).
|
boolean |
hasNoncacheableMappings() |
boolean |
hasPessimisticLockingPolicy()
INTERNAL:
|
boolean |
hasPreDeleteMappings() |
boolean |
hasPrivatelyOwnedParts()
INTERNAL:
Checks if the class has any private owned parts are not
|
boolean |
hasQueryKeyOrMapping(java.lang.String attributeName)
INTERNAL:
Checks to see if it has a query key or mapping with the specified name or not.
|
boolean |
hasRelationships()
INTERNAL:
return whether this descriptor has any relationships through its mappings, through inheritance, or through aggregates
|
boolean |
hasRelationshipsExceptBackpointer(ClassDescriptor descriptor)
INTERNAL:
This method returns true if this descriptor has either a ForeignReferenceMapping to
an object aside from the one described by descriptor or more than one ForeignReferenceMapping
to descriptor.
|
boolean |
hasReturningPolicy()
INTERNAL:
Return if this descriptor has Returning policy.
|
boolean |
hasSerializedObjectPolicy()
INTERNAL:
|
boolean |
hasSimplePrimaryKey()
INTERNAL:
PERF: Return if the primary key is simple (direct-mapped) to allow fast extraction.
|
boolean |
hasTablePerClassPolicy()
INTERNAL:
Return if this descriptor is involved in a table per class inheritance.
|
boolean |
hasTablePerMultitenantPolicy()
PUBLIC
|
boolean |
hasTargetForeignKeyMapping(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Indicates whether descriptor has at least one target foreign key mapping
|
boolean |
hasUnconvertedProperties()
INTERNAL:
Used to store un-converted properties, which are subsequenctly converted
at runtime (through the convertClassNamesToClasses method.
|
boolean |
hasWrapperPolicy()
INTERNAL:
Return if a wrapper policy is used.
|
void |
initialize(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Initialize the mappings as a separate step.
|
void |
initialize(DescriptorQueryManager queryManager,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Initialize the query manager specific to the descriptor type.
|
void |
initializeAggregateInheritancePolicy(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
This initialized method is used exclusively for inheritance.
|
void |
initializeMultipleTablePrimaryKeyFields()
INTERNAL:
Rebuild the multiple table primary key map.
|
protected void |
initializeProperties(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Initialize the descriptor properties such as write lock and sequencing.
|
void |
interfaceInitialization(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Allow the descriptor to initialize any dependencies on this session.
|
boolean |
isAbstract()
INTERNAL:
Convenience method to return true if the java class from this descriptor is abstract.
|
boolean |
isAggregateCollectionDescriptor()
PUBLIC:
Return true if this descriptor is an aggregate collection descriptor
|
boolean |
isAggregateDescriptor()
PUBLIC:
Return true if this descriptor is an aggregate descriptor
|
boolean |
isCascadeOnDeleteSetOnDatabaseOnSecondaryTables()
ADVANCED:
Return if delete cascading has been set on the database for the descriptor's
multiple tables.
|
boolean |
isChildDescriptor()
PUBLIC:
Return if the descriptor defines inheritance and is a child.
|
boolean |
isDescriptorForInterface()
PUBLIC:
Return if the java class is an interface.
|
boolean |
isDescriptorTypeAggregate()
PUBLIC
return true if this descriptor is any type of aggregate descriptor.
|
boolean |
isDescriptorTypeNormal()
INTERNAL:
return true if this descriptor is an entity.
|
boolean |
isEISDescriptor()
PUBLIC:
Return if the descriptor maps to an EIS or NoSQL datasource.
|
boolean |
isFullyInitialized()
INTERNAL:
Check if the descriptor is finished initialization.
|
protected boolean |
isInitialized(int initializationStage)
INTERNAL:
Check if descriptor is already initialized for the level of initialization.
1 = pre
2 = mapping
3 = post
|
boolean |
isInterfaceChildDescriptor()
INTERNAL:
Return if the descriptor defines inheritance and is a child.
|
protected boolean |
isInterfaceInitialized(int interfaceInitializationStage)
INTERNAL:
Check if interface descriptor is already initialized for the level of initialization.
1 = pre
2 = mapping
3 = post
|
boolean |
isInvalid()
INTERNAL:
Return if an error occurred during initialization which should abort any further initialization.
|
boolean |
isIsolated()
PUBLIC:
Returns true if the descriptor represents an isolated class
|
boolean |
isMultipleTableDescriptor()
INTERNAL:
Return if this descriptor has more than one table.
|
boolean |
isNativeConnectionRequired()
ADVANCED:
Return if the descriptor requires usage of a native (unwrapped) JDBC connection.
|
boolean |
isObjectRelationalDataTypeDescriptor()
PUBLIC:
Return if the descriptor maps to an object-relational structured type.
|
boolean |
isPrimaryKeySetAfterInsert(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Indicates whether pk or some of its components
set after insert into the database.
|
boolean |
isProtectedIsolation()
PUBLIC:
Returns true if the descriptor represents an isolated class
|
boolean |
isRelationalDescriptor()
PUBLIC:
Return if the descriptor maps to a relational table.
|
boolean |
isReturnTypeRequiredForReturningPolicy()
INTERNAL:
Indicates if a return type is required for the field set on the
returning policy.
|
boolean |
isSharedIsolation()
PUBLIC:
Returns true if the descriptor represents an isolated class
|
boolean |
isXMLDescriptor()
PUBLIC:
Return if the descriptor maps to XML.
|
DatabaseMapping |
newAggregateCollectionMapping()
Return a new aggregate collection/element collection mapping for this type of descriptor.
|
AggregateMapping |
newAggregateMapping()
Return a new aggregate/embedded mapping for this type of descriptor.
|
DatabaseMapping |
newDirectCollectionMapping()
Return a new direct collection/element collection mapping for this type of descriptor.
|
AbstractDirectMapping |
newDirectMapping()
Return a new direct/basic mapping for this type of descriptor.
|
CollectionMapping |
newManyToManyMapping()
Return a new one to many mapping for this type of descriptor.
|
ObjectReferenceMapping |
newManyToOneMapping()
Return a new many to one mapping for this type of descriptor.
|
CollectionMapping |
newOneToManyMapping()
Return a new one to many mapping for this type of descriptor.
|
ObjectReferenceMapping |
newOneToOneMapping()
Return a new one to one mapping for this type of descriptor.
|
CollectionMapping |
newUnidirectionalOneToManyMapping()
Return a new one to many mapping for this type of descriptor.
|
void |
notifyReferencingDescriptorsOfIsolation(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Configure all descriptors referencing this class to be protected and update their cache settings.
|
void |
onlyRefreshCacheIfNewerVersion()
PUBLIC:
This method is the equivalent of calling
setShouldOnlyRefreshCacheIfNewerVersion(boolean) with an argument of true :
it configures a ClassDescriptor to only refresh the cache if the data received from the database by a query is newer than
the data in the cache (as determined by the optimistic locking field) and as long as one of the following is true:
the ClassDescriptor was configured by calling alwaysRefreshCache() or alwaysRefreshCacheOnRemote() ,
the query was configured by calling ObjectLevelReadQuery.refreshIdentityMapResult() , or
the query was a call to Session.refreshObject(java.lang.Object)
However, if a query hits the cache, data is not refreshed regardless of how this setting is configured. |
void |
postInitialize(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Post initializations after mappings are initialized.
|
void |
preInitialize(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Allow the descriptor to initialize any dependencies on this session.
|
protected void |
preInitializeInheritancePolicy(org.eclipse.persistence.internal.sessions.AbstractSession session)
Hook together the inheritance policy tree.
|
void |
preInterfaceInitialization(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Allow the descriptor to initialize any dependencies on this session.
|
protected void |
prepareCascadeLockingPolicy(DatabaseMapping mapping)
INTERNAL:
|
void |
rehashFieldDependancies(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Rehash any hashtables based on fields.
|
void |
reInitializeJoinedAttributes()
INTERNAL:
A user should not be setting which attributes to join or not to join
after descriptor initialization; provided only for backwards compatibility.
|
void |
remoteInitialization(DistributedSession session)
INTERNAL:
Used to initialize a remote descriptor.
|
DatabaseMapping |
removeMappingForAttributeName(java.lang.String attributeName)
ADVANCED:
Removes the locally defined mapping associated with a given attribute name.
|
void |
removeProperty(java.lang.String property)
PUBLIC:
Remove the user defined property.
|
boolean |
requiresInitialization(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Aggregate and Interface descriptors do not require initialization as they are cloned and
initialized by each mapping.
|
protected void |
selfValidationAfterInitialization(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Validate that the descriptor was defined correctly.
|
protected void |
selfValidationBeforeInitialization(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Validate that the descriptor's non-mapping attribute are defined correctly.
|
void |
setAccessorTree(java.util.List<AttributeAccessor> accessorTree) |
protected void |
setAdditionalTablePrimaryKeyFields(org.eclipse.persistence.internal.helper.DatabaseTable table,
org.eclipse.persistence.internal.helper.DatabaseField field1,
org.eclipse.persistence.internal.helper.DatabaseField field2)
INTERNAL:
This is used to map the primary key field names in a multiple table
descriptor.
|
void |
setAdditionalTablePrimaryKeyFields(java.util.Map<org.eclipse.persistence.internal.helper.DatabaseTable,java.util.Map<org.eclipse.persistence.internal.helper.DatabaseField,org.eclipse.persistence.internal.helper.DatabaseField>> additionalTablePrimaryKeyFields)
INTERNAL:
This is used to map the primary key field names in a multiple table
descriptor.
|
void |
setAlias(java.lang.String alias)
PUBLIC:
Set the alias
|
protected void |
setAllFields(java.util.Vector<org.eclipse.persistence.internal.helper.DatabaseField> allFields)
INTERNAL:
Set all the fields.
|
void |
setAmendmentClass(java.lang.Class amendmentClass)
PUBLIC:
Set the amendment class.
|
void |
setAmendmentClassName(java.lang.String amendmentClassName)
INTERNAL:
Return the amendment class name, used by the MW.
|
void |
setAmendmentMethodName(java.lang.String amendmentMethodName)
PUBLIC:
Set the amendment method.
|
void |
setCacheInterceptorClass(java.lang.Class cacheInterceptorClass)
PUBLIC:
A CacheInterceptor is an adaptor that when overridden and assigned to a Descriptor all interaction
between EclipseLink and the internal cache for that class will pass through the Interceptor.
|
void |
setCacheInterceptorClassName(java.lang.String cacheInterceptorClassName)
PUBLIC:
A CacheInterceptor is an adaptor that when overridden and assigned to a Descriptor all interaction
between EclipseLink and the internal cache for that class will pass through the Interceptor.
|
void |
setCacheInvalidationPolicy(CacheInvalidationPolicy policy)
PUBLIC:
Set the Cache Invalidation Policy for this descriptor.
|
void |
setCacheIsolation(CacheIsolationType isolationType)
PUBLIC:
Controls how the Entity instances and data will be cached.
|
void |
setCacheKeyType(CacheKeyType cacheKeyType)
ADVANCED:
Set what cache key type to use to store the object in the cache.
|
void |
setCachePolicy(CachePolicy cachePolicy)
ADVANCED:
Set cache policy for the descriptor.
|
void |
setCacheSynchronizationType(int type)
PUBLIC:
Set the type of cache synchronization that will be used on objects of this type.
|
void |
setCMPPolicy(CMPPolicy newCMPPolicy)
ADVANCED:
Set the cmp descriptor that holds cmp specific information.
|
void |
setConstraintDependencies(java.util.Vector constraintDependencies)
ADVANCED:
automatically orders database access through the foreign key information provided in 1:1 and 1:m mappings.
|
void |
setCopyPolicy(CopyPolicy policy)
INTERNAL:
Set the copy policy.
|
void |
setCopyPolicyClassName(java.lang.String className)
INTERNAL:
Sets the name of a Class that implements CopyPolicy
Will be instantiatied as a copy policy at initialization times
using the no-args constructor
|
void |
setDefaultDeleteObjectQueryRedirector(QueryRedirector defaultDeleteObjectQueryRedirector)
A Default DeleteObjectQuery Redirector will be applied to any executing
DeleteObjectQuery or DeleteAllQuery that does not have a redirector set directly on the query.
|
void |
setDefaultDeleteObjectQueryRedirectorClassName(java.lang.String defaultDeleteObjectQueryRedirectorClassName)
A Default DeleteObjectQuery Redirector will be applied to any executing
DeleteObjectQuery or DeleteAllQuery that does not have a redirector set directly on the query.
|
void |
setDefaultInsertObjectQueryRedirector(QueryRedirector defaultInsertQueryRedirector)
A Default InsertObjectQuery Redirector will be applied to any executing
InsertObjectQuery that does not have a redirector set directly on the query.
|
void |
setDefaultInsertObjectQueryRedirectorClassName(java.lang.String defaultInsertObjectQueryRedirectorClassName)
A Default InsertObjectQuery Redirector will be applied to any executing
InsertObjectQuery that does not have a redirector set directly on the query.
|
void |
setDefaultQueryRedirector(QueryRedirector defaultRedirector)
A Default Query Redirector will be applied to any executing object query
that does not have a more precise default (like the default
ReadObjectQuery Redirector) or a redirector set directly on the query.
|
void |
setDefaultQueryRedirectorClassName(java.lang.String defaultQueryRedirectorClassName)
A Default Query Redirector will be applied to any executing object query
that does not have a more precise default (like the default
ReadObjectQuery Redirector) or a redirector set directly on the query.
|
void |
setDefaultReadAllQueryRedirector(QueryRedirector defaultReadAllQueryRedirector)
A Default ReadAllQuery Redirector will be applied to any executing
ReadAllQuery that does not have a redirector set directly on the query.
|
void |
setDefaultReadAllQueryRedirectorClassName(java.lang.String defaultReadAllQueryRedirectorClassName)
A Default ReadAllQuery Redirector will be applied to any executing
ReadAllQuery that does not have a redirector set directly on the query.
|
void |
setDefaultReadObjectQueryRedirector(QueryRedirector defaultReadObjectQueryRedirector)
A Default ReadObjectQuery Redirector will be applied to any executing
ReadObjectQuery that does not have a redirector set directly on the query.
|
void |
setDefaultReadObjectQueryRedirectorClassName(java.lang.String defaultReadObjectQueryRedirectorClassName)
A Default ReadObjectQuery Redirector will be applied to any executing
ReadObjectQuery that does not have a redirector set directly on the query.
|
void |
setDefaultReportQueryRedirector(QueryRedirector defaultReportQueryRedirector)
A Default ReportQuery Redirector will be applied to any executing
ReportQuery that does not have a redirector set directly on the query.
|
void |
setDefaultReportQueryRedirectorClassName(java.lang.String defaultReportQueryRedirectorClassName)
A Default ReportQuery Redirector will be applied to any executing
ReportQuery that does not have a redirector set directly on the query.
|
void |
setDefaultTable(org.eclipse.persistence.internal.helper.DatabaseTable defaultTable)
INTERNAL:
The descriptors default table can be configured if the first table is not desired.
|
void |
setDefaultTableName(java.lang.String defaultTableName)
PUBLIC:
The descriptors default table can be configured if the first table is not desired.
|
void |
setDefaultUpdateObjectQueryRedirector(QueryRedirector defaultUpdateQueryRedirector)
A Default UpdateObjectQuery Redirector will be applied to any executing
UpdateObjectQuery or UpdateAllQuery that does not have a redirector set directly on the query.
|
void |
setDefaultUpdateObjectQueryRedirectorClassName(java.lang.String defaultUpdateObjectQueryRedirectorClassName)
A Default UpdateObjectQuery Redirector will be applied to any executing
UpdateObjectQuery or UpdateAllQuery that does not have a redirector set directly on the query.
|
void |
setDescriptorCustomizerClassName(java.lang.String descriptorCustomizerClassName)
INTERNAL:
Sets the JPA DescriptorCustomizer class name.
|
void |
setDescriptorType(int descriptorType)
ADVANCED:
set the descriptor type (NORMAL by default, others include INTERFACE, AGGREGATE, AGGREGATE COLLECTION)
|
void |
setDescriptorTypeValue(java.lang.String value)
INTERNAL:
This method is explicitly used by the XML reader.
|
void |
setEventManager(DescriptorEventManager eventManager)
INTERNAL:
Set the event manager for the descriptor.
|
void |
setExistenceChecking(java.lang.String token)
INTERNAL:
OBSOLETE - old reader.
|
void |
setFetchGroupManager(FetchGroupManager fetchGroupManager)
PUBLIC:
Set the fetch group manager for the descriptor.
|
void |
setFields(java.util.Vector<org.eclipse.persistence.internal.helper.DatabaseField> fields)
INTERNAL:
Set the fields used by this descriptor.
|
void |
setForeignKeyFieldNamesForMultipleTable(java.util.Vector associations)
INTERNAL:
This method is used by the XML Deployment ClassDescriptor to read and write these mappings
|
void |
setFullyMergeEntity(boolean fullyMergeEntity) |
void |
setHasMultipleTableConstraintDependecy(boolean hasMultipleTableConstraintDependecy)
Set if any mapping reference a field in a secondary table.
|
void |
setHasRelationships(boolean hasRelationships)
INTERNAL:
set whether this descriptor has any relationships through its mappings, through inheritance, or through aggregates
|
void |
setHasSimplePrimaryKey(boolean hasSimplePrimaryKey)
INTERNAL:
PERF: Set if the primary key is simple (direct-mapped) to allow fast extraction.
|
void |
setHistoryPolicy(HistoryPolicy policy)
PUBLIC:
Set the HistoryPolicy for this descriptor.
|
void |
setIdentityMapClass(java.lang.Class theIdentityMapClass)
PUBLIC:
Set the class of identity map to be used by this descriptor.
|
void |
setIdentityMapSize(int identityMapSize)
PUBLIC:
Set the size of the identity map to be used by this descriptor.
|
void |
setIdValidation(IdValidation idValidation)
ADVANCED:
Set what types are allowed as a primary key (id).
|
void |
setInheritancePolicy(InheritancePolicy inheritancePolicy)
INTERNAL:
Sets the inheritance policy.
|
protected void |
setInitializationStage(int initializationStage)
INTERNAL:
|
void |
setInstantiationPolicy(org.eclipse.persistence.internal.descriptors.InstantiationPolicy instantiationPolicy)
INTERNAL:
Sets the instantiation policy.
|
protected void |
setInterfaceInitializationStage(int interfaceInitializationStage)
INTERNAL:
|
void |
setInterfacePolicy(InterfacePolicy interfacePolicy)
INTERNAL:
Sets the interface policy.
|
void |
setInternalDefaultTable()
INTERNAL:
Set the default table if one if not already set.
|
void |
setInternalDefaultTable(org.eclipse.persistence.internal.helper.DatabaseTable defaultTable)
INTERNAL:
Set the default table if one if not already set.
|
void |
setIsCascadeOnDeleteSetOnDatabaseOnSecondaryTables(boolean isCascadeOnDeleteSetOnDatabaseOnSecondaryTables)
ADVANCED:
Set if delete cascading has been set on the database for the descriptor's
multiple tables.
|
void |
setIsIsolated(boolean isIsolated)
Deprecated.
as of EclipseLink 2.2
|
void |
setIsNativeConnectionRequired(boolean isNativeConnectionRequired)
ADVANCED:
Set if the descriptor requires usage of a native (unwrapped) JDBC connection.
|
void |
setJavaClass(java.lang.Class theJavaClass)
PUBLIC:
Set the Java class that this descriptor maps.
|
void |
setJavaClassName(java.lang.String theJavaClassName)
INTERNAL:
Return the java class name, used by the MW.
|
void |
setJavaInterface(java.lang.Class theJavaInterface)
PUBLIC:
Sets the descriptor to be for an interface.
|
void |
setJavaInterfaceName(java.lang.String theJavaInterfaceName)
INTERNAL:
Return the java interface name, used by the MW.
|
void |
setLockableMappings(java.util.List<DatabaseMapping> lockableMappings)
INTERNAL:
Set the list of lockable mappings for this project
This method is provided for CMP use.
|
void |
setMappings(java.util.Vector<DatabaseMapping> mappings)
INTERNAL:
Set the mappings.
|
protected void |
setMultipleTableForeignKeys(java.util.Map<org.eclipse.persistence.internal.helper.DatabaseTable,java.util.Set<org.eclipse.persistence.internal.helper.DatabaseTable>> newValue)
INTERNAL:
|
void |
setMultipleTableInsertOrder(java.util.List<org.eclipse.persistence.internal.helper.DatabaseTable> newValue)
ADVANCED:
Sets the List of DatabaseTables in the order which INSERTS should take place.
|
void |
setMultitenantPolicy(MultitenantPolicy multitenantPolicy)
INTERNAL:
Set a multitenant policy on the descriptor.
|
protected void |
setObjectBuilder(org.eclipse.persistence.internal.descriptors.ObjectBuilder builder)
INTERNAL:
Set the ObjectBuilder.
|
void |
setObjectChangePolicy(ObjectChangePolicy policy)
PUBLIC:
Set the ObjectChangePolicy for this descriptor.
|
void |
setOptimisticLockingPolicy(org.eclipse.persistence.internal.descriptors.OptimisticLockingPolicy optimisticLockingPolicy)
PUBLIC:
Set the OptimisticLockingPolicy.
|
void |
setPartitioningPolicy(PartitioningPolicy partitioningPolicy)
PUBLIC:
Set the descriptor's partitioning policy.
|
void |
setPartitioningPolicyName(java.lang.String partitioningPolicyName)
PUBLIC:
Set the name of the descriptor's partitioning policy.
|
void |
setPrimaryKeyFieldName(java.lang.String fieldName)
PUBLIC:
Specify the primary key field of the descriptors table.
|
void |
setPrimaryKeyFieldNames(java.util.Vector primaryKeyFieldsName)
PUBLIC:
User can specify a vector of all the primary key field names if primary key is composite.
|
void |
setPrimaryKeyFields(java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> thePrimaryKeyFields)
INTERNAL:
Set the primary key fields
|
void |
setPrimaryKeyIdValidations(java.util.List<IdValidation> primaryKeyIdValidations)
ADVANCED:
Return what types are allowed in each primary key field (id).
|
void |
setProperties(java.util.Map properties)
INTERNAL:
Set the user defined properties.
|
void |
setProperty(java.lang.String name,
java.lang.Object value)
PUBLIC:
Set the user defined property.
|
void |
setQueryKeys(java.util.Map<java.lang.String,QueryKey> queryKeys)
INTERNAL:
Set the query keys.
|
void |
setQueryManager(DescriptorQueryManager queryManager)
INTERNAL:
Set the query manager.
|
void |
setReadOnly()
PUBLIC:
Set the descriptor to be read-only.
|
void |
setRemoteIdentityMapClass(java.lang.Class theIdentityMapClass)
PUBLIC:
Set the class of identity map to be used by this descriptor.
|
void |
setRemoteIdentityMapSize(int identityMapSize)
PUBLIC:
Set the size of the identity map to be used by this descriptor.
|
void |
setReturningPolicy(ReturningPolicy returningPolicy)
PUBLIC:
Sets the returning policy.
|
void |
setSequence(Sequence sequence)
Set the descriptor's sequence.
|
void |
setSequenceNumberField(org.eclipse.persistence.internal.helper.DatabaseField sequenceNumberField)
INTERNAL:
Set the sequence number field.
|
void |
setSequenceNumberFieldName(java.lang.String fieldName)
PUBLIC:
Set the sequence number field name.
|
void |
setSequenceNumberName(java.lang.String name)
PUBLIC:
Set the sequence number name.
|
void |
setSerializedObjectPolicy(SerializedObjectPolicy serializedObjectPolicy)
INTERNAL:
|
protected void |
setSessionName(java.lang.String sessionName)
INTERNAL:
Set the name of the session local to this descriptor.
|
void |
setShouldAcquireCascadedLocks(boolean shouldAcquireCascadedLocks)
INTERNAL:
PERF: Set if deferred locks should be used.
|
void |
setShouldAlwaysConformResultsInUnitOfWork(boolean shouldAlwaysConformResultsInUnitOfWork)
PUBLIC:
set if the descriptor is defined to always conform the results in unit of work in read query.
|
void |
setShouldAlwaysRefreshCache(boolean shouldAlwaysRefreshCache)
PUBLIC:
When the
shouldAlwaysRefreshCache argument passed into this method is true ,
this method configures a ClassDescriptor to always refresh the cache if data is received from
the database by any query. |
void |
setShouldAlwaysRefreshCacheOnRemote(boolean shouldAlwaysRefreshCacheOnRemote)
PUBLIC:
When the
shouldAlwaysRefreshCacheOnRemote argument passed into this method is true ,
this method configures a ClassDescriptor to always remotely refresh the cache if data is received from
the database by any query in a RemoteSession . |
void |
setShouldBeReadOnly(boolean shouldBeReadOnly)
PUBLIC:
Define if the descriptor reference class is read-only
|
void |
setShouldDisableCacheHits(boolean shouldDisableCacheHits)
PUBLIC:
Set if cache hits on primary key read object queries should be disabled.
|
void |
setShouldDisableCacheHitsOnRemote(boolean shouldDisableCacheHitsOnRemote)
PUBLIC:
Set if the remote session cache hits on primary key read object queries is allowed or not.
|
void |
setShouldLockForClone(boolean shouldLockForClone)
ADVANCED:
When set to false, this setting will allow the UOW to avoid locking the shared cache instance in order to perform a clone.
|
void |
setShouldOnlyRefreshCacheIfNewerVersion(boolean shouldOnlyRefreshCacheIfNewerVersion)
PUBLIC:
When the
shouldOnlyRefreshCacheIfNewerVersion argument passed into this method is true ,
this method configures a ClassDescriptor to only refresh the cache if the data received from the database
by a query is newer than the data in the cache (as determined by the optimistic locking field) and as long as one of the following is true:
the ClassDescriptor was configured by calling alwaysRefreshCache() or alwaysRefreshCacheOnRemote() ,
the query was configured by calling ObjectLevelReadQuery.refreshIdentityMapResult() , or
the query was a call to Session.refreshObject(java.lang.Object)
However, if a query hits the cache, data is not refreshed regardless of how this setting is configured. |
void |
setShouldOrderMappings(boolean shouldOrderMappings)
PUBLIC:
This is set to turn off the ordering of mappings.
|
void |
setShouldRegisterResultsInUnitOfWork(boolean shouldRegisterResultsInUnitOfWork)
INTERNAL:
Set to false to have queries conform to a UnitOfWork without registering
any additional objects not already in that UnitOfWork.
|
void |
setTableName(java.lang.String tableName)
PUBLIC:
Specify the table name for the class of objects the receiver describes.
|
void |
setTableNames(java.util.Vector tableNames)
PUBLIC:
Specify the all table names for the class of objects the receiver describes.
|
void |
setTablePerClassPolicy(TablePerClassPolicy tablePerClassPolicy)
INTERNAL:
Sets the table per class policy.
|
void |
setTableQualifier(java.lang.String tableQualifier)
PUBLIC: Set the table Qualifier for this descriptor.
|
void |
setTables(java.util.Vector<org.eclipse.persistence.internal.helper.DatabaseTable> theTables)
INTERNAL:
Sets the tables
|
void |
setUnitOfWorkCacheIsolationLevel(int unitOfWorkCacheIsolationLevel)
ADVANCED:
This setting configures how the session cache will be used in a unit of work.
|
void |
setVirtualAttributeMethods(java.util.List<org.eclipse.persistence.internal.descriptors.VirtualAttributeMethodInfo> virtualAttributeMethods)
INTERNAL:
Set the list of methods used my mappings with virtual access
this list is used to determine which methods to weave
|
void |
setWrapperPolicy(WrapperPolicy wrapperPolicy)
ADVANCED:
Sets the WrapperPolicy for this descriptor.
|
boolean |
shouldAcquireCascadedLocks()
INTERNAL:
PERF: Return if deferred locks should be used.
|
boolean |
shouldAlwaysConformResultsInUnitOfWork()
PUBLIC:
Return if the descriptor is defined to always conform the results in unit of work in read query.
|
boolean |
shouldAlwaysRefreshCache()
PUBLIC:
This method returns
true if the ClassDescriptor is configured to always refresh
the cache if data is received from the database by any query. |
boolean |
shouldAlwaysRefreshCacheOnRemote()
PUBLIC:
This method returns
true if the ClassDescriptor is configured to always remotely
refresh the cache if data is received from the database by any query in a RemoteSession . |
boolean |
shouldBeReadOnly()
PUBLIC:
Return if the descriptor reference class is defined as read-only
|
boolean |
shouldDisableCacheHits()
PUBLIC:
Return if for cache hits on primary key read object queries to be disabled.
|
boolean |
shouldDisableCacheHitsOnRemote()
PUBLIC:
Return if the remote server session cache hits on primary key read object queries is aloowed or not.
|
boolean |
shouldIsolateObjectsInUnitOfWork()
INTERNAL:
Return if the unit of work should by-pass the session cache.
|
boolean |
shouldIsolateObjectsInUnitOfWorkEarlyTransaction()
INTERNAL:
Return if the unit of work should by-pass the session cache after an early transaction.
|
boolean |
shouldIsolateProtectedObjectsInUnitOfWork()
INTERNAL:
Return if the unit of work should by-pass the IsolatedSession cache.
|
boolean |
shouldLockForClone()
ADVANCED:
When set to false, this setting will allow the UOW to avoid locking the shared cache instance in order to perform a clone.
|
boolean |
shouldOnlyRefreshCacheIfNewerVersion()
PUBLIC:
This method returns
true if the ClassDescriptor is configured to only refresh the cache
if the data received from the database by a query is newer than the data in the cache (as determined by the
optimistic locking field). |
boolean |
shouldOrderMappings()
INTERNAL:
Return if mappings should be ordered or not.
|
boolean |
shouldRegisterResultsInUnitOfWork()
INTERNAL:
Allows one to do conforming in a UnitOfWork without registering.
|
boolean |
shouldUseAdditionalJoinExpression()
PUBLIC:
Return true if this descriptor should using an additional join expresison.
|
boolean |
shouldUseCacheIdentityMap()
PUBLIC:
Return true if this descriptor is using CacheIdentityMap
|
boolean |
shouldUseFullChangeSetsForNewObjects()
INTERNAL:
Return if change sets are required for new objects.
|
boolean |
shouldUseFullIdentityMap()
PUBLIC:
Return true if this descriptor is using FullIdentityMap
|
boolean |
shouldUseHardCacheWeakIdentityMap()
PUBLIC:
Return true if this descriptor is using HardCacheWeakIdentityMap.
|
boolean |
shouldUseNoIdentityMap()
PUBLIC:
Return true if this descriptor is using NoIdentityMap
|
boolean |
shouldUseRemoteCacheIdentityMap()
PUBLIC:
Return true if this descriptor is using CacheIdentityMap
|
boolean |
shouldUseRemoteFullIdentityMap()
PUBLIC:
Return true if this descriptor is using FullIdentityMap
|
boolean |
shouldUseRemoteHardCacheWeakIdentityMap()
PUBLIC:
Return true if this descriptor is using HardCacheWeakIdentityMap
|
boolean |
shouldUseRemoteNoIdentityMap()
PUBLIC:
Return true if this descriptor is using NoIdentityMap
|
boolean |
shouldUseRemoteSoftCacheWeakIdentityMap()
PUBLIC:
Return true if this descriptor is using SoftCacheWeakIdentityMap
|
boolean |
shouldUseRemoteSoftIdentityMap()
PUBLIC:
Return true if this descriptor is using SoftIdentityMap
|
boolean |
shouldUseRemoteWeakIdentityMap()
PUBLIC:
Return true if this descriptor is using WeakIdentityMap
|
boolean |
shouldUseSessionCacheInUnitOfWorkEarlyTransaction()
INTERNAL:
Return if the unit of work should use the session cache after an early transaction.
|
boolean |
shouldUseSoftCacheWeakIdentityMap()
PUBLIC:
Return true if this descriptor is using SoftCacheWeakIdentityMap.
|
boolean |
shouldUseSoftIdentityMap()
PUBLIC:
Return true if this descriptor is using SoftIdentityMap
|
boolean |
shouldUseWeakIdentityMap()
PUBLIC:
Return true if this descriptor is using WeakIdentityMap
|
boolean |
supportsChangeTracking(Project project)
INTERNAL:
Returns whether this descriptor is capable of supporting weaved change tracking.
|
protected void |
toggleAdditionalTablePrimaryKeyFields()
INTERNAL:
Eclipselink needs additionalTablePKFields entries to be associated with tables other than the main (getTables.get(0)) one.
|
java.lang.String |
toString()
PUBLIC:
Returns a brief string representation of the receiver.
|
void |
useAllFieldsLocking()
PUBLIC:
Set the locking policy an all fields locking policy.
|
void |
useCacheIdentityMap()
PUBLIC:
Set the class of identity map to be the cache identity map.
|
void |
useChangedFieldsLocking()
PUBLIC:
Set the locking policy a changed fields locking policy.
|
void |
useCloneCopyPolicy()
PUBLIC:
Specifies that the creation of clones within a unit of work is done by
sending the #clone() method to the original object.
|
void |
useCloneCopyPolicy(java.lang.String cloneMethodName)
PUBLIC:
Specifies that the creation of clones within a unit of work is done by
sending the cloneMethodName method to the original object.
|
void |
useDefaultConstructorInstantiationPolicy()
PUBLIC:
Use the default constructor to create new instances of objects built from the database.
|
void |
useFactoryInstantiationPolicy(java.lang.Class factoryClass,
java.lang.String methodName)
PUBLIC:
Use an object factory to create new instances of objects built from the database.
|
void |
useFactoryInstantiationPolicy(java.lang.Class factoryClass,
java.lang.String methodName,
java.lang.String factoryMethodName)
PUBLIC:
Use an object factory to create new instances of objects built from the database.
|
void |
useFactoryInstantiationPolicy(java.lang.Object factory,
java.lang.String methodName)
PUBLIC:
Use an object factory to create new instances of objects built from the database.
|
void |
useFactoryInstantiationPolicy(java.lang.String factoryClassName,
java.lang.String methodName)
INTERNAL:
Set the factory class name, used by the MW.
|
void |
useFactoryInstantiationPolicy(java.lang.String factoryClassName,
java.lang.String methodName,
java.lang.String factoryMethodName)
INTERNAL:
Set the factory class name, used by the MW.
|
void |
useFullIdentityMap()
PUBLIC:
Set the class of identity map to be the full identity map.
|
void |
useHardCacheWeakIdentityMap()
PUBLIC:
Set the class of identity map to be the hard cache weak identity map.
|
void |
useInstantiationCopyPolicy()
PUBLIC:
Specifies that the creation of clones within a unit of work is done by building
a new instance using the
technique indicated by the descriptor's instantiation policy
(which by default is to use the
the default constructor).
|
void |
useMethodInstantiationPolicy(java.lang.String staticMethodName)
PUBLIC:
Use the specified static method to create new instances of objects built from the database.
|
void |
useNoIdentityMap()
PUBLIC:
Set the class of identity map to be the no identity map.
|
void |
usePropertyAccessForWeaving()
INTERNAL:
Record that this descriptor uses property access.
|
void |
useRemoteCacheIdentityMap()
PUBLIC:
Set the class of identity map to be the cache identity map.
|
void |
useRemoteFullIdentityMap()
PUBLIC:
Set the class of identity map to be the full identity map.
|
void |
useRemoteHardCacheWeakIdentityMap()
PUBLIC:
Set the class of identity map to be the hard cache weak identity map.
|
void |
useRemoteNoIdentityMap()
PUBLIC:
Set the class of identity map to be the no identity map.
|
void |
useRemoteSoftCacheWeakIdentityMap()
PUBLIC:
Set the class of identity map to be the soft cache weak identity map.
|
void |
useRemoteSoftIdentityMap()
PUBLIC:
Set the class of identity map to be the soft identity map.
|
void |
useRemoteWeakIdentityMap()
PUBLIC:
Set the class of identity map to be the weak identity map.
|
void |
useSelectedFieldsLocking(java.util.Vector fieldNames)
PUBLIC:
Set the locking policy a selected fields locking policy.
|
boolean |
usesFieldLocking()
INTERNAL:
Return true if the receiver uses either all or changed fields for optimistic locking.
|
void |
useSoftCacheWeakIdentityMap()
PUBLIC:
Set the class of identity map to be the soft cache weak identity map.
|
void |
useSoftIdentityMap()
PUBLIC:
Set the class of identity map to be the soft identity map.
|
boolean |
usesOptimisticLocking()
PUBLIC:
Return true if the receiver uses write (optimistic) locking.
|
boolean |
usesPropertyAccessForWeaving()
INTERNAL:
Return whether this descriptor uses property access.
|
boolean |
usesSequenceNumbers()
PUBLIC:
Return true if the receiver uses sequence numbers.
|
boolean |
usesVersionLocking()
PUBLIC:
Return true if the receiver uses version optimistic locking.
|
void |
useTimestampLocking(java.lang.String writeLockFieldName)
PUBLIC:
Use the Timestamps locking policy and storing the value in the cache key
#see useVersionLocking(String)
|
void |
useTimestampLocking(java.lang.String writeLockFieldName,
boolean shouldStoreInCache)
PUBLIC:
Set the locking policy to use timestamp version locking.
|
void |
useVersionLocking(java.lang.String writeLockFieldName)
PUBLIC:
Default to use the version locking policy and storing the value in the cache key
#see useVersionLocking(String)
|
void |
useVersionLocking(java.lang.String writeLockFieldName,
boolean shouldStoreInCache)
PUBLIC:
Set the locking policy to use numeric version locking.
|
void |
useWeakIdentityMap()
PUBLIC:
Set the class of identity map to be the weak identity map.
|
protected void |
validateAfterInitialization(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Validate the entire post-initialization descriptor.
|
protected void |
validateBeforeInitialization(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Validate the entire pre-initialization descriptor.
|
protected void |
validateMappingType(DatabaseMapping mapping) |
protected void |
verifyMultipleTableInsertOrder()
INTERNAL:
Verify multiple table insert order provided by the user.
|
protected void |
verifyMultipleTablesForeignKeysTables()
INTERNAL:
Verify that the tables specified in multipleTablesForeignKeysTables are valid.
|
protected void |
verifyTableQualifiers(org.eclipse.persistence.internal.databaseaccess.Platform platform)
INTERNAL:
Check that the qualifier on the table names are properly set.
|
addAttributeGroup
protected java.lang.Class javaClass
protected java.lang.String javaClassName
protected java.util.Vector<org.eclipse.persistence.internal.helper.DatabaseTable> tables
protected transient org.eclipse.persistence.internal.helper.DatabaseTable defaultTable
protected java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> primaryKeyFields
protected java.util.Map<org.eclipse.persistence.internal.helper.DatabaseTable,java.util.Map<org.eclipse.persistence.internal.helper.DatabaseField,org.eclipse.persistence.internal.helper.DatabaseField>> additionalTablePrimaryKeyFields
protected transient java.util.List<org.eclipse.persistence.internal.helper.DatabaseTable> multipleTableInsertOrder
protected java.util.Map<org.eclipse.persistence.internal.helper.DatabaseTable,java.util.Set<org.eclipse.persistence.internal.helper.DatabaseTable>> multipleTableForeignKeys
protected boolean isCascadeOnDeleteSetOnDatabaseOnSecondaryTables
protected transient java.util.Vector<org.eclipse.persistence.internal.helper.DatabaseField> fields
protected transient java.util.Vector<org.eclipse.persistence.internal.helper.DatabaseField> allFields
protected transient java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> selectionFields
protected transient java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> allSelectionFields
protected java.util.Vector<DatabaseMapping> mappings
protected java.util.Set<ClassDescriptor> referencingClasses
protected java.util.List<DatabaseMapping> lockableMappings
protected java.util.Map<java.lang.String,QueryKey> queryKeys
protected java.lang.String sequenceNumberName
protected org.eclipse.persistence.internal.helper.DatabaseField sequenceNumberField
protected transient java.lang.String sessionName
protected transient java.util.Vector constraintDependencies
protected transient java.lang.String amendmentMethodName
protected transient java.lang.Class amendmentClass
protected java.lang.String amendmentClassName
protected java.lang.String alias
protected boolean shouldBeReadOnly
protected boolean shouldAlwaysConformResultsInUnitOfWork
protected boolean shouldRegisterResultsInUnitOfWork
protected DescriptorQueryManager queryManager
protected CopyPolicy copyPolicy
protected java.lang.String copyPolicyClassName
protected InterfacePolicy interfacePolicy
protected org.eclipse.persistence.internal.descriptors.OptimisticLockingPolicy optimisticLockingPolicy
protected java.util.List<org.eclipse.persistence.internal.descriptors.CascadeLockingPolicy> cascadeLockingPolicies
protected WrapperPolicy wrapperPolicy
protected ObjectChangePolicy changePolicy
protected ReturningPolicy returningPolicy
protected HistoryPolicy historyPolicy
protected java.lang.String partitioningPolicyName
protected PartitioningPolicy partitioningPolicy
protected CMPPolicy cmpPolicy
protected CachePolicy cachePolicy
protected MultitenantPolicy multitenantPolicy
protected SerializedObjectPolicy serializedObjectPolicy
protected FetchGroupManager fetchGroupManager
protected java.util.Map properties
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> unconvertedProperties
protected transient int initializationStage
protected transient int interfaceInitializationStage
protected static final int UNINITIALIZED
protected static final int PREINITIALIZED
protected static final int INITIALIZED
protected static final int POST_INITIALIZED
protected static final int ERROR
protected int descriptorType
protected static final int NORMAL
protected static final int INTERFACE
protected static final int AGGREGATE
protected static final int AGGREGATE_COLLECTION
protected boolean shouldOrderMappings
protected CacheInvalidationPolicy cacheInvalidationPolicy
protected boolean shouldAcquireCascadedLocks
protected boolean cascadedLockingInitialized
protected boolean hasSimplePrimaryKey
protected boolean hasMultipleTableConstraintDependecy
public static final int UNDEFINED_OBJECT_CHANGE_BEHAVIOR
public static final int SEND_OBJECT_CHANGES
public static final int INVALIDATE_CHANGED_OBJECTS
public static final int SEND_NEW_OBJECTS_WITH_CHANGES
public static final int DO_NOT_SEND_CHANGES
public static final int UNDEFINED_ISOLATATION
public static final int USE_SESSION_CACHE_AFTER_TRANSACTION
public static final int ISOLATE_NEW_DATA_AFTER_TRANSACTION
public static final int ISOLATE_CACHE_AFTER_TRANSACTION
public static final int ISOLATE_FROM_CLIENT_SESSION
public static final int ISOLATE_CACHE_ALWAYS
public static boolean shouldUseFullChangeSetsForNewObjects
protected boolean isNativeConnectionRequired
protected IdValidation idValidation
protected java.util.List<IdValidation> primaryKeyIdValidations
protected java.util.Map<java.lang.String,DatabaseMapping> derivesIdMappings
protected QueryRedirector defaultQueryRedirector
protected QueryRedirector defaultReadAllQueryRedirector
protected QueryRedirector defaultReadObjectQueryRedirector
protected QueryRedirector defaultReportQueryRedirector
protected QueryRedirector defaultUpdateObjectQueryRedirector
protected QueryRedirector defaultInsertObjectQueryRedirector
protected QueryRedirector defaultDeleteObjectQueryRedirector
protected java.lang.String defaultQueryRedirectorClassName
protected java.lang.String defaultReadAllQueryRedirectorClassName
protected java.lang.String defaultReadObjectQueryRedirectorClassName
protected java.lang.String defaultReportQueryRedirectorClassName
protected java.lang.String defaultUpdateObjectQueryRedirectorClassName
protected java.lang.String defaultInsertObjectQueryRedirectorClassName
protected java.lang.String defaultDeleteObjectQueryRedirectorClassName
protected Sequence sequence
protected java.util.List<DatabaseMapping> mappingsPostCalculateChanges
protected java.util.List<DatabaseMapping> mappingsPostCalculateChangesOnDeleted
protected transient java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> additionalAggregateCollectionKeyFields
protected java.util.List<DatabaseMapping> preDeleteMappings
protected transient java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> additionalWritableMapKeyFields
protected boolean hasRelationships
protected java.util.Set<org.eclipse.persistence.internal.helper.DatabaseField> foreignKeyValuesForCaching
protected boolean hasNoncacheableMappings
protected boolean weavingUsesPropertyAccess
protected java.util.List<org.eclipse.persistence.internal.descriptors.VirtualAttributeMethodInfo> virtualAttributeMethods
protected java.util.List<AttributeAccessor> accessorTree
protected java.lang.String descriptorCustomizerClassName
protected boolean shouldLockForClone
public void addAbstractQueryKey(java.lang.String queryKeyName)
public void addCascadeLockingPolicy(org.eclipse.persistence.internal.descriptors.CascadeLockingPolicy policy)
policy
- - the CascadeLockingPolicypublic void addConstraintDependencies(java.lang.Class dependencies)
public void addConstraintDependency(java.lang.Class dependencies)
public AbstractDirectMapping newDirectMapping()
public AggregateMapping newAggregateMapping()
public DatabaseMapping newAggregateCollectionMapping()
public DatabaseMapping newDirectCollectionMapping()
public ObjectReferenceMapping newOneToOneMapping()
public ObjectReferenceMapping newManyToOneMapping()
public CollectionMapping newOneToManyMapping()
public CollectionMapping newUnidirectionalOneToManyMapping()
public CollectionMapping newManyToManyMapping()
public DatabaseMapping addDirectMapping(java.lang.String attributeName, java.lang.String fieldName)
attributeName
- is the name of an instance variable of the
class which the receiver describes.fieldName
- is the name of the database column which corresponds
with the designated instance variable.public DatabaseMapping addDirectMapping(java.lang.String attributeName, java.lang.String getMethodName, java.lang.String setMethodName, java.lang.String fieldName)
public void addDirectQueryKey(java.lang.String queryKeyName, java.lang.String fieldName)
public void addForeignKeyFieldNameForMultipleTable(java.lang.String sourceForeignKeyFieldName, java.lang.String targetPrimaryKeyFieldName) throws DescriptorException
DescriptorException
public void addForeignKeyFieldForMultipleTable(org.eclipse.persistence.internal.helper.DatabaseField sourceForeignKeyField, org.eclipse.persistence.internal.helper.DatabaseField targetPrimaryKeyField) throws DescriptorException
DescriptorException
public DatabaseMapping addMapping(DatabaseMapping mapping)
protected void validateMappingType(DatabaseMapping mapping)
public void addPrimaryKeyFieldName(java.lang.String fieldName)
#addMultipleTableForeignKeyFieldName(String, String);
public void addPrimaryKeyField(org.eclipse.persistence.internal.helper.DatabaseField field)
public void addQueryKey(QueryKey queryKey)
public void addTable(org.eclipse.persistence.internal.helper.DatabaseTable table)
public void addTableName(java.lang.String tableName)
public void addUnconvertedProperty(java.lang.String propertyName, java.lang.String propertyValue, java.lang.String propertyType)
public void adjustMultipleTableInsertOrder()
public void alwaysConformResultsInUnitOfWork()
public void alwaysRefreshCache()
setShouldAlwaysRefreshCache(boolean)
with an argument of true
:
it configures a ClassDescriptor
to always refresh the cache if data is received from the database by any query.
However, if a query hits the cache, data is not refreshed regardless of how this setting is configured. For example, by
default, when a query for a single object based on its primary key is executed, OracleAS TopLink will first look in the
cache for the object. If the object is in the cache, the cached object is returned and data is not refreshed. To avoid
cache hits, use the disableCacheHits()
method.
Also note that the UnitOfWork
will not refresh its registered objects.
Use this property with caution because it can lead to poor performance and may refresh on queries when it is not desired. Normally,
if you require fresh data, it is better to configure a query with ObjectLevelReadQuery.refreshIdentityMapResult()
.
To ensure that refreshes are only done when required, use this method in conjunction with onlyRefreshCacheIfNewerVersion()
.
dontAlwaysRefreshCache()
public void alwaysRefreshCacheOnRemote()
setShouldAlwaysRefreshCacheOnRemote(boolean)
with an argument of true
:
it configures a ClassDescriptor
to always remotely refresh the cache if data is received from the database by any
query in a RemoteSession
.
However, if a query hits the cache, data is not refreshed regardless of how this setting is configured. For example, by
default, when a query for a single object based on its primary key is executed, OracleAS TopLink will first look in the
cache for the object. If the object is in the cache, the cached object is returned and data is not refreshed. To avoid
cache hits, use the disableCacheHitsOnRemote()
method.
Also note that the UnitOfWork
will not refresh its registered objects.
Use this property with caution because it can lead to poor performance and may refresh on queries when it is not desired.
Normally, if you require fresh data, it is better to configure a query with ObjectLevelReadQuery.refreshIdentityMapResult()
.
To ensure that refreshes are only done when required, use this method in conjunction with onlyRefreshCacheIfNewerVersion()
.
dontAlwaysRefreshCacheOnRemote()
public void applyAmendmentMethod()
public void applyAmendmentMethod(DescriptorEvent event)
public boolean arePrimaryKeyFields(java.util.Vector fields)
protected void assignDefaultValues(org.eclipse.persistence.internal.sessions.AbstractSession session)
public Expression buildBatchCriteriaByPK(ExpressionBuilder builder, ObjectLevelReadQuery query)
public org.eclipse.persistence.internal.databaseaccess.DatasourceCall buildCallFromStatement(org.eclipse.persistence.internal.expressions.SQLStatement statement, DatabaseQuery query, org.eclipse.persistence.internal.sessions.AbstractSession session)
public java.util.Vector buildDirectValuesFromFieldValue(java.lang.Object fieldValue) throws DatabaseException
DatabaseException
public org.eclipse.persistence.internal.helper.DatabaseField buildField(java.lang.String fieldName)
public org.eclipse.persistence.internal.helper.DatabaseField buildField(org.eclipse.persistence.internal.helper.DatabaseField field)
public org.eclipse.persistence.internal.helper.DatabaseField buildField(org.eclipse.persistence.internal.helper.DatabaseField field, org.eclipse.persistence.internal.helper.DatabaseTable relationTable)
public java.lang.Object buildFieldValueFromDirectValues(java.util.Vector directValues, java.lang.String elementDataTypeName, org.eclipse.persistence.internal.sessions.AbstractSession session) throws DatabaseException
DatabaseException
public java.lang.Object buildFieldValueFromForeignKeys(java.util.Vector foreignKeys, java.lang.String referenceDataTypeName, org.eclipse.persistence.internal.sessions.AbstractSession session) throws DatabaseException
DatabaseException
public java.lang.Object buildFieldValueFromNestedRow(org.eclipse.persistence.internal.sessions.AbstractRecord nestedRow, org.eclipse.persistence.internal.sessions.AbstractSession session) throws DatabaseException
DatabaseException
public java.lang.Object buildFieldValueFromNestedRows(java.util.Vector nestedRows, java.lang.String structureName, org.eclipse.persistence.internal.sessions.AbstractSession session) throws DatabaseException
DatabaseException
public org.eclipse.persistence.internal.sessions.AbstractRecord buildNestedRowFromFieldValue(java.lang.Object fieldValue) throws DatabaseException
DatabaseException
public java.util.Vector buildNestedRowsFromFieldValue(java.lang.Object fieldValue, org.eclipse.persistence.internal.sessions.AbstractSession session) throws DatabaseException
DatabaseException
protected void checkDatabase(org.eclipse.persistence.internal.sessions.AbstractSession session)
public void checkInheritanceTreeAggregateSettings(org.eclipse.persistence.internal.sessions.AbstractSession session, AggregateMapping mapping) throws DescriptorException
DescriptorException
protected void createMultipleTableInsertOrder()
protected void verifyMultipleTableInsertOrder()
protected void verifyMultipleTablesForeignKeysTables()
protected int[][] createTableComparison(java.util.List<org.eclipse.persistence.internal.helper.DatabaseTable> tables, int nStart)
protected void createMultipleTableInsertOrderFromComparison(int[][] tableComparison, int nStart)
protected boolean createTableOrder(int k, int nTables, int[] tableOrder, int[][] tableComparison)
public java.lang.Object clone()
clone
in class java.lang.Object
public void convertClassNamesToClasses(java.lang.ClassLoader classLoader)
classLoader
- public void createCopyPolicy(java.lang.String policyType)
public void createInstantiationPolicy(java.lang.String policyType)
public void descriptorIsAggregate()
public void descriptorIsAggregateCollection()
public void descriptorIsForInterface()
public void descriptorIsNormal()
public void disableCacheHits()
alwaysRefreshCache()
or alwaysRefreshCacheOnRemote()
to ensure queries always go to the database.public void disableCacheHitsOnRemote()
alwaysRefreshCacheOnRemote()
public void dontAlwaysConformResultsInUnitOfWork()
public void dontAlwaysRefreshCache()
setShouldAlwaysRefreshCache(boolean)
with an argument of false
:
it ensures that a ClassDescriptor
is not configured to always refresh the cache if data is received from the database by any query.alwaysRefreshCache()
public void dontAlwaysRefreshCacheOnRemote()
setShouldAlwaysRefreshCacheOnRemote(boolean)
with an argument of false
:
it ensures that a ClassDescriptor
is not configured to always remotely refresh the cache if data is received from the
database by any query in a RemoteSession
.alwaysRefreshCacheOnRemote()
public void dontDisableCacheHits()
disableCacheHits()
public void dontDisableCacheHitsOnRemote()
disableCacheHitsOnRemote()
public void dontOnlyRefreshCacheIfNewerVersion()
setShouldOnlyRefreshCacheIfNewerVersion(boolean)
with an argument of false
:
it ensures that a ClassDescriptor
is not configured to only refresh the cache if the data received from the database by
a query is newer than the data in the cache (as determined by the optimistic locking field).onlyRefreshCacheIfNewerVersion()
protected org.eclipse.persistence.internal.helper.DatabaseTable extractDefaultTable()
public java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> getAdditionalAggregateCollectionKeyFields()
public java.util.Map<org.eclipse.persistence.internal.helper.DatabaseTable,java.util.Map<org.eclipse.persistence.internal.helper.DatabaseField,org.eclipse.persistence.internal.helper.DatabaseField>> getAdditionalTablePrimaryKeyFields()
public java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> getAdditionalWritableMapKeyFields()
public java.lang.String getAlias()
public java.util.Vector<org.eclipse.persistence.internal.helper.DatabaseField> getAllFields()
public java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> getAllSelectionFields()
public java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> getAllSelectionFields(ObjectLevelReadQuery query)
public java.lang.Class getAmendmentClass()
public java.lang.String getAmendmentClassName()
public java.lang.String getAmendmentMethodName()
public java.util.List<AttributeAccessor> getAccessorTree()
public ObjectChangePolicy getObjectChangePolicy()
public ObjectChangePolicy getObjectChangePolicyInternal()
public HistoryPolicy getHistoryPolicy()
public PartitioningPolicy getPartitioningPolicy()
public void setPartitioningPolicy(PartitioningPolicy partitioningPolicy)
public java.lang.String getPartitioningPolicyName()
public void setPartitioningPolicyName(java.lang.String partitioningPolicyName)
public java.lang.Class getCacheInterceptorClass()
CacheInterceptor
public java.lang.String getCacheInterceptorClassName()
CacheInterceptor
public CacheInvalidationPolicy getCacheInvalidationPolicy()
CacheInvalidationPolicy
public int getCacheSynchronizationType()
public java.util.List<org.eclipse.persistence.internal.descriptors.CascadeLockingPolicy> getCascadeLockingPolicies()
public java.util.Vector getConstraintDependencies()
public CopyPolicy getCopyPolicy()
public java.lang.String getCopyPolicyClassName()
public org.eclipse.persistence.internal.helper.DatabaseTable getDefaultTable()
public int getDescriptorType()
public java.lang.String getDescriptorTypeValue()
public java.util.Collection<DatabaseMapping> getDerivesIdMappinps()
public java.lang.String getDescriptorCustomizerClassName()
public DescriptorEventManager getDescriptorEventManager()
public DescriptorEventManager getEventManager()
getEventManager
in class CoreDescriptor<AttributeGroup,DescriptorEventManager,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,java.util.Vector,org.eclipse.persistence.internal.descriptors.ObjectBuilder>
public java.util.Vector<org.eclipse.persistence.internal.helper.DatabaseField> getFields()
public java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> getSelectionFields()
public java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> getSelectionFields(ObjectLevelReadQuery query)
public java.util.Set<org.eclipse.persistence.internal.helper.DatabaseField> getForeignKeyValuesForCaching()
public java.lang.Class getIdentityMapClass()
public int getIdentityMapSize()
public InheritancePolicy getDescriptorInheritancePolicy()
public InheritancePolicy getInheritancePolicy()
getInheritancePolicy
in class CoreDescriptor<AttributeGroup,DescriptorEventManager,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,java.util.Vector,org.eclipse.persistence.internal.descriptors.ObjectBuilder>
public InheritancePolicy getInheritancePolicyOrNull()
public org.eclipse.persistence.internal.descriptors.InstantiationPolicy getInstantiationPolicy()
getInstantiationPolicy
in class CoreDescriptor<AttributeGroup,DescriptorEventManager,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,java.util.Vector,org.eclipse.persistence.internal.descriptors.ObjectBuilder>
public InterfacePolicy getInterfacePolicy()
public InterfacePolicy getInterfacePolicyOrNull()
public java.lang.Class getJavaClass()
getJavaClass
in class CoreDescriptor<AttributeGroup,DescriptorEventManager,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,java.util.Vector,org.eclipse.persistence.internal.descriptors.ObjectBuilder>
public java.lang.String getJavaClassName()
public java.util.List<DatabaseMapping> getLockableMappings()
public DatabaseMapping getMappingForAttributeName(java.lang.String attributeName)
public DatabaseMapping removeMappingForAttributeName(java.lang.String attributeName)
public java.util.Vector<DatabaseMapping> getMappings()
public java.util.Vector getMultipleTableForeignKeyAssociations()
adjustMultipleTableInsertOrder()
public java.util.Map<org.eclipse.persistence.internal.helper.DatabaseTable,java.util.Set<org.eclipse.persistence.internal.helper.DatabaseTable>> getMultipleTableForeignKeys()
adjustMultipleTableInsertOrder()
public java.util.List<org.eclipse.persistence.internal.helper.DatabaseTable> getMultipleTableInsertOrder() throws DescriptorException
DescriptorException
public java.util.Vector getMultipleTablePrimaryKeyAssociations()
adjustMultipleTableInsertOrder()
public MultitenantPolicy getMultitenantPolicy()
public org.eclipse.persistence.internal.descriptors.ObjectBuilder getObjectBuilder()
getObjectBuilder
in class CoreDescriptor<AttributeGroup,DescriptorEventManager,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,java.util.Vector,org.eclipse.persistence.internal.descriptors.ObjectBuilder>
public org.eclipse.persistence.internal.descriptors.OptimisticLockingPolicy getOptimisticLockingPolicy()
public java.util.List<DatabaseMapping> getPreDeleteMappings()
public void addPreDeleteMapping(DatabaseMapping mapping)
public java.util.Vector<java.lang.String> getPrimaryKeyFieldNames()
getPrimaryKeyFieldNames
in class CoreDescriptor<AttributeGroup,DescriptorEventManager,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,java.util.Vector,org.eclipse.persistence.internal.descriptors.ObjectBuilder>
public java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> getPrimaryKeyFields()
getPrimaryKeyFields
in class CoreDescriptor<AttributeGroup,DescriptorEventManager,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,java.util.Vector,org.eclipse.persistence.internal.descriptors.ObjectBuilder>
public java.util.Map getProperties()
public java.lang.Object getProperty(java.lang.String name)
public QueryKey getQueryKeyNamed(java.lang.String queryKeyName)
public java.util.Map<java.lang.String,QueryKey> getQueryKeys()
public DescriptorQueryManager getDescriptorQueryManager()
public DescriptorQueryManager getQueryManager()
public java.lang.Class getRemoteIdentityMapClass()
public ClassDescriptor getRootDescriptor()
public int getRemoteIdentityMapSize()
public ReturningPolicy getReturningPolicy()
public org.eclipse.persistence.internal.helper.DatabaseField getSequenceNumberField()
public java.lang.String getSequenceNumberFieldName()
public java.lang.String getSequenceNumberName()
public java.lang.String getSessionName()
public org.eclipse.persistence.internal.helper.DatabaseTable getTable(java.lang.String tableName) throws DescriptorException
DescriptorException
public java.lang.String getTableName()
public java.util.Vector getTableNames()
public TablePerClassPolicy getTablePerClassPolicy()
setTablePerClassPolicy()
public java.util.Vector<org.eclipse.persistence.internal.helper.DatabaseTable> getTables()
public org.eclipse.persistence.internal.helper.DatabaseField getTypedField(org.eclipse.persistence.internal.helper.DatabaseField field)
getTypedField
in class CoreDescriptor<AttributeGroup,DescriptorEventManager,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,java.util.Vector,org.eclipse.persistence.internal.descriptors.ObjectBuilder>
public WrapperPolicy getWrapperPolicy()
public boolean hasDependencyOnParts()
public boolean hasDerivedId()
public boolean hasEventManager()
hasEventManager
in class CoreDescriptor<AttributeGroup,DescriptorEventManager,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,java.util.Vector,org.eclipse.persistence.internal.descriptors.ObjectBuilder>
public boolean hasInheritance()
hasInheritance
in class CoreDescriptor<AttributeGroup,DescriptorEventManager,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,java.util.Vector,org.eclipse.persistence.internal.descriptors.ObjectBuilder>
hasTablePerClassPolicy()
public boolean hasInterfacePolicy()
public boolean hasMultipleTables()
public boolean hasNestedIdentityReference(boolean withChildren)
public boolean hasNoncacheableMappings()
public boolean hasPreDeleteMappings()
public boolean hasPrivatelyOwnedParts()
public boolean hasQueryKeyOrMapping(java.lang.String attributeName)
public boolean hasRelationships()
public boolean hasRelationshipsExceptBackpointer(ClassDescriptor descriptor)
descriptor
- public boolean hasReturningPolicy()
public boolean hasSerializedObjectPolicy()
public SerializedObjectPolicy getSerializedObjectPolicy()
public void setSerializedObjectPolicy(SerializedObjectPolicy serializedObjectPolicy)
public boolean hasWrapperPolicy()
public void initialize(org.eclipse.persistence.internal.sessions.AbstractSession session) throws DescriptorException
DescriptorException
public void initialize(DescriptorQueryManager queryManager, org.eclipse.persistence.internal.sessions.AbstractSession session)
public void initializeAggregateInheritancePolicy(org.eclipse.persistence.internal.sessions.AbstractSession session)
public void initializeMultipleTablePrimaryKeyFields()
protected void initializeProperties(org.eclipse.persistence.internal.sessions.AbstractSession session) throws DescriptorException
DescriptorException
public void interfaceInitialization(org.eclipse.persistence.internal.sessions.AbstractSession session) throws DescriptorException
DescriptorException
public boolean isAbstract()
public boolean isAggregateCollectionDescriptor()
public boolean isAggregateDescriptor()
public boolean isChildDescriptor()
public boolean isEISDescriptor()
public boolean isObjectRelationalDataTypeDescriptor()
public boolean isXMLDescriptor()
public boolean isRelationalDescriptor()
public boolean isDescriptorForInterface()
public boolean isDescriptorTypeAggregate()
public boolean isDescriptorTypeNormal()
public boolean isFullyInitialized()
protected boolean isInitialized(int initializationStage)
public boolean isInterfaceChildDescriptor()
protected boolean isInterfaceInitialized(int interfaceInitializationStage)
public boolean isInvalid()
public boolean isIsolated()
public boolean isProtectedIsolation()
public boolean isSharedIsolation()
public boolean isMultipleTableDescriptor()
public boolean isPrimaryKeySetAfterInsert(org.eclipse.persistence.internal.sessions.AbstractSession session)
public boolean shouldLockForClone()
public boolean shouldUseFullChangeSetsForNewObjects()
public void onlyRefreshCacheIfNewerVersion()
setShouldOnlyRefreshCacheIfNewerVersion(boolean)
with an argument of true
:
it configures a ClassDescriptor
to only refresh the cache if the data received from the database by a query is newer than
the data in the cache (as determined by the optimistic locking field) and as long as one of the following is true:
ClassDescriptor
was configured by calling alwaysRefreshCache()
or alwaysRefreshCacheOnRemote()
,ObjectLevelReadQuery.refreshIdentityMapResult()
, orSession.refreshObject(java.lang.Object)
However, if a query hits the cache, data is not refreshed regardless of how this setting is configured. For example, by default,
when a query for a single object based on its primary key is executed, EclipseLink will first look in the cache for the object.
If the object is in the cache, the cached object is returned and data is not refreshed. To avoid cache hits, use
the disableCacheHits()
method.
Also note that the UnitOfWork
will not refresh its registered objects.
dontOnlyRefreshCacheIfNewerVersion()
public void postInitialize(org.eclipse.persistence.internal.sessions.AbstractSession session) throws DescriptorException
DescriptorException
public void notifyReferencingDescriptorsOfIsolation(org.eclipse.persistence.internal.sessions.AbstractSession session)
public void preInitialize(org.eclipse.persistence.internal.sessions.AbstractSession session) throws DescriptorException
DescriptorException
protected void prepareCascadeLockingPolicy(DatabaseMapping mapping)
protected void preInitializeInheritancePolicy(org.eclipse.persistence.internal.sessions.AbstractSession session) throws DescriptorException
DescriptorException
public void preInterfaceInitialization(org.eclipse.persistence.internal.sessions.AbstractSession session) throws DescriptorException
DescriptorException
public void rehashFieldDependancies(org.eclipse.persistence.internal.sessions.AbstractSession session)
public void reInitializeJoinedAttributes()
public void remoteInitialization(DistributedSession session)
public void removeProperty(java.lang.String property)
public boolean requiresInitialization(org.eclipse.persistence.internal.sessions.AbstractSession session)
protected void selfValidationAfterInitialization(org.eclipse.persistence.internal.sessions.AbstractSession session) throws DescriptorException
DescriptorException
protected void selfValidationBeforeInitialization(org.eclipse.persistence.internal.sessions.AbstractSession session) throws DescriptorException
DescriptorException
protected void setAdditionalTablePrimaryKeyFields(org.eclipse.persistence.internal.helper.DatabaseTable table, org.eclipse.persistence.internal.helper.DatabaseField field1, org.eclipse.persistence.internal.helper.DatabaseField field2)
protected void toggleAdditionalTablePrimaryKeyFields()
public void setAdditionalTablePrimaryKeyFields(java.util.Map<org.eclipse.persistence.internal.helper.DatabaseTable,java.util.Map<org.eclipse.persistence.internal.helper.DatabaseField,org.eclipse.persistence.internal.helper.DatabaseField>> additionalTablePrimaryKeyFields)
public void setAlias(java.lang.String alias)
protected void setAllFields(java.util.Vector<org.eclipse.persistence.internal.helper.DatabaseField> allFields)
public void setAmendmentClass(java.lang.Class amendmentClass)
public void setAmendmentClassName(java.lang.String amendmentClassName)
public void setAmendmentMethodName(java.lang.String amendmentMethodName)
public void setAccessorTree(java.util.List<AttributeAccessor> accessorTree)
accessorTree
- the accessorTree to setpublic void setCacheSynchronizationType(int type)
type
- int The synchronization type for this descriptorpublic void setObjectChangePolicy(ObjectChangePolicy policy)
public void setHistoryPolicy(HistoryPolicy policy)
public void setCacheInterceptorClass(java.lang.Class cacheInterceptorClass)
CacheInterceptor
public void setCacheInterceptorClassName(java.lang.String cacheInterceptorClassName)
CacheInterceptor
public void setCacheInvalidationPolicy(CacheInvalidationPolicy policy)
CacheInvalidationPolicy
public void setConstraintDependencies(java.util.Vector constraintDependencies)
public void setCopyPolicy(CopyPolicy policy)
public void setCopyPolicyClassName(java.lang.String className)
public void setDefaultTable(org.eclipse.persistence.internal.helper.DatabaseTable defaultTable)
public void setDefaultTableName(java.lang.String defaultTableName)
public void setDescriptorCustomizerClassName(java.lang.String descriptorCustomizerClassName)
public void setDescriptorType(int descriptorType)
public void setDescriptorTypeValue(java.lang.String value)
public void setEventManager(DescriptorEventManager eventManager)
setEventManager
in class CoreDescriptor<AttributeGroup,DescriptorEventManager,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,java.util.Vector,org.eclipse.persistence.internal.descriptors.ObjectBuilder>
public void setExistenceChecking(java.lang.String token) throws DescriptorException
DescriptorException
public void setFields(java.util.Vector<org.eclipse.persistence.internal.helper.DatabaseField> fields)
public void setForeignKeyFieldNamesForMultipleTable(java.util.Vector associations) throws DescriptorException
DescriptorException
public void setFullyMergeEntity(boolean fullyMergeEntity)
fullyMergeEntity
- the fullyMergeEntity to setpublic void setIdentityMapClass(java.lang.Class theIdentityMapClass)
public void setIdentityMapSize(int identityMapSize)
public void setInheritancePolicy(InheritancePolicy inheritancePolicy)
setInheritancePolicy
in class CoreDescriptor<AttributeGroup,DescriptorEventManager,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,java.util.Vector,org.eclipse.persistence.internal.descriptors.ObjectBuilder>
public void setReturningPolicy(ReturningPolicy returningPolicy)
protected void setInitializationStage(int initializationStage)
public void setInstantiationPolicy(org.eclipse.persistence.internal.descriptors.InstantiationPolicy instantiationPolicy)
setInstantiationPolicy
in class CoreDescriptor<AttributeGroup,DescriptorEventManager,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,java.util.Vector,org.eclipse.persistence.internal.descriptors.ObjectBuilder>
protected void setInterfaceInitializationStage(int interfaceInitializationStage)
public void setInterfacePolicy(InterfacePolicy interfacePolicy)
public void setInternalDefaultTable()
public void setInternalDefaultTable(org.eclipse.persistence.internal.helper.DatabaseTable defaultTable)
@Deprecated public void setIsIsolated(boolean isIsolated)
public CacheIsolationType getCacheIsolation()
public void setCacheIsolation(CacheIsolationType isolationType)
public boolean shouldIsolateObjectsInUnitOfWork()
public boolean shouldIsolateProtectedObjectsInUnitOfWork()
public boolean shouldIsolateObjectsInUnitOfWorkEarlyTransaction()
public boolean shouldUseSessionCacheInUnitOfWorkEarlyTransaction()
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getUnconvertedProperties()
public int getUnitOfWorkCacheIsolationLevel()
public void setUnitOfWorkCacheIsolationLevel(int unitOfWorkCacheIsolationLevel)
USE_SESSION_CACHE_AFTER_TRANSACTION - Objects built from new data accessed after a unit of work early transaction are stored in the session cache. This options is the most efficient as it allows the cache to be used after an early transaction. This should only be used if it is known that this class is not modified in the transaction, otherwise this could cause uncommitted data to be loaded into the session cache. ISOLATE_NEW_DATA_AFTER_TRANSACTION - Default (when using caching): Objects built from new data accessed after a unit of work early transaction are only stored in the unit of work. This still allows previously cached objects to be accessed in the unit of work after an early transaction, but ensures uncommitted data will never be put in the session cache by storing any object built from new data only in the unit of work. ISOLATE_CACHE_AFTER_TRANSACTION - After a unit of work early transaction the session cache is no longer used for this class. Objects will be directly built from the database data and only stored in the unit of work, even if previously cached. Note that this may lead to poor performance as the session cache is bypassed after an early transaction. ISOLATE_CACHE_ALWAYS - Default (when using isolated cache): The session cache will never be used for this class. Objects will be directly built from the database data and only stored in the unit of work. New objects and changes will also never be merged into the session cache. Note that this may lead to poor performance as the session cache is bypassed, however if this class is isolated or pessimistic locked and always accessed in a transaction, this can avoid having to build two copies of the object.
public void setHasRelationships(boolean hasRelationships)
isSimpleDescriptor
- public void setJavaClass(java.lang.Class theJavaClass)
setJavaClass
in class CoreDescriptor<AttributeGroup,DescriptorEventManager,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,java.util.Vector,org.eclipse.persistence.internal.descriptors.ObjectBuilder>
public void setJavaClassName(java.lang.String theJavaClassName)
public void setJavaInterface(java.lang.Class theJavaInterface)
public void setJavaInterfaceName(java.lang.String theJavaInterfaceName)
public void setLockableMappings(java.util.List<DatabaseMapping> lockableMappings)
public void setMappings(java.util.Vector<DatabaseMapping> mappings)
protected void setMultipleTableForeignKeys(java.util.Map<org.eclipse.persistence.internal.helper.DatabaseTable,java.util.Set<org.eclipse.persistence.internal.helper.DatabaseTable>> newValue)
getMultipleTableForeignKeys()
public void setMultipleTableInsertOrder(java.util.List<org.eclipse.persistence.internal.helper.DatabaseTable> newValue)
public void setMultitenantPolicy(MultitenantPolicy multitenantPolicy)
public boolean isCascadeOnDeleteSetOnDatabaseOnSecondaryTables()
public void setIsCascadeOnDeleteSetOnDatabaseOnSecondaryTables(boolean isCascadeOnDeleteSetOnDatabaseOnSecondaryTables)
protected void setObjectBuilder(org.eclipse.persistence.internal.descriptors.ObjectBuilder builder)
setObjectBuilder
in class CoreDescriptor<AttributeGroup,DescriptorEventManager,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,java.util.Vector,org.eclipse.persistence.internal.descriptors.ObjectBuilder>
public void setOptimisticLockingPolicy(org.eclipse.persistence.internal.descriptors.OptimisticLockingPolicy optimisticLockingPolicy)
public void setPrimaryKeyFieldName(java.lang.String fieldName)
addPrimaryKeyFieldName(String)
public void setPrimaryKeyFieldNames(java.util.Vector primaryKeyFieldsName)
setPrimaryKeyFieldNames
in class CoreDescriptor<AttributeGroup,DescriptorEventManager,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,java.util.Vector,org.eclipse.persistence.internal.descriptors.ObjectBuilder>
addPrimaryKeyFieldName(String)
public void setPrimaryKeyFields(java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> thePrimaryKeyFields)
setPrimaryKeyFields
in class CoreDescriptor<AttributeGroup,DescriptorEventManager,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,java.util.Vector,org.eclipse.persistence.internal.descriptors.ObjectBuilder>
#addPrimaryKeyFieldName(String)
public void setProperties(java.util.Map properties)
public void setProperty(java.lang.String name, java.lang.Object value)
public void setQueryKeys(java.util.Map<java.lang.String,QueryKey> queryKeys)
public void setQueryManager(DescriptorQueryManager queryManager)
public void setRemoteIdentityMapClass(java.lang.Class theIdentityMapClass)
public void setRemoteIdentityMapSize(int identityMapSize)
public void setSequenceNumberField(org.eclipse.persistence.internal.helper.DatabaseField sequenceNumberField)
public void setSequenceNumberFieldName(java.lang.String fieldName)
public void setSequenceNumberName(java.lang.String name)
protected void setSessionName(java.lang.String sessionName)
public void setShouldAlwaysConformResultsInUnitOfWork(boolean shouldAlwaysConformResultsInUnitOfWork)
public void setShouldAlwaysRefreshCache(boolean shouldAlwaysRefreshCache)
shouldAlwaysRefreshCache
argument passed into this method is true
,
this method configures a ClassDescriptor
to always refresh the cache if data is received from
the database by any query.
However, if a query hits the cache, data is not refreshed regardless of how this setting is configured.
For example, by default, when a query for a single object based on its primary key is executed, OracleAS TopLink
will first look in the cache for the object. If the object is in the cache, the cached object is returned and
data is not refreshed. To avoid cache hits, use the disableCacheHits()
method.
Also note that the UnitOfWork
will not refresh its registered objects.
Use this property with caution because it can lead to poor performance and may refresh on queries when it is not desired.
Normally, if you require fresh data, it is better to configure a query with ObjectLevelReadQuery.refreshIdentityMapResult()
.
To ensure that refreshes are only done when required, use this method in conjunction with onlyRefreshCacheIfNewerVersion()
.
When the shouldAlwaysRefreshCache
argument passed into this method is false
, this method
ensures that a ClassDescriptor
is not configured to always refresh the cache if data is received from the database by any query.
alwaysRefreshCache()
,
dontAlwaysRefreshCache()
public void setShouldAlwaysRefreshCacheOnRemote(boolean shouldAlwaysRefreshCacheOnRemote)
shouldAlwaysRefreshCacheOnRemote
argument passed into this method is true
,
this method configures a ClassDescriptor
to always remotely refresh the cache if data is received from
the database by any query in a RemoteSession
.
However, if a query hits the cache, data is not refreshed regardless of how this setting is configured. For
example, by default, when a query for a single object based on its primary key is executed, OracleAS TopLink
will first look in the cache for the object. If the object is in the cache, the cached object is returned and
data is not refreshed. To avoid cache hits, use the disableCacheHitsOnRemote()
method.
Also note that the UnitOfWork
will not refresh its registered objects.
Use this property with caution because it can lead to poor performance and may refresh on queries when it is
not desired. Normally, if you require fresh data, it is better to configure a query with ObjectLevelReadQuery.refreshIdentityMapResult()
.
To ensure that refreshes are only done when required, use this method in conjunction with onlyRefreshCacheIfNewerVersion()
.
When the shouldAlwaysRefreshCacheOnRemote
argument passed into this method is false
,
this method ensures that a ClassDescriptor
is not configured to always remotely refresh the cache if data
is received from the database by any query in a RemoteSession
.
public void setShouldBeReadOnly(boolean shouldBeReadOnly)
public void setReadOnly()
public void setShouldDisableCacheHits(boolean shouldDisableCacheHits)
alwaysRefreshCache()
public void setShouldDisableCacheHitsOnRemote(boolean shouldDisableCacheHitsOnRemote)
disableCacheHitsOnRemote()
public void setShouldLockForClone(boolean shouldLockForClone)
public void setShouldOnlyRefreshCacheIfNewerVersion(boolean shouldOnlyRefreshCacheIfNewerVersion)
shouldOnlyRefreshCacheIfNewerVersion
argument passed into this method is true
,
this method configures a ClassDescriptor
to only refresh the cache if the data received from the database
by a query is newer than the data in the cache (as determined by the optimistic locking field) and as long as one of the following is true:
ClassDescriptor
was configured by calling alwaysRefreshCache()
or alwaysRefreshCacheOnRemote()
,ObjectLevelReadQuery.refreshIdentityMapResult()
, orSession.refreshObject(java.lang.Object)
However, if a query hits the cache, data is not refreshed regardless of how this setting is configured. For example, by default,
when a query for a single object based on its primary key is executed, OracleAS TopLink will first look in the cache for the object.
If the object is in the cache, the cached object is returned and data is not refreshed. To avoid cache hits, use
the disableCacheHits()
method.
Also note that the UnitOfWork
will not refresh its registered objects.
When the shouldOnlyRefreshCacheIfNewerVersion
argument passed into this method is false
, this method
ensures that a ClassDescriptor
is not configured to only refresh the cache if the data received from the database by a
query is newer than the data in the cache (as determined by the optimistic locking field).
public void setShouldOrderMappings(boolean shouldOrderMappings)
public void setShouldRegisterResultsInUnitOfWork(boolean shouldRegisterResultsInUnitOfWork)
shouldRegisterResultsInUnitOfWork
public void setTableName(java.lang.String tableName) throws DescriptorException
DescriptorException
public void setTableNames(java.util.Vector tableNames)
public void setTablePerClassPolicy(TablePerClassPolicy tablePerClassPolicy)
public void setTableQualifier(java.lang.String tableQualifier)
public void setTables(java.util.Vector<org.eclipse.persistence.internal.helper.DatabaseTable> theTables)
public void setWrapperPolicy(WrapperPolicy wrapperPolicy)
public boolean shouldAlwaysConformResultsInUnitOfWork()
public boolean shouldAlwaysRefreshCache()
true
if the ClassDescriptor
is configured to always refresh
the cache if data is received from the database by any query. Otherwise, it returns false
.setShouldAlwaysRefreshCache(boolean)
public boolean shouldAlwaysRefreshCacheOnRemote()
true
if the ClassDescriptor
is configured to always remotely
refresh the cache if data is received from the database by any query in a RemoteSession
.
Otherwise, it returns false
.public boolean shouldBeReadOnly()
public boolean shouldDisableCacheHits()
disableCacheHits()
public boolean shouldDisableCacheHitsOnRemote()
disableCacheHitsOnRemote()
public boolean shouldOnlyRefreshCacheIfNewerVersion()
true
if the ClassDescriptor
is configured to only refresh the cache
if the data received from the database by a query is newer than the data in the cache (as determined by the
optimistic locking field). Otherwise, it returns false
.public boolean shouldOrderMappings()
public boolean hasSimplePrimaryKey()
public boolean hasTablePerClassPolicy()
public void setHasSimplePrimaryKey(boolean hasSimplePrimaryKey)
public boolean shouldAcquireCascadedLocks()
public void setShouldAcquireCascadedLocks(boolean shouldAcquireCascadedLocks)
public boolean shouldUseAdditionalJoinExpression()
public boolean shouldUseCacheIdentityMap()
public boolean shouldUseFullIdentityMap()
public boolean shouldUseSoftIdentityMap()
public boolean shouldUseRemoteSoftIdentityMap()
public boolean shouldUseHardCacheWeakIdentityMap()
public boolean shouldUseNoIdentityMap()
public boolean shouldRegisterResultsInUnitOfWork()
Extreme care should be taken in using this feature, for a user will get back a mix of registered and original (unregistered) objects.
Best used with a WrapperPolicy where invoking on an object will trigger
its registration (CMP). Without a WrapperPolicy registerExistingObject
should be called on any object that you intend to change.
setShouldRegisterResultsInUnitOfWork(boolean)
,
ObjectBuildingQuery.shouldRegisterResultsInUnitOfWork
public boolean shouldUseRemoteCacheIdentityMap()
public boolean shouldUseRemoteFullIdentityMap()
public boolean shouldUseRemoteHardCacheWeakIdentityMap()
public boolean shouldUseRemoteNoIdentityMap()
public boolean shouldUseRemoteSoftCacheWeakIdentityMap()
public boolean shouldUseRemoteWeakIdentityMap()
public boolean shouldUseSoftCacheWeakIdentityMap()
public boolean shouldUseWeakIdentityMap()
public boolean supportsChangeTracking(Project project)
public java.lang.String toString()
toString
in class java.lang.Object
public void useAllFieldsLocking()
AllFieldsLockingPolicy
public void useCacheIdentityMap()
public void useChangedFieldsLocking()
ChangedFieldsLockingPolicy
public void useCloneCopyPolicy()
useCloneCopyPolicy(String)
public void useCloneCopyPolicy(java.lang.String cloneMethodName)
useCloneCopyPolicy()
public void useInstantiationCopyPolicy()
public void useDefaultConstructorInstantiationPolicy()
public void useFactoryInstantiationPolicy(java.lang.Class factoryClass, java.lang.String methodName)
public void useFactoryInstantiationPolicy(java.lang.String factoryClassName, java.lang.String methodName)
public void useFactoryInstantiationPolicy(java.lang.Class factoryClass, java.lang.String methodName, java.lang.String factoryMethodName)
public void useFactoryInstantiationPolicy(java.lang.String factoryClassName, java.lang.String methodName, java.lang.String factoryMethodName)
public void useFactoryInstantiationPolicy(java.lang.Object factory, java.lang.String methodName)
public void useFullIdentityMap()
public void useHardCacheWeakIdentityMap()
public void useSoftIdentityMap()
public void useRemoteSoftIdentityMap()
public void useMethodInstantiationPolicy(java.lang.String staticMethodName)
public void useNoIdentityMap()
setIsIsolated(boolean)
public void useRemoteCacheIdentityMap()
public void useRemoteFullIdentityMap()
public void useRemoteHardCacheWeakIdentityMap()
public void useRemoteNoIdentityMap()
public void useRemoteSoftCacheWeakIdentityMap()
public void useRemoteWeakIdentityMap()
public void useSelectedFieldsLocking(java.util.Vector fieldNames)
SelectedFieldsLockingPolicy
public boolean usesFieldLocking()
public void useSoftCacheWeakIdentityMap()
public boolean usesOptimisticLocking()
public boolean usesVersionLocking()
public boolean usesSequenceNumbers()
public void useTimestampLocking(java.lang.String writeLockFieldName)
public void useTimestampLocking(java.lang.String writeLockFieldName, boolean shouldStoreInCache)
VersionLockingPolicy
public void useVersionLocking(java.lang.String writeLockFieldName)
public void useVersionLocking(java.lang.String writeLockFieldName, boolean shouldStoreInCache)
TimestampLockingPolicy
public void useWeakIdentityMap()
protected void validateAfterInitialization(org.eclipse.persistence.internal.sessions.AbstractSession session)
protected void validateBeforeInitialization(org.eclipse.persistence.internal.sessions.AbstractSession session)
protected void verifyTableQualifiers(org.eclipse.persistence.internal.databaseaccess.Platform platform)
public CMPPolicy getCMPPolicy()
public void setCMPPolicy(CMPPolicy newCMPPolicy)
public CachePolicy getCachePolicy()
public void setCachePolicy(CachePolicy cachePolicy)
public boolean hasPessimisticLockingPolicy()
public FetchGroupManager getFetchGroupManager()
FetchGroupTracker
public boolean getFullyMergeEntity()
public void setFetchGroupManager(FetchGroupManager fetchGroupManager)
public boolean hasFetchGroupManager()
public boolean hasCascadeLockingPolicies()
public boolean hasCMPPolicy()
public FetchGroup getDefaultFetchGroup()
public boolean isReturnTypeRequiredForReturningPolicy()
public void setIsNativeConnectionRequired(boolean isNativeConnectionRequired)
public boolean isNativeConnectionRequired()
public void setIdValidation(IdValidation idValidation)
public IdValidation getIdValidation()
public java.util.List<IdValidation> getPrimaryKeyIdValidations()
public void setPrimaryKeyIdValidations(java.util.List<IdValidation> primaryKeyIdValidations)
public void setCacheKeyType(CacheKeyType cacheKeyType)
public CacheKeyType getCacheKeyType()
public QueryRedirector getDefaultQueryRedirector()
org.eclipse.persistence.queryframework.QueryRedirector
public void setDefaultQueryRedirector(QueryRedirector defaultRedirector)
org.eclipse.persistence.queryframework.QueryRedirector
public QueryRedirector getDefaultReadAllQueryRedirector()
org.eclipse.persistence.queryframework.QueryRedirector
public void setDefaultReadAllQueryRedirector(QueryRedirector defaultReadAllQueryRedirector)
org.eclipse.persistence.queryframework.QueryRedirector
public QueryRedirector getDefaultReadObjectQueryRedirector()
org.eclipse.persistence.queryframework.QueryRedirector
public void setDefaultReadObjectQueryRedirector(QueryRedirector defaultReadObjectQueryRedirector)
org.eclipse.persistence.queryframework.QueryRedirector
public QueryRedirector getDefaultReportQueryRedirector()
org.eclipse.persistence.queryframework.QueryRedirector
public void setDefaultReportQueryRedirector(QueryRedirector defaultReportQueryRedirector)
org.eclipse.persistence.queryframework.QueryRedirector
public QueryRedirector getDefaultUpdateObjectQueryRedirector()
org.eclipse.persistence.queryframework.QueryRedirector
public void setDefaultUpdateObjectQueryRedirector(QueryRedirector defaultUpdateQueryRedirector)
org.eclipse.persistence.queryframework.QueryRedirector
public QueryRedirector getDefaultInsertObjectQueryRedirector()
org.eclipse.persistence.queryframework.QueryRedirector
public void setDefaultInsertObjectQueryRedirector(QueryRedirector defaultInsertQueryRedirector)
org.eclipse.persistence.queryframework.QueryRedirector
public QueryRedirector getDefaultDeleteObjectQueryRedirector()
org.eclipse.persistence.queryframework.QueryRedirector
public void setDefaultDeleteObjectQueryRedirector(QueryRedirector defaultDeleteObjectQueryRedirector)
org.eclipse.persistence.queryframework.QueryRedirector
public void setDefaultQueryRedirectorClassName(java.lang.String defaultQueryRedirectorClassName)
org.eclipse.persistence.queryframework.QueryRedirector
public void setDefaultReadAllQueryRedirectorClassName(java.lang.String defaultReadAllQueryRedirectorClassName)
org.eclipse.persistence.queryframework.QueryRedirector
public void setDefaultReadObjectQueryRedirectorClassName(java.lang.String defaultReadObjectQueryRedirectorClassName)
org.eclipse.persistence.queryframework.QueryRedirector
public void setDefaultReportQueryRedirectorClassName(java.lang.String defaultReportQueryRedirectorClassName)
org.eclipse.persistence.queryframework.QueryRedirector
public void setDefaultUpdateObjectQueryRedirectorClassName(java.lang.String defaultUpdateObjectQueryRedirectorClassName)
org.eclipse.persistence.queryframework.QueryRedirector
public void setDefaultInsertObjectQueryRedirectorClassName(java.lang.String defaultInsertObjectQueryRedirectorClassName)
org.eclipse.persistence.queryframework.QueryRedirector
public void setDefaultDeleteObjectQueryRedirectorClassName(java.lang.String defaultDeleteObjectQueryRedirectorClassName)
org.eclipse.persistence.queryframework.QueryRedirector
public Sequence getSequence()
public void setSequence(Sequence sequence)
public java.util.List<DatabaseMapping> getMappingsPostCalculateChanges()
public boolean hasMappingsPostCalculateChanges()
public void addMappingsPostCalculateChanges(DatabaseMapping mapping)
public java.util.List<DatabaseMapping> getMappingsPostCalculateChangesOnDeleted()
public boolean hasMappingsPostCalculateChangesOnDeleted()
public void addMappingsPostCalculateChangesOnDeleted(DatabaseMapping mapping)
public boolean hasMultipleTableConstraintDependecy()
public boolean hasMultitenantPolicy()
public boolean hasTablePerMultitenantPolicy()
public boolean hasUnconvertedProperties()
public void setHasMultipleTableConstraintDependecy(boolean hasMultipleTableConstraintDependecy)
public boolean usesPropertyAccessForWeaving()
public void usePropertyAccessForWeaving()
public java.util.List<org.eclipse.persistence.internal.descriptors.VirtualAttributeMethodInfo> getVirtualAttributeMethods()
public void setVirtualAttributeMethods(java.util.List<org.eclipse.persistence.internal.descriptors.VirtualAttributeMethodInfo> virtualAttributeMethods)
public boolean hasTargetForeignKeyMapping(org.eclipse.persistence.internal.sessions.AbstractSession session)
public AttributeGroup getAttributeGroup(java.lang.String name)
CoreDescriptor
getAttributeGroup
in class CoreDescriptor<AttributeGroup,DescriptorEventManager,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,java.util.Vector,org.eclipse.persistence.internal.descriptors.ObjectBuilder>
public java.util.Map<java.lang.String,AttributeGroup> getAttributeGroups()
CoreDescriptor
getAttributeGroups
in class CoreDescriptor<AttributeGroup,DescriptorEventManager,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,java.util.Vector,org.eclipse.persistence.internal.descriptors.ObjectBuilder>