public interface DirectCollectionMapping<ABSTRACT_SESSION extends CoreAbstractSession,ATTRIBUTE_ACCESSOR extends CoreAttributeAccessor,CONTAINER_POLICY extends CoreContainerPolicy,CONVERTER extends CoreConverter,DESCRIPTOR extends CoreDescriptor,FIELD extends CoreField,MARSHALLER extends Marshaller,SESSION extends CoreSession,UNMARSHALLER extends Unmarshaller,XML_RECORD extends XMLRecord> extends Mapping<ABSTRACT_SESSION,ATTRIBUTE_ACCESSOR,CONTAINER_POLICY,DESCRIPTOR,FIELD,XML_RECORD>, XMLContainerMapping, XMLConverterMapping<MARSHALLER,SESSION,UNMARSHALLER>
EMPTY_CONTAINER_DEFAULT
Modifier and Type | Method and Description |
---|---|
java.lang.Class |
getAttributeElementClass()
Return the class each element in the object's
collection should be converted to, before the collection
is inserted into the object.
|
AbstractNullPolicy |
getNullPolicy() |
java.lang.Object |
getNullValue() |
CONVERTER |
getValueConverter()
Return the converter on the mapping.
|
boolean |
isCDATA() |
boolean |
isCollapsingStringValues() |
boolean |
isNormalizingStringValues() |
void |
setAttributeElementClass(java.lang.Class attributeElementClass)
Set the class each element in the object's
collection should be converted to, before the collection
is inserted into the object.
|
void |
setCollapsingStringValues(boolean collapse)
Indicates that this mapping should collapse all string values before adding them
to the collection on unmarshal.
|
void |
setField(FIELD field)
Set the field that holds the nested collection.
|
void |
setFieldElementClass(java.lang.Class fieldElementClass)
PUBLIC:
Set the class each element in the database row's
collection should be converted to, before the collection
is inserted into the database.
|
void |
setIsCDATA(boolean CDATA) |
void |
setIsWriteOnly(boolean b) |
void |
setNormalizingStringValues(boolean normalize)
Indicates that this mapping should normalize all string values before adding them
to the collection on unmarshal.
|
void |
setNullPolicy(AbstractNullPolicy nullPolicyFromProperty) |
void |
setNullValue(java.lang.Object nullValue) |
void |
setUsesSingleNode(boolean usesSingleNode)
Sets whether the mapping uses a single node.
|
void |
setValueConverter(CONVERTER valueConverter)
Set the converter on the mapping.
|
void |
setXPath(java.lang.String xpathString)
Set the Mapping field name attribute to the given XPath String
|
void |
useCollectionClassName(java.lang.String concreteContainerClassName) |
boolean |
usesSingleNode()
Checks whether the mapping uses a single node.
|
convertClassNamesToClasses, getAttributeAccessor, getAttributeClassification, getAttributeName, getAttributeValueFromObject, getContainerPolicy, getDescriptor, getField, getReferenceDescriptor, isAbstractCompositeCollectionMapping, isAbstractCompositeDirectCollectionMapping, isAbstractCompositeObjectMapping, isAbstractDirectMapping, isCollectionMapping, isReadOnly, isReferenceMapping, isTransformationMapping, setAttributeAccessor, setAttributeName, setAttributeValueInObject, setGetMethodName, setIsReadOnly, setProperties, setSetMethodName, writeSingleValue
getReuseContainer, getWrapperNullPolicy, isDefaultEmptyContainer, setDefaultEmptyContainer, setReuseContainer, setWrapperNullPolicy
convertDataValueToObjectValue, convertObjectValueToDataValue
java.lang.Class getAttributeElementClass()
AbstractNullPolicy getNullPolicy()
CONVERTER getValueConverter()
boolean isCDATA()
boolean isCollapsingStringValues()
boolean isNormalizingStringValues()
void setAttributeElementClass(java.lang.Class attributeElementClass)
void setCollapsingStringValues(boolean collapse)
normalize
- void setField(FIELD field)
void setFieldElementClass(java.lang.Class fieldElementClass)
void setIsCDATA(boolean CDATA)
void setIsWriteOnly(boolean b)
void setNormalizingStringValues(boolean normalize)
normalize
- void setNullPolicy(AbstractNullPolicy nullPolicyFromProperty)
void setUsesSingleNode(boolean usesSingleNode)
True
- if the items in the collection are in a single node or false if each of the items in the collection is in its own nodevoid setValueConverter(CONVERTER valueConverter)
void setXPath(java.lang.String xpathString)
xpathString
- Stringvoid useCollectionClassName(java.lang.String concreteContainerClassName)
boolean usesSingleNode()
void setNullValue(java.lang.Object nullValue)
java.lang.Object getNullValue()
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference