public abstract class InterfaceContainerPolicy extends ContainerPolicy
Purpose: The abstract class for ContainerPolicy's whose container class implements a container interface.
| Constructor and Description |
|---|
InterfaceContainerPolicy()
INTERNAL:
Construct a new policy.
|
InterfaceContainerPolicy(java.lang.Class containerClass)
INTERNAL:
Construct a new policy for the specified class.
|
InterfaceContainerPolicy(java.lang.String containerClassName)
INTERNAL:
Construct a new policy for the specified class name.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
buildContainerFromVector(java.util.Vector vector,
AbstractSession session)
INTERNAL:
Return a container populated with the contents of the specified Vector.
|
java.lang.Object |
cloneFor(java.lang.Object container)
INTERNAL:
Return a clone of the specified container.
|
void |
convertClassNamesToClasses(java.lang.ClassLoader classLoader)
INTERNAL:
Convert all the class-name-based settings in this ContainerPolicy to actual class-based
settings.
|
CollectionChangeEvent |
createChangeEvent(java.lang.Object collectionOwner,
java.lang.String propertyName,
java.lang.Object collectionChanged,
java.lang.Object elementChanged,
int changeType,
java.lang.Integer index,
boolean isChangeApplied)
INTERNAL:
Creates a CollectionChangeEvent for the container
|
QueryKey |
createQueryKeyForMapKey()
INTERNAL:
Create a query key that links to the map key
InterfaceContainerPolicy does not support maps, so this method will return null
subclasses will extend this method.
|
boolean |
equals(java.lang.Object object)
INTERNAL:
Return if the policy is equal to the other.
|
java.lang.reflect.Method |
getCloneMethod()
INTERNAL:
Return the 'clone()' Method for the container class.
|
java.lang.Class |
getContainerClass()
INTERNAL:
Returns the container class to be used with this policy.
|
java.lang.String |
getContainerClassName()
INTERNAL:
Used by the MW
|
DatabaseField |
getDirectKeyField(CollectionMapping mapping)
INTERNAL:
Return the DatabaseField that represents the key in a DirectMapMapping.
|
abstract java.lang.Class |
getInterfaceType() |
boolean |
hasNext(java.lang.Object iterator)
INTERNAL:
Return whether the iterator has more objects,
|
boolean |
isMapKeyAttribute()
INTERNAL:
Return whether a map key this container policy represents is an attribute
By default this method will return false since only subclasses actually represent maps.
|
boolean |
isValidContainerType(java.lang.Class containerType)
INTERNAL:
Validate the container type.
|
void |
setCloneMethod(java.lang.reflect.Method cloneMethod)
INTERNAL:
Set the Method that will return a clone of an instance of the containerClass.
|
void |
setContainerClass(java.lang.Class containerClass)
INTERNAL:
Set the class to use as the container.
|
void |
setContainerClassName(java.lang.String containerClassName)
INTERNAL:
Used by the MW
|
addAdditionalFieldsToQuery, addAll, addAll, addFieldsForMapKey, addInto, addInto, addInto, addInto, addNestedJoinsQueriesForMapKey, addNextValueFromIteratorInto, buildChangeSetForNewObjectInCollection, buildCloneForKey, buildCollectionEntry, buildDefaultPolicy, buildKey, buildKeyFromJoinedRow, buildPolicyFor, buildPolicyFor, buildReferencesPKList, buildSelectionQueryForDirectCollectionMapping, cascadeDiscoverAndPersistUnregisteredNewObjects, cascadePerformRemoveIfRequired, cascadeRegisterNewIfRequired, clear, clone, clone, compareCollectionsForChange, compareKeys, concatenateContainers, containerInstance, containerInstance, contains, copyMapDataToRow, createWrappedObjectFromExistingWrappedObject, deleteWrappedObject, execute, getAdditionalFieldsForJoin, getAdditionalTablesForJoinQuery, getChangeValuesFrom, getCloneDataFromChangeSet, getDefaultContainerClass, getDescriptorForMapKey, getElementDescriptor, getIdentityFieldsForMapKey, getKeyMappingDataForWriteQuery, getKeySelectionCriteria, getKeyType, hasElementDescriptor, hasOrder, initialize, initializeConstructor, isCollectionPolicy, isCursoredStreamPolicy, isCursorPolicy, isDirectMapPolicy, isEmpty, isListPolicy, isMapKeyObject, isMappedKeyMapPolicy, isMapPolicy, isOrderedListPolicy, isScrollableCursorPolicy, isValidContainer, iterateOnMapKey, iteratorFor, keyFrom, keyFromEntry, keyFromIterator, mergeCascadeParts, mergeChanges, next, nextEntry, nextEntry, overridesRead, postCalculateChanges, postCalculateChanges, postInitialize, prepare, prepareForExecution, processAdditionalWritableMapKeyFields, propagatesEventsToCollection, propogatePostDelete, propogatePostInsert, propogatePostUpdate, propogatePreDelete, propogatePreInsert, propogatePreUpdate, recordAddToCollectionInChangeRecord, recordPrivateOwnedRemovals, recordRemoveFromCollectionInChangeRecord, recordUpdateToCollectionInChangeRecord, remoteExecute, removeFrom, removeFrom, requiresDataModificationEvents, setDefaultContainerClass, setElementDescriptor, setKeyName, setKeyName, shouldAddAll, shouldIncludeKeyInDeleteEvent, shouldUpdateForeignKeysPostInsert, sizeFor, toString, unwrapElement, unwrapIteratorResult, updateChangeRecordForSelfMerge, updateJoinedMappingIndexesForMapKey, valueFromPKList, vectorForpublic InterfaceContainerPolicy()
public InterfaceContainerPolicy(java.lang.Class containerClass)
public InterfaceContainerPolicy(java.lang.String containerClassName)
public boolean equals(java.lang.Object object)
equals in class ContainerPolicypublic java.lang.Object cloneFor(java.lang.Object container)
cloneFor in class ContainerPolicypublic void convertClassNamesToClasses(java.lang.ClassLoader classLoader)
convertClassNamesToClasses in class ContainerPolicyclassLoader - public CollectionChangeEvent createChangeEvent(java.lang.Object collectionOwner, java.lang.String propertyName, java.lang.Object collectionChanged, java.lang.Object elementChanged, int changeType, java.lang.Integer index, boolean isChangeApplied)
createChangeEvent in class ContainerPolicypublic QueryKey createQueryKeyForMapKey()
public java.lang.reflect.Method getCloneMethod()
public java.lang.Class getContainerClass()
getContainerClass in class ContainerPolicypublic java.lang.String getContainerClassName()
ContainerPolicygetContainerClassName in class ContainerPolicypublic DatabaseField getDirectKeyField(CollectionMapping mapping)
public abstract java.lang.Class getInterfaceType()
public boolean hasNext(java.lang.Object iterator)
hasNext in interface CoreContainerPolicy<AbstractSession>hasNext in class ContainerPolicyContainerPolicy.iteratorFor(java.lang.Object)public boolean isMapKeyAttribute()
public boolean isValidContainerType(java.lang.Class containerType)
isValidContainerType in class ContainerPolicypublic void setCloneMethod(java.lang.reflect.Method cloneMethod)
public void setContainerClass(java.lang.Class containerClass)
setContainerClass in interface CoreContainerPolicy<AbstractSession>setContainerClass in class ContainerPolicypublic void setContainerClassName(java.lang.String containerClassName)
ContainerPolicysetContainerClassName in class ContainerPolicypublic java.lang.Object buildContainerFromVector(java.util.Vector vector,
AbstractSession session)
buildContainerFromVector in class ContainerPolicyEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference