Module org.eclipse.persistence.core
Package org.eclipse.persistence.mappings
Interface ContainerMapping
-
- All Known Subinterfaces:
ArrayCollectionMapping
- All Known Implementing Classes:
AbstractCompositeCollectionMapping,AbstractCompositeDirectCollectionMapping,AggregateCollectionMapping,ArrayMapping,CollectionMapping,DirectCollectionMapping,DirectMapMapping,EISCompositeCollectionMapping,EISCompositeDirectCollectionMapping,EISOneToManyMapping,ManyToManyMapping,NestedTableMapping,ObjectArrayMapping,OneToManyMapping,UnidirectionalOneToManyMapping,XMLAnyCollectionMapping,XMLBinaryDataCollectionMapping,XMLCollectionReferenceMapping,XMLCompositeCollectionMapping,XMLCompositeDirectCollectionMapping,XMLFragmentCollectionMapping,XMLInverseReferenceMapping,XMLVariableXPathCollectionMapping
public interface ContainerMappingInterface used by clients to interact with the assorted mappings that useContainerPolicy.- Since:
- TOPLink/Java 4.0
- Author:
- Big Country
- See Also:
ContainerPolicy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ContainerPolicygetContainerPolicy()PUBLIC: Return the mapping's container policy.voidsetContainerPolicy(ContainerPolicy containerPolicy)PUBLIC: Set the mapping's container policy.voiduseCollectionClass(Class<?> concreteClass)PUBLIC: Configure the mapping to use an instance of the specified container class to hold the target objects.voiduseCollectionClassName(String concreteClass)PUBLIC: Configure the mapping to use an instance of the specified container class to hold the target objects.voiduseListClassName(String concreteClass)PUBLIC: Configure the mapping to use an instance of the specified container class to hold the target objects.voiduseMapClass(Class<?> concreteClass, String methodName)PUBLIC: Configure the mapping to use an instance of the specified container class to hold the target objects.voiduseMapClassName(String concreteClass, String methodName)PUBLIC: Configure the mapping to use an instance of the specified container class to hold the target objects.
-
-
-
Method Detail
-
getContainerPolicy
ContainerPolicy getContainerPolicy()
PUBLIC: Return the mapping's container policy.
-
setContainerPolicy
void setContainerPolicy(ContainerPolicy containerPolicy)
PUBLIC: Set the mapping's container policy.
-
useCollectionClass
void useCollectionClass(Class<?> concreteClass)
PUBLIC: Configure the mapping to use an instance of the specified container class to hold the target objects.The container class must implement (directly or indirectly) the
java.util.Collectioninterface.
-
useCollectionClassName
void useCollectionClassName(String concreteClass)
PUBLIC: Configure the mapping to use an instance of the specified container class to hold the target objects.The container class must implement (directly or indirectly) the
java.util.Collectioninterface.
-
useListClassName
void useListClassName(String concreteClass)
PUBLIC: Configure the mapping to use an instance of the specified container class to hold the target objects.The container class must implement (directly or indirectly) the
java.util.Listinterface.
-
useMapClass
void useMapClass(Class<?> concreteClass, String methodName)
PUBLIC: Configure the mapping to use an instance of the specified container class to hold the target objects. The key used to index a value in theMapis the value returned by a call to the specified zero-argument method. The method must be implemented by the class (or a superclass) of any value to be inserted into theMap.The container class must implement (directly or indirectly) the
java.util.Mapinterface.To facilitate resolving the method, the mapping's referenceClass must set before calling this method.
-
useMapClassName
void useMapClassName(String concreteClass, String methodName)
PUBLIC: Configure the mapping to use an instance of the specified container class to hold the target objects. The key used to index a value in theMapis the value returned by a call to the specified zero-argument method. The method must be implemented by the class (or a superclass) of any value to be inserted into theMap.The container class must implement (directly or indirectly) the
java.util.Mapinterface.To facilitate resolving the method, the mapping's referenceClass must set before calling this method.
-
-