Module org.eclipse.persistence.core
Interface CoreContainerPolicy<ABSTRACT_SESSION extends CoreAbstractSession>
- All Known Subinterfaces:
CoreMappedKeyMapContainerPolicy<ABSTRACT_SESSION>
- All Known Implementing Classes:
ArrayListContainerPolicy,CollectionContainerPolicy,ContainerPolicy,CursoredStreamPolicy,CursorPolicy,IndirectListContainerPolicy,InterfaceContainerPolicy,ListContainerPolicy,MapContainerPolicy,MappedKeyMapContainerPolicy,OrderedListContainerPolicy,ScrollableCursorPolicy,SortedCollectionContainerPolicy,VectorContainerPolicy
public interface CoreContainerPolicy<ABSTRACT_SESSION extends CoreAbstractSession>
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddInto(Object element, Object container, ABSTRACT_SESSION session) INTERNAL: Add element to container.booleanaddInto(Object key, Object element, Object container, ABSTRACT_SESSION session) INTERNAL: Add element to container.voidINTERNAL: Remove all the elements from the specified container.INTERNAL: Return an instance of the container class.containerInstance(int initialCapacity) INTERNAL: Return an instance of the container class with the specified initial capacity.booleancontains(Object element, Object container, ABSTRACT_SESSION session) INTERNAL: Check if the object is contained in the collection.booleanINTERNAL: Return whether the iterator has more objects.booleanINTERNAL: Return whether the container is empty.booleaniteratorFor(Object container) INTERNAL: Return an iterator for the given container.next(Object iterator, ABSTRACT_SESSION session) INTERNAL: Return the next object from the iterator.INTERNAL: Return the next object on the queue.nextEntry(Object iterator, ABSTRACT_SESSION session) INTERNAL: Return the next object on the queue.booleanremoveFrom(Object element, Object container, ABSTRACT_SESSION session) INTERNAL: Remove the object from the collection.voidsetContainerClass(Class<?> containerClass) INTERNAL: Set the class used for the container.intINTERNAL: Return the size of container.vectorFor(Object container, ABSTRACT_SESSION session) INTERNAL: Return a Vector populated with the contents of container.
-
Method Details
-
addInto
INTERNAL: Add element to container. This is used to add to a collection independent of JDK 1.1 and 1.2. The session may be required to wrap for the wrapper policy. Return whether the container changed -
addInto
INTERNAL: Add element to container. This is used to add to a collection independent of type. The session may be required to wrap for the wrapper policy. Return whether the container changed. -
clear
INTERNAL: Remove all the elements from the specified container. Valid only for certain subclasses. -
containerInstance
Object containerInstance()INTERNAL: Return an instance of the container class. Null should never be returned. A ValidationException is thrown on error. -
contains
INTERNAL: Check if the object is contained in the collection. This is used to check contains in a collection independent of JDK 1.1 and 1.2. The session may be required to unwrap for the wrapper policy. -
hasNext
INTERNAL: Return whether the iterator has more objects. The iterator is the one returned from #iteratorFor(). Valid for some subclasses only.- See Also:
-
isEmpty
INTERNAL: Return whether the container is empty. -
isListPolicy
boolean isListPolicy() -
iteratorFor
INTERNAL: Return an iterator for the given container. This iterator can then be used as a parameter to #hasNext() and #next().- See Also:
-
next
INTERNAL: Return the next object from the iterator. This is used to stream over a collection independent of JDK 1.1 and 1.2. The session may be required to unwrap for the wrapper policy. -
nextEntry
INTERNAL: Return the next object on the queue. The iterator is the one returned from #iteratorFor(). In the case of a Map, this will return a MapEntry to allow use of the key- See Also:
-
nextEntry
INTERNAL: Return the next object on the queue. The iterator is the one returned from #iteratorFor(). In the case of a Map, this will return a MapEntry to allow use of the key- See Also:
-
removeFrom
INTERNAL: Remove the object from the collection. This is used to remove from a collection independent of JDK 1.1 and 1.2. The session may be required to unwrap for the wrapper policy. -
setContainerClass
INTERNAL: Set the class used for the container. -
sizeFor
INTERNAL: Return the size of container. -
vectorFor
INTERNAL: Return a Vector populated with the contents of container. Added for bug 2766379, must implement a version of vectorFor that handles wrapped objects. -
containerInstance
INTERNAL: Return an instance of the container class with the specified initial capacity. Null should never be returned. A ValidationException is thrown on error.
-