|
Oracle TopLink API Reference 10g Release 3 (10.1.3) B13698-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.toplink.publicinterface.Descriptor
oracle.toplink.internal.descriptors.RootDescriptor
oracle.toplink.descriptors.ClassDescriptor
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.
RelationalDescriptor,
ObjectRelationalDescriptor,
EISDescriptor,
XMLDescriptor,
Serialized Form| Field Summary |
| Fields inherited from class oracle.toplink.publicinterface.Descriptor |
DO_NOT_SEND_CHANGES, INVALIDATE_CHANGED_OBJECTS, SEND_NEW_OBJECTS_WITH_CHANGES, SEND_OBJECT_CHANGES, UNDEFINED_OBJECT_CHANGE_BEHAVIOR |
| Constructor Summary | |
ClassDescriptor()
PUBLIC: Return a new descriptor. |
|
| Method Summary | |
void |
addAbstractQueryKey(java.lang.String queryKeyName)
PUBLIC: This method should only be used for interface descriptors. |
void |
addConstraintDependencies(java.lang.Class dependencies)
ADVANCED: TopLink 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 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 mapping to the receiver. |
void |
addDirectQueryKey(java.lang.String queryKeyName,
java.lang.String fieldName)
PUBLIC: Add a query key to the descriptor. |
DatabaseMapping |
addMapping(DatabaseMapping mapping)
PUBLIC: Add a database mapping to the receiver. |
void |
addMultipleTableForeignKeyFieldName(java.lang.String fieldNameInSourceTable,
java.lang.String fieldNameInTargetTable)
PUBLIC: This protocol can be used to associate multiple tables with foreign key information. |
void |
addMultipleTablePrimaryKeyFieldName(java.lang.String fieldNameInSourceTable,
java.lang.String fieldNameInTargetTable)
PUBLIC: This protocol can be used to map the primary key field names in a multiple table descriptor. |
void |
addPrimaryKeyField(oracle.toplink.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 |
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 Descriptor 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 Descriptor 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 |
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. |
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 Descriptor 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 Descriptor 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 Descriptor 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). |
java.lang.String |
getAlias()
PUBLIC: Get the alias |
java.lang.Class |
getAmendmentClass()
PUBLIC: Return the amendment class. |
java.lang.String |
getAmendmentMethodName()
PUBLIC: Return the amendment method. |
CacheInvalidationPolicy |
getCacheInvalidationPolicy()
PUBLIC: Return the CacheInvalidationPolicy for this descriptor For uninitialized cache invalidation policies, this will return a NoExpiryCacheInvalidationPolicy |
int |
getCacheSynchronizationType()
PUBLIC: Get a value indicating the type of cache synchronization that will be used on objects of this type. |
CMPPolicy |
getCMPPolicy()
ADVANCED: Return the cmp descriptor that holds EJB CMP specific information. |
java.util.Vector |
getConstraintDependencies()
ADVANCED: TopLink automatically orders database access through the foreign key information provided in 1:1 and 1:m mappings. |
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) |
FetchGroupManager |
getFetchGroupManager()
PUBLIC: Get the fetch group manager for the descriptor. |
HistoryPolicy |
getHistoryPolicy()
PUBLIC: Return this descriptors HistoryPolicy. |
int |
getIdentityMapSize()
PUBLIC: Return the size of the identity map. |
InterfacePolicy |
getInterfacePolicy()
PUBLIC: Returns the InterfacePolicy. |
java.lang.Class |
getJavaClass()
PUBLIC: Return the java class. |
DatabaseMapping |
getMappingForAttributeName(java.lang.String attributeName)
PUBLIC: Returns the mapping associated with a given attribute name. |
java.util.Vector |
getMappings()
PUBLIC: Returns mappings |
oracle.toplink.descriptors.changetracking.ObjectChangePolicy |
getObjectChangePolicy()
PUBLIC: Return this objects ObjectChangePolicy. |
oracle.toplink.internal.descriptors.OptimisticLockingPolicy |
getOptimisticLockingPolicy()
PUBLIC: Returns the OptimisticLockingPolicy. |
java.util.Vector |
getPrimaryKeyFieldNames()
PUBLIC: Return the names of all the primary keys. |
java.util.Hashtable |
getProperties()
PUBLIC: Returns the user defined properties. |
java.lang.Object |
getProperty(java.lang.String name)
PUBLIC: Returns the descriptor property associated the given String. |
java.util.Hashtable |
getQueryKeys()
PUBLIC: Return the query keys. |
int |
getRemoteIdentityMapSize()
PUBLIC: Return the size of the remote identity map. |
ReturningPolicy |
getReturningPolicy()
PUBLIC: Return returning policy. |
java.lang.String |
getSequenceNumberFieldName()
PUBLIC: Get sequence number field name |
java.lang.String |
getSequenceNumberName()
PUBLIC: Get sequence number name |
WrapperPolicy |
getWrapperPolicy()
ADVANCED: Return the WrapperPolicy for this descriptor. |
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 |
isChildDescriptor()
PUBLIC: Return if the descriptor defines inheritence and is a child. |
boolean |
isDescriptorForInterface()
PUBLIC: Return if the java class is interface |
boolean |
isIsolated()
PUBLIC: Returns true if the descriptor represents an isolated class |
void |
onlyRefreshCacheIfNewerVersion()
PUBLIC: This method is the equivalent of calling setShouldOnlyRefreshCacheIfNewerVersion(boolean) with an argument of true:
it configures a Descriptor 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 Descriptor 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 |
removeProperty(java.lang.String property)
PUBLIC: Remove the user defined property. |
void |
setAlias(java.lang.String alias)
PUBLIC: Set the alias |
void |
setAmendmentClass(java.lang.Class amendmentClass)
PUBLIC: Set the amendment class. |
void |
setAmendmentMethodName(java.lang.String amendmentMethodName)
PUBLIC: Set the amendment method. |
void |
setCacheInvalidationPolicy(CacheInvalidationPolicy policy)
PUBLIC: Set the Cache Invalidation Policy for this descriptor |
void |
setCacheSynchronizationType(int type)
PUBLIC: Set the type of cache synchonization that will be used on objects of this type. |
void |
setCMPPolicy(CMPPolicy newCMPPolicy)
ADVANCED: Set the cmp descriptor that holds EJB CMP specific information. |
void |
setDescriptorType(int descriptorType)
ADVANCED: set the descriptor type (NORMAL by default, others include INTERFACE, AGGREGATE, AGGREGATE COLLECTION) |
void |
setFetchGroupManager(FetchGroupManager fetchGroupManager)
PUBLIC: Set the fetch group manager for the descriptor. |
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 |
setIsIsolated(boolean isIsolated)
PUBLIC: Used to set if the class that this descriptor represents should be isolated from the shared cache. |
void |
setJavaClass(java.lang.Class theJavaClass)
PUBLIC: Set the Java class that this descriptor maps. |
void |
setJavaInterface(java.lang.Class theJavaInterface)
PUBLIC: Sets the descriptor to be for an interface. |
void |
setObjectChangePolicy(oracle.toplink.descriptors.changetracking.ObjectChangePolicy policy)
PUBLIC: Set the ObjectChangePolicy for this descriptor. |
void |
setOptimisticLockingPolicy(oracle.toplink.internal.descriptors.OptimisticLockingPolicy optimisticLockingPolicy)
PUBLIC: Set the OptimisticLockingPolicy. |
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 |
setProperty(java.lang.String name,
java.lang.Object value)
PUBLIC: Set the user defined property. |
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 |
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 |
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 Descriptor 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 Descriptor 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 |
setShouldOnlyRefreshCacheIfNewerVersion(boolean shouldOnlyRefreshCacheIfNewerVersion)
PUBLIC: When the shouldOnlyRefreshCacheIfNewerVersion argument passed into this method is true,
this method configures a Descriptor 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 Descriptor 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 |
setWrapperPolicy(WrapperPolicy wrapperPolicy)
ADVANCED: Sets the WrapperPolicy for this descriptor. |
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 Descriptor 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 Descriptor 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 |
shouldOnlyRefreshCacheIfNewerVersion()
PUBLIC: This method returns true if the Descriptor 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 |
shouldUseCacheIdentityMap()
PUBLIC: Return true if this descriptor is using CacheIdentityMap |
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 |
shouldUseRemoteWeakIdentityMap()
PUBLIC: Return true if this descriptor is using WeakIdentityMap |
boolean |
shouldUseSoftCacheWeakIdentityMap()
PUBLIC: Return true if this descriptor is using SoftCacheWeakIdentityMap. |
boolean |
shouldUseWeakIdentityMap()
PUBLIC: Return true if this descriptor is using WeakIdentityMap |
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 |
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 |
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 |
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. |
void |
useSoftCacheWeakIdentityMap()
PUBLIC: Set the class of identity map to be the soft cache weak identity map. |
boolean |
usesOptimisticLocking()
PUBLIC: Return true if the receiver uses write (optimistic) locking. |
boolean |
usesSequenceNumbers()
PUBLIC: Return true if the receiver uses sequence numbers. |
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. |
| Methods inherited from class oracle.toplink.publicinterface.Descriptor |
addTableName, getEventManager, getInheritancePolicy, getJavaClassName, getQueryManager, getTableName, getTableNames, removeMappingForAttributeName, setConstraintDependencies, setDefaultTableName, setMultipleTableInsertOrder, setTableName, setTableNames, setTableQualifier, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ClassDescriptor()
| Method Detail |
public void addAbstractQueryKey(java.lang.String queryKeyName)
addAbstractQueryKey in class Descriptorpublic void addConstraintDependencies(java.lang.Class dependencies)
addConstraintDependencies in class Descriptor
public DatabaseMapping addDirectMapping(java.lang.String attributeName,
java.lang.String fieldName)
addDirectMapping in class Descriptor
public DatabaseMapping addDirectMapping(java.lang.String attributeName,
java.lang.String getMethodName,
java.lang.String setMethodName,
java.lang.String fieldName)
addDirectMapping in class Descriptor
public void addDirectQueryKey(java.lang.String queryKeyName,
java.lang.String fieldName)
addDirectQueryKey in class Descriptorpublic DatabaseMapping addMapping(DatabaseMapping mapping)
addMapping in class Descriptor
public void addMultipleTableForeignKeyFieldName(java.lang.String fieldNameInSourceTable,
java.lang.String fieldNameInTargetTable)
throws DescriptorException
addMultipleTableForeignKeyFieldName in class DescriptorDescriptorException
public void addMultipleTablePrimaryKeyFieldName(java.lang.String fieldNameInSourceTable,
java.lang.String fieldNameInTargetTable)
throws DescriptorException
addMultipleTablePrimaryKeyFieldName in class DescriptorDescriptorExceptionpublic void addPrimaryKeyFieldName(java.lang.String fieldName)
addPrimaryKeyFieldName in class Descriptor#addMultipleTableForeignKeyFieldName(String, String);public void addPrimaryKeyField(oracle.toplink.internal.helper.DatabaseField field)
addPrimaryKeyField in class Descriptorpublic void addQueryKey(QueryKey queryKey)
addQueryKey in class Descriptorpublic void alwaysConformResultsInUnitOfWork()
alwaysConformResultsInUnitOfWork in class Descriptorpublic void alwaysRefreshCache()
setShouldAlwaysRefreshCache(boolean) with an argument of true:
it configures a Descriptor 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().
alwaysRefreshCache in class DescriptordontAlwaysRefreshCache()public void alwaysRefreshCacheOnRemote()
setShouldAlwaysRefreshCacheOnRemote(boolean) with an argument of true:
it configures a Descriptor 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 #refreshOnlyIfNewerVersion.
alwaysRefreshCacheOnRemote in class DescriptordontAlwaysRefreshCacheOnRemote()public void applyAmendmentMethod()
applyAmendmentMethod in class Descriptorpublic void createCopyPolicy(java.lang.String policyType)
createCopyPolicy in class Descriptorpublic void createInstantiationPolicy(java.lang.String policyType)
createInstantiationPolicy in class Descriptorpublic void descriptorIsAggregate()
descriptorIsAggregate in class Descriptorpublic void descriptorIsAggregateCollection()
descriptorIsAggregateCollection in class Descriptorpublic void descriptorIsForInterface()
descriptorIsForInterface in class Descriptorpublic void descriptorIsNormal()
descriptorIsNormal in class Descriptorpublic void disableCacheHits()
alwaysRefreshCache() or alwaysRefreshCacheOnRemote() to ensure queries always go to the database.
disableCacheHits in class Descriptorpublic void disableCacheHitsOnRemote()
disableCacheHitsOnRemote in class DescriptoralwaysRefreshCacheOnRemote()public void dontAlwaysConformResultsInUnitOfWork()
dontAlwaysConformResultsInUnitOfWork in class Descriptorpublic void dontAlwaysRefreshCache()
setShouldAlwaysRefreshCache(boolean) with an argument of false:
it ensures that a Descriptor is not configured to always refresh the cache if data is received from the database by any query.
dontAlwaysRefreshCache in class DescriptoralwaysRefreshCache()public void dontAlwaysRefreshCacheOnRemote()
setShouldAlwaysRefreshCacheOnRemote(boolean) with an argument of false:
it ensures that a Descriptor is not configured to always remotely refresh the cache if data is received from the
database by any query in a RemoteSession.
dontAlwaysRefreshCacheOnRemote in class DescriptoralwaysRefreshCacheOnRemote()public void dontDisableCacheHits()
dontDisableCacheHits in class DescriptordisableCacheHits()public void dontDisableCacheHitsOnRemote()
dontDisableCacheHitsOnRemote in class DescriptordisableCacheHitsOnRemote()public void dontOnlyRefreshCacheIfNewerVersion()
setShouldOnlyRefreshCacheIfNewerVersion(boolean) with an argument of false:
it ensures that a Descriptor 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).
dontOnlyRefreshCacheIfNewerVersion in class DescriptoronlyRefreshCacheIfNewerVersion()public java.lang.String getAlias()
getAlias in class Descriptorpublic java.lang.Class getAmendmentClass()
getAmendmentClass in class Descriptorpublic java.lang.String getAmendmentMethodName()
getAmendmentMethodName in class Descriptorpublic oracle.toplink.descriptors.changetracking.ObjectChangePolicy getObjectChangePolicy()
getObjectChangePolicy in class Descriptorpublic HistoryPolicy getHistoryPolicy()
getHistoryPolicy in class Descriptorpublic CacheInvalidationPolicy getCacheInvalidationPolicy()
getCacheInvalidationPolicy in class DescriptorCacheInvalidationPolicypublic int getCacheSynchronizationType()
getCacheSynchronizationType in class Descriptorpublic java.util.Vector getConstraintDependencies()
getConstraintDependencies in class Descriptorpublic int getDescriptorType()
getDescriptorType in class Descriptorpublic DescriptorEventManager getDescriptorEventManager()
public int getIdentityMapSize()
getIdentityMapSize in class Descriptorpublic InheritancePolicy getDescriptorInheritancePolicy()
public InterfacePolicy getInterfacePolicy()
getInterfacePolicy in class Descriptorpublic java.lang.Class getJavaClass()
getJavaClass in class Descriptorpublic DatabaseMapping getMappingForAttributeName(java.lang.String attributeName)
getMappingForAttributeName in class Descriptorpublic java.util.Vector getMappings()
getMappings in class Descriptorpublic oracle.toplink.internal.descriptors.OptimisticLockingPolicy getOptimisticLockingPolicy()
getOptimisticLockingPolicy in class Descriptorpublic java.util.Vector getPrimaryKeyFieldNames()
getPrimaryKeyFieldNames in class Descriptorpublic java.util.Hashtable getProperties()
getProperties in class Descriptorpublic java.lang.Object getProperty(java.lang.String name)
getProperty in class Descriptorpublic java.util.Hashtable getQueryKeys()
getQueryKeys in class Descriptorpublic DescriptorQueryManager getDescriptorQueryManager()
public int getRemoteIdentityMapSize()
getRemoteIdentityMapSize in class Descriptorpublic ReturningPolicy getReturningPolicy()
getReturningPolicy in class Descriptorpublic java.lang.String getSequenceNumberFieldName()
getSequenceNumberFieldName in class Descriptorpublic java.lang.String getSequenceNumberName()
getSequenceNumberName in class Descriptorpublic WrapperPolicy getWrapperPolicy()
getWrapperPolicy in class Descriptorpublic boolean isAggregateCollectionDescriptor()
isAggregateCollectionDescriptor in class Descriptorpublic boolean isAggregateDescriptor()
isAggregateDescriptor in class Descriptorpublic boolean isChildDescriptor()
isChildDescriptor in class Descriptorpublic boolean isDescriptorForInterface()
isDescriptorForInterface in class Descriptorpublic boolean isIsolated()
isIsolated in class Descriptorpublic void onlyRefreshCacheIfNewerVersion()
setShouldOnlyRefreshCacheIfNewerVersion(boolean) with an argument of true:
it configures a Descriptor 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:
Descriptor 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.
onlyRefreshCacheIfNewerVersion in class DescriptordontOnlyRefreshCacheIfNewerVersion()public void removeProperty(java.lang.String property)
removeProperty in class Descriptorpublic void setAlias(java.lang.String alias)
setAlias in class Descriptorpublic void setAmendmentClass(java.lang.Class amendmentClass)
setAmendmentClass in class Descriptorpublic void setAmendmentMethodName(java.lang.String amendmentMethodName)
setAmendmentMethodName in class Descriptorpublic void setCacheSynchronizationType(int type)
setCacheSynchronizationType in class Descriptortype - int The synchronization type for this descriptorpublic void setObjectChangePolicy(oracle.toplink.descriptors.changetracking.ObjectChangePolicy policy)
setObjectChangePolicy in class Descriptorpublic void setHistoryPolicy(HistoryPolicy policy)
setHistoryPolicy in class Descriptorpublic void setCacheInvalidationPolicy(CacheInvalidationPolicy policy)
setCacheInvalidationPolicy in class DescriptorCacheInvalidationPolicypublic void setDescriptorType(int descriptorType)
setDescriptorType in class Descriptorpublic void setIdentityMapClass(java.lang.Class theIdentityMapClass)
setIdentityMapClass in class Descriptorpublic void setIdentityMapSize(int identityMapSize)
setIdentityMapSize in class Descriptorpublic void setReturningPolicy(ReturningPolicy returningPolicy)
setReturningPolicy in class Descriptorpublic void setIsIsolated(boolean isIsolated)
setIsIsolated in class Descriptorpublic void setJavaClass(java.lang.Class theJavaClass)
setJavaClass in class Descriptorpublic void setJavaInterface(java.lang.Class theJavaInterface)
setJavaInterface in class Descriptorpublic void setOptimisticLockingPolicy(oracle.toplink.internal.descriptors.OptimisticLockingPolicy optimisticLockingPolicy)
setOptimisticLockingPolicy in class DescriptorVersionLockingPolicy,
TimestampLockingPolicy,
FieldsLockingPolicypublic void setPrimaryKeyFieldName(java.lang.String fieldName)
setPrimaryKeyFieldName in class DescriptoraddPrimaryKeyFieldName(String)public void setPrimaryKeyFieldNames(java.util.Vector primaryKeyFieldsName)
setPrimaryKeyFieldNames in class DescriptoraddPrimaryKeyFieldName(String)
public void setProperty(java.lang.String name,
java.lang.Object value)
setProperty in class Descriptorpublic void setRemoteIdentityMapClass(java.lang.Class theIdentityMapClass)
setRemoteIdentityMapClass in class Descriptorpublic void setRemoteIdentityMapSize(int identityMapSize)
setRemoteIdentityMapSize in class Descriptorpublic void setSequenceNumberFieldName(java.lang.String fieldName)
setSequenceNumberFieldName in class Descriptorpublic void setSequenceNumberName(java.lang.String name)
setSequenceNumberName in class Descriptorpublic void setShouldAlwaysConformResultsInUnitOfWork(boolean shouldAlwaysConformResultsInUnitOfWork)
setShouldAlwaysConformResultsInUnitOfWork in class Descriptorpublic void setShouldAlwaysRefreshCache(boolean shouldAlwaysRefreshCache)
shouldAlwaysRefreshCache argument passed into this method is true,
this method configures a Descriptor 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 Descriptor is not configured to always refresh the cache if data is received from the database by any query.
setShouldAlwaysRefreshCache in class DescriptoralwaysRefreshCache(),
dontAlwaysRefreshCache()public void setShouldAlwaysRefreshCacheOnRemote(boolean shouldAlwaysRefreshCacheOnRemote)
shouldAlwaysRefreshCacheOnRemote argument passed into this method is true,
this method configures a Descriptor 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 #refreshOnlyIfNewerVersion.
When the shouldAlwaysRefreshCacheOnRemote argument passed into this method is false,
this method ensures that a Descriptor is not configured to always remotely refresh the cache if data
is received from the database by any query in a RemoteSession.
setShouldAlwaysRefreshCacheOnRemote in class DescriptoralwaysRefreshCacheOnRemote(),
dontAlwaysRefreshCacheOnRemote()public void setShouldBeReadOnly(boolean shouldBeReadOnly)
setShouldBeReadOnly in class Descriptorpublic void setReadOnly()
setReadOnly in class Descriptorpublic void setShouldDisableCacheHits(boolean shouldDisableCacheHits)
setShouldDisableCacheHits in class DescriptoralwaysRefreshCache()public void setShouldDisableCacheHitsOnRemote(boolean shouldDisableCacheHitsOnRemote)
setShouldDisableCacheHitsOnRemote in class DescriptordisableCacheHitsOnRemote()public void setShouldOnlyRefreshCacheIfNewerVersion(boolean shouldOnlyRefreshCacheIfNewerVersion)
shouldOnlyRefreshCacheIfNewerVersion argument passed into this method is true,
this method configures a Descriptor 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:
Descriptor 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 Descriptor 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).
setShouldOnlyRefreshCacheIfNewerVersion in class DescriptoronlyRefreshCacheIfNewerVersion(),
dontOnlyRefreshCacheIfNewerVersion()public void setShouldOrderMappings(boolean shouldOrderMappings)
setShouldOrderMappings in class Descriptorpublic void setWrapperPolicy(WrapperPolicy wrapperPolicy)
setWrapperPolicy in class Descriptorpublic boolean shouldAlwaysConformResultsInUnitOfWork()
shouldAlwaysConformResultsInUnitOfWork in class Descriptorpublic boolean shouldAlwaysRefreshCache()
true if the Descriptor is configured to always refresh
the cache if data is received from the database by any query. Otherwise, it returns false.
shouldAlwaysRefreshCache in class DescriptorsetShouldAlwaysRefreshCache(boolean)public boolean shouldAlwaysRefreshCacheOnRemote()
true if the Descriptor 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.
shouldAlwaysRefreshCacheOnRemote in class DescriptorsetShouldAlwaysRefreshCacheOnRemote(boolean)public boolean shouldBeReadOnly()
shouldBeReadOnly in class Descriptorpublic boolean shouldDisableCacheHits()
shouldDisableCacheHits in class DescriptordisableCacheHits()public boolean shouldDisableCacheHitsOnRemote()
shouldDisableCacheHitsOnRemote in class DescriptordisableCacheHitsOnRemote()public boolean shouldOnlyRefreshCacheIfNewerVersion()
true if the Descriptor 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.
shouldOnlyRefreshCacheIfNewerVersion in class DescriptorsetShouldOnlyRefreshCacheIfNewerVersion(boolean)public boolean shouldUseCacheIdentityMap()
shouldUseCacheIdentityMap in class Descriptorpublic boolean shouldUseFullIdentityMap()
shouldUseFullIdentityMap in class Descriptorpublic boolean shouldUseHardCacheWeakIdentityMap()
shouldUseHardCacheWeakIdentityMap in class Descriptorpublic boolean shouldUseNoIdentityMap()
shouldUseNoIdentityMap in class Descriptorpublic boolean shouldUseRemoteCacheIdentityMap()
shouldUseRemoteCacheIdentityMap in class Descriptorpublic boolean shouldUseRemoteFullIdentityMap()
shouldUseRemoteFullIdentityMap in class Descriptorpublic boolean shouldUseRemoteHardCacheWeakIdentityMap()
shouldUseRemoteHardCacheWeakIdentityMap in class Descriptorpublic boolean shouldUseRemoteNoIdentityMap()
shouldUseRemoteNoIdentityMap in class Descriptorpublic boolean shouldUseRemoteSoftCacheWeakIdentityMap()
shouldUseRemoteSoftCacheWeakIdentityMap in class Descriptorpublic boolean shouldUseRemoteWeakIdentityMap()
shouldUseRemoteWeakIdentityMap in class Descriptorpublic boolean shouldUseSoftCacheWeakIdentityMap()
shouldUseSoftCacheWeakIdentityMap in class Descriptorpublic boolean shouldUseWeakIdentityMap()
shouldUseWeakIdentityMap in class Descriptorpublic void useAllFieldsLocking()
useAllFieldsLocking in class DescriptorAllFieldsLockingPolicypublic void useCacheIdentityMap()
useCacheIdentityMap in class Descriptorpublic void useChangedFieldsLocking()
useChangedFieldsLocking in class DescriptorChangedFieldsLockingPolicypublic void useCloneCopyPolicy()
useCloneCopyPolicy in class DescriptoruseCloneCopyPolicy(String)public void useCloneCopyPolicy(java.lang.String cloneMethodName)
useCloneCopyPolicy in class DescriptoruseCloneCopyPolicy()public void useInstantiationCopyPolicy()
useInstantiationCopyPolicy in class DescriptoruseCloneCopyPolicy(),
useCloneCopyPolicy(String),
useDefaultConstructorInstantiationPolicy(),
useMethodInstantiationPolicy(String),
useFactoryInstantiationPolicy(Class, String),
useFactoryInstantiationPolicy(Class, String, String),
useFactoryInstantiationPolicy(Object, String)public void useDefaultConstructorInstantiationPolicy()
useDefaultConstructorInstantiationPolicy in class DescriptoruseMethodInstantiationPolicy(String),
useFactoryInstantiationPolicy(Class, String),
useFactoryInstantiationPolicy(Class, String, String),
useFactoryInstantiationPolicy(Object, String)
public void useFactoryInstantiationPolicy(java.lang.Class factoryClass,
java.lang.String methodName)
useFactoryInstantiationPolicy in class DescriptoruseDefaultConstructorInstantiationPolicy(),
useMethodInstantiationPolicy(String),
useFactoryInstantiationPolicy(Class, String, String),
useFactoryInstantiationPolicy(Object, String)
public void useFactoryInstantiationPolicy(java.lang.Class factoryClass,
java.lang.String methodName,
java.lang.String factoryMethodName)
useFactoryInstantiationPolicy in class DescriptoruseDefaultConstructorInstantiationPolicy(),
useFactoryInstantiationPolicy(Class, String),
useFactoryInstantiationPolicy(Object, String),
useMethodInstantiationPolicy(String)
public void useFactoryInstantiationPolicy(java.lang.Object factory,
java.lang.String methodName)
useFactoryInstantiationPolicy in class DescriptoruseDefaultConstructorInstantiationPolicy(),
useMethodInstantiationPolicy(String),
useFactoryInstantiationPolicy(Class, String),
useFactoryInstantiationPolicy(Class, String, String)public void useFullIdentityMap()
useFullIdentityMap in class Descriptorpublic void useHardCacheWeakIdentityMap()
useHardCacheWeakIdentityMap in class Descriptorpublic void useMethodInstantiationPolicy(java.lang.String staticMethodName)
useMethodInstantiationPolicy in class DescriptoruseDefaultConstructorInstantiationPolicy(),
useFactoryInstantiationPolicy(Class, String),
useFactoryInstantiationPolicy(Class, String, String),
useFactoryInstantiationPolicy(Object, String)public void useNoIdentityMap()
useNoIdentityMap in class Descriptorpublic void useRemoteCacheIdentityMap()
useRemoteCacheIdentityMap in class Descriptorpublic void useRemoteFullIdentityMap()
useRemoteFullIdentityMap in class Descriptorpublic void useRemoteHardCacheWeakIdentityMap()
useRemoteHardCacheWeakIdentityMap in class Descriptorpublic void useRemoteNoIdentityMap()
useRemoteNoIdentityMap in class Descriptorpublic void useRemoteSoftCacheWeakIdentityMap()
useRemoteSoftCacheWeakIdentityMap in class Descriptorpublic void useRemoteWeakIdentityMap()
useRemoteWeakIdentityMap in class Descriptorpublic void useSelectedFieldsLocking(java.util.Vector fieldNames)
useSelectedFieldsLocking in class DescriptorSelectedFieldsLockingPolicypublic void useSoftCacheWeakIdentityMap()
useSoftCacheWeakIdentityMap in class Descriptorpublic boolean usesOptimisticLocking()
usesOptimisticLocking in class Descriptorpublic boolean usesSequenceNumbers()
usesSequenceNumbers in class Descriptorpublic void useTimestampLocking(java.lang.String writeLockFieldName)
useTimestampLocking in class Descriptor
public void useTimestampLocking(java.lang.String writeLockFieldName,
boolean shouldStoreInCache)
useTimestampLocking in class DescriptorVersionLockingPolicypublic void useVersionLocking(java.lang.String writeLockFieldName)
useVersionLocking in class Descriptor
public void useVersionLocking(java.lang.String writeLockFieldName,
boolean shouldStoreInCache)
useVersionLocking in class DescriptorTimestampLockingPolicypublic void useWeakIdentityMap()
useWeakIdentityMap in class Descriptorpublic CMPPolicy getCMPPolicy()
getCMPPolicy in class Descriptorpublic void setCMPPolicy(CMPPolicy newCMPPolicy)
setCMPPolicy in class Descriptorpublic FetchGroupManager getFetchGroupManager()
getFetchGroupManager in class DescriptorFetchGroupTrackerpublic void setFetchGroupManager(FetchGroupManager fetchGroupManager)
setFetchGroupManager in class Descriptor
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||