public interface TransformationMapping<ABSTRACT_SESSION extends CoreAbstractSession,ATTRIBUTE_ACCESSOR extends CoreAttributeAccessor,CONTAINER_POLICY extends CoreContainerPolicy,DESCRIPTOR extends CoreDescriptor,FIELD extends CoreField,XML_RECORD extends XMLRecord> extends Mapping<ABSTRACT_SESSION,ATTRIBUTE_ACCESSOR,CONTAINER_POLICY,DESCRIPTOR,FIELD,XML_RECORD>
Modifier and Type | Method and Description |
---|---|
void |
addFieldTransformation(String fieldName,
String methodName)
Add the name of field and the name of the method
that returns the value to be placed in said field
when the object is written to the database.
|
void |
addFieldTransformerClassName(String fieldName,
String className)
INTERNAL:
Add the name of a field and the name of a class which implements
the FieldTransformer interface.
|
List<Object[]> |
getFieldToTransformers()
INTERNAL:
|
void |
setAttributeTransformation(String methodName)
To set the attribute method name.
|
void |
setAttributeTransformerClassName(String className)
INTERNAL:
Set the Attribute Transformer Class Name
|
void |
setIsOptional(boolean isOptional)
Used to specify whether the value of this mapping may be null.
|
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
void addFieldTransformation(String fieldName, String methodName)
org.eclipse.persistence.sessions.Session
.void addFieldTransformerClassName(String fieldName, String className)
List<Object[]> getFieldToTransformers()
void setAttributeTransformation(String methodName)
void setAttributeTransformerClassName(String className)
className
- void setIsOptional(boolean isOptional)
EclipseLink 2.5.2, "build v20140319-9ad6abd" API Reference