public class ListContainerPolicy extends CollectionContainerPolicy
Purpose: A ListContainerPolicy is ContainerPolicy whose container class implements the List interface. This signifies that the collection has order
Responsibilities: Provide the functionality to operate on an instance of a List.
ContainerPolicy
,
CollectionContainerPolicy
,
Serialized FormcloneMethod, containerClass, containerClassName
constructor, elementDescriptor
Constructor and Description |
---|
ListContainerPolicy()
INTERNAL:
Construct a new policy.
|
ListContainerPolicy(java.lang.Class containerClass)
INTERNAL:
Construct a new policy for the specified class.
|
ListContainerPolicy(java.lang.String containerClassName)
INTERNAL:
Construct a new policy for the specified class name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasOrder()
INTERNAL:
Returns true if the collection has order.
|
boolean |
isListPolicy()
INTERNAL:
Returns true if this is a ListContainerPolicy.
|
boolean |
isValidContainer(java.lang.Object container)
INTERNAL:
Validate the container type.
|
void |
recordAddToCollectionInChangeRecord(ObjectChangeSet changeSetToAdd,
CollectionChangeRecord collectionChangeRecord)
This method is used to bridge the behaviour between Attribute Change
Tracking and deferred change tracking with respect to adding the same
instance multiple times.
|
void |
recordRemoveFromCollectionInChangeRecord(ObjectChangeSet changeSetToRemove,
CollectionChangeRecord collectionChangeRecord)
This method is used to bridge the behaviour between Attribute Change
Tracking and deferred change tracking with respect to adding the same
instance multiple times.
|
addInto, buildContainerFromVector, clear, contains, getInterfaceType, isCollectionPolicy, iteratorFor, removeFrom, sizeFor
cloneFor, convertClassNamesToClasses, getCloneMethod, getCloneMethod, getContainerClass, getContainerClassName, hasNext, invokeCloneMethodOn, isValidContainerType, next, setCloneMethod, setContainerClass, setContainerClassName, toStringInfo
addInto, addInto, addIntoWithOrder, addIntoWithOrder, addIntoWithOrder, buildPolicyFor, buildPolicyFor, clone, clone, compareCollectionsForChange, compareKeys, concatenateContainers, containerInstance, containerInstance, contains, containsKey, execute, getConstructor, getElementDescriptor, hasElementDescriptor, initializeConstructor, isCursoredStreamPolicy, isCursorPolicy, isCursorStreamPolicy, isDirectMapPolicy, isEmpty, isMapPolicy, isScrollableCursorPolicy, keyFrom, mergeCascadeParts, mergeChanges, next, overridesRead, prepare, prepareForExecution, remoteExecute, removeAllElements, removeFrom, removeFrom, removeFromWithOrder, setConstructor, setElementDescriptor, setKeyName, toString, validateElementAndRehashIfRequired, vectorFor
public ListContainerPolicy()
public ListContainerPolicy(java.lang.Class containerClass)
public ListContainerPolicy(java.lang.String containerClassName)
public boolean hasOrder()
hasOrder
in class CollectionContainerPolicy
public boolean isListPolicy()
isListPolicy
in class ContainerPolicy
public boolean isValidContainer(java.lang.Object container)
isValidContainer
in class CollectionContainerPolicy
CollectionContainerPolicy.isValidContainer(Object)
,
MapContainerPolicy.isValidContainer(Object)
public void recordAddToCollectionInChangeRecord(ObjectChangeSet changeSetToAdd, CollectionChangeRecord collectionChangeRecord)
recordAddToCollectionInChangeRecord
in class ContainerPolicy
public void recordRemoveFromCollectionInChangeRecord(ObjectChangeSet changeSetToRemove, CollectionChangeRecord collectionChangeRecord)
recordRemoveFromCollectionInChangeRecord
in class ContainerPolicy