Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

B32476-03

oracle.toplink.mappings
Interface ContainerMapping

All Known Subinterfaces:
SDKCollectionMapping
All Known Implementing Classes:
AbstractCompositeCollectionMapping, AbstractCompositeDirectCollectionMapping, AggregateCollectionMapping, ArrayMapping, CollectionMapping, DirectCollectionMapping, DirectMapMapping, EISCompositeCollectionMapping, EISCompositeDirectCollectionMapping, EISOneToManyMapping, ManyToManyMapping, NestedTableMapping, ObjectArrayMapping, OneToManyMapping, SDKAggregateCollectionMapping, SDKDirectCollectionMapping, SDKObjectCollectionMapping, XMLAnyCollectionMapping, XMLBinaryDataCollectionMapping, XMLCollectionReferenceMapping, XMLCompositeCollectionMapping, XMLCompositeDirectCollectionMapping, XMLFragmentCollectionMapping

public interface ContainerMapping

Interface used by clients to interact with the assorted mappings that use ContainerPolicy.

Since:
TOPLink/Java 4.0
See Also:
ContainerPolicy

Method Summary
 oracle.toplink.internal.queryframework.ContainerPolicy getContainerPolicy()
          Return the mapping's container policy.
 void setContainerPolicy(oracle.toplink.internal.queryframework.ContainerPolicy containerPolicy)
          Set the mapping's container policy.
 void useCollectionClass(java.lang.Class concreteClass)
          Configure the mapping to use an instance of the specified container class to hold the target objects.
 void useMapClass(java.lang.Class concreteClass, java.lang.String methodName)
          Configure the mapping to use an instance of the specified container class to hold the target objects.
 

Method Detail

getContainerPolicy

oracle.toplink.internal.queryframework.ContainerPolicy getContainerPolicy()
Return the mapping's container policy.


setContainerPolicy

void setContainerPolicy(oracle.toplink.internal.queryframework.ContainerPolicy containerPolicy)
Set the mapping's container policy.


useCollectionClass

void useCollectionClass(java.lang.Class concreteClass)
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.Collection interface.


useMapClass

void useMapClass(java.lang.Class concreteClass,
                 java.lang.String methodName)
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 the Map is 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 the Map.

The container class must implement (directly or indirectly) the java.util.Map interface.

To facilitate resolving the method, the mapping's referenceClass must set before calling this method.


Copyright © 1998, 2010, Oracle. All Rights Reserved.