Module org.eclipse.persistence.core
Class SortedCollectionContainerPolicy
java.lang.Object
org.eclipse.persistence.internal.queries.ContainerPolicy
org.eclipse.persistence.internal.queries.InterfaceContainerPolicy
org.eclipse.persistence.internal.queries.CollectionContainerPolicy
org.eclipse.persistence.internal.queries.SortedCollectionContainerPolicy
- All Implemented Interfaces:
Serializable
,Cloneable
,CoreContainerPolicy<AbstractSession>
Purpose: A SortedCollectionContainerPolicy is ContainerPolicy whose container class implements the SortedInterface interface. Added for BUG # 3233263
Responsibilities: Provide the functionality to operate on an instance of a SortedSet.
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.queries.InterfaceContainerPolicy
cloneMethod, containerClass, containerClassName
Fields inherited from class org.eclipse.persistence.internal.queries.ContainerPolicy
constructor, defaultContainerClass, elementDescriptor
-
Constructor Summary
ConstructorDescriptionINTERNAL: Construct a new policy.SortedCollectionContainerPolicy
(Class<?> containerClass) INTERNAL: Construct a new policy for the specified class.SortedCollectionContainerPolicy
(String containerClassName) INTERNAL: Construct a new policy for the specified class name. -
Method Summary
Modifier and TypeMethodDescriptionINTERNAL Override from ContainerPolicy.void
convertClassNamesToClasses
(ClassLoader classLoader) INTERNAL: Convert all the class-name-based settings in this SortedCollectionContainerPolicy to actual class-based settings.INTERNAL: Return the stored comparatorClass
<?> INTERNAL: Return the stored comparator classINTERNAL: return stored comparator class namevoid
setComparator
(Comparator comparator) INTERNAL: Sets a comparator object for this policy to use when instantiating a new SortedSet object.void
setComparatorClass
(Class<?> comparatorClass) INTERNAL: Sets a comparator class for this policy to use when instantiating a new SortedSet object.void
setComparatorClassName
(String comparatorClassName) INTERNAL: Sets a comparator class name for this policy to use when instantiating a new SortedSet object.Methods inherited from class org.eclipse.persistence.internal.queries.CollectionContainerPolicy
addInto, buildContainerFromVector, clear, cloneFor, contains, getInterfaceType, hasOrder, isCollectionPolicy, isValidContainer, iteratorFor, removeFrom, sizeFor
Methods inherited from class org.eclipse.persistence.internal.queries.InterfaceContainerPolicy
createChangeEvent, createQueryKeyForMapKey, equals, getCloneMethod, getCloneMethod, getContainerClass, getContainerClassName, getDirectKeyField, hashCode, hasNext, invokeCloneMethodOn, isMapKeyAttribute, isValidContainerType, next, setCloneMethod, setContainerClass, setContainerClassName, toStringInfo
Methods inherited from class org.eclipse.persistence.internal.queries.ContainerPolicy
addAdditionalFieldsToQuery, addAll, addAll, addFieldsForMapKey, addInto, addInto, addInto, addNestedJoinsQueriesForMapKey, addNextValueFromIteratorInto, buildChangeSetForNewObjectInCollection, buildCloneForKey, buildCollectionEntry, buildDefaultPolicy, buildKey, buildKeyFromJoinedRow, buildPolicyFor, buildPolicyFor, buildReferencesPKList, buildSelectionQueryForDirectCollectionMapping, cascadeDiscoverAndPersistUnregisteredNewObjects, cascadePerformRemoveIfRequired, cascadeRegisterNewIfRequired, clone, clone, collectObjectForNewCollection, compareCollectionsForChange, compareKeys, concatenateContainers, containerInstance, contains, copyMapDataToRow, createChangeSetForKeys, createWrappedObjectFromExistingWrappedObject, deleteWrappedObject, execute, getAdditionalFieldsForJoin, getAdditionalTablesForJoinQuery, getChangeValuesFrom, getCloneDataFromChangeSet, getConstructor, getDefaultContainerClass, getDescriptorForMapKey, getElementDescriptor, getIdentityFieldsForMapKey, getKeyMappingDataForWriteQuery, getKeySelectionCriteria, getKeyType, hasElementDescriptor, initialize, initializeConstructor, isCursoredStreamPolicy, isCursorPolicy, isDirectMapPolicy, isEmpty, isListPolicy, isMapKeyObject, isMappedKeyMapPolicy, isMapPolicy, isOrderedListPolicy, isScrollableCursorPolicy, iterateOnMapKey, keyFrom, keyFromEntry, keyFromIterator, mergeCascadeParts, mergeChanges, 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, setConstructor, setDefaultContainerClass, setElementDescriptor, setKeyName, setKeyName, shouldAddAll, shouldIncludeKeyInDeleteEvent, shouldUpdateForeignKeysPostInsert, toString, unwrapElement, unwrapIteratorResult, updateChangeRecordForSelfMerge, updateJoinedMappingIndexesForMapKey, valueFromPKList, vectorFor
-
Field Details
-
m_comparator
-
comparatorClass
-
comparatorClassName
-
-
Constructor Details
-
SortedCollectionContainerPolicy
public SortedCollectionContainerPolicy()INTERNAL: Construct a new policy. -
SortedCollectionContainerPolicy
INTERNAL: Construct a new policy for the specified class. -
SortedCollectionContainerPolicy
INTERNAL: Construct a new policy for the specified class name.
-
-
Method Details
-
setComparator
INTERNAL: Sets a comparator object for this policy to use when instantiating a new SortedSet object. -
setComparatorClass
INTERNAL: Sets a comparator class for this policy to use when instantiating a new SortedSet object. -
setComparatorClassName
INTERNAL: Sets a comparator class name for this policy to use when instantiating a new SortedSet object. -
getComparator
INTERNAL: Return the stored comparator -
getComparatorClass
INTERNAL: Return the stored comparator class -
getComparatorClassName
INTERNAL: return stored comparator class name -
containerInstance
INTERNAL Override from ContainerPolicy. Need to maintain the comparator in the new instance- Specified by:
containerInstance
in interfaceCoreContainerPolicy<AbstractSession>
- Overrides:
containerInstance
in classContainerPolicy
-
convertClassNamesToClasses
INTERNAL: Convert all the class-name-based settings in this SortedCollectionContainerPolicy to actual class-based settings. This method is used when converting a project that has been built with class names to a project with classes.- Overrides:
convertClassNamesToClasses
in classInterfaceContainerPolicy
-