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, containerClassNameconstructor, 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, sizeForcloneFor, convertClassNamesToClasses, getCloneMethod, getCloneMethod, getContainerClass, getContainerClassName, hasNext, invokeCloneMethodOn, isValidContainerType, next, setCloneMethod, setContainerClass, setContainerClassName, toStringInfoaddInto, 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, vectorForpublic ListContainerPolicy()
public ListContainerPolicy(java.lang.Class containerClass)
public ListContainerPolicy(java.lang.String containerClassName)
public boolean hasOrder()
hasOrder in class CollectionContainerPolicypublic boolean isListPolicy()
isListPolicy in class ContainerPolicypublic boolean isValidContainer(java.lang.Object container)
isValidContainer in class CollectionContainerPolicyCollectionContainerPolicy.isValidContainer(Object),
MapContainerPolicy.isValidContainer(Object)public void recordAddToCollectionInChangeRecord(ObjectChangeSet changeSetToAdd, CollectionChangeRecord collectionChangeRecord)
recordAddToCollectionInChangeRecord in class ContainerPolicypublic void recordRemoveFromCollectionInChangeRecord(ObjectChangeSet changeSetToRemove, CollectionChangeRecord collectionChangeRecord)
recordRemoveFromCollectionInChangeRecord in class ContainerPolicy