public interface ContainerMapping
ContainerPolicy
.ContainerPolicy
Modifier and Type | Method and Description |
---|---|
ContainerPolicy |
getContainerPolicy()
PUBLIC:
Return the mapping's container policy.
|
void |
setContainerPolicy(ContainerPolicy containerPolicy)
PUBLIC:
Set the mapping's container policy.
|
void |
useCollectionClass(Class concreteClass)
PUBLIC:
Configure the mapping to use an instance of the specified container class
to hold the target objects.
|
void |
useMapClass(Class concreteClass,
String methodName)
PUBLIC:
Configure the mapping to use an instance of the specified container class
to hold the target objects.
|
ContainerPolicy getContainerPolicy()
void setContainerPolicy(ContainerPolicy containerPolicy)
void useCollectionClass(Class concreteClass)
The container class must implement (directly or indirectly) the
java.util.Collection
interface.
void useMapClass(Class concreteClass, String methodName)
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 © 2021. All rights reserved.