public interface TransformationMapping<ABSTRACT_SESSION extends CoreAbstractSession,ATTRIBUTE_ACCESSOR extends CoreAttributeAccessor,CONTAINER_POLICY extends CoreContainerPolicy,DESCRIPTOR extends CoreDescriptor,FIELD extends CoreField,TRANSFORMATION_RECORD extends TransformationRecord,XML_RECORD extends XMLRecord> extends Mapping<ABSTRACT_SESSION,ATTRIBUTE_ACCESSOR,CONTAINER_POLICY,DESCRIPTOR,FIELD,XML_RECORD>
Modifier and Type | Method and Description |
---|---|
void |
addFieldTransformation(java.lang.String fieldName,
java.lang.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(java.lang.String fieldName,
java.lang.String className)
INTERNAL:
Add the name of a field and the name of a class which implements
the FieldTransformer interface.
|
java.util.List<java.lang.Object[]> |
getFieldToTransformers()
INTERNAL:
|
java.lang.Object |
readFromRowIntoObject(XML_RECORD row,
java.lang.Object object,
ABSTRACT_SESSION executionSession,
boolean isTargetProtected)
INTERNAL:
Extract value from the row and set the attribute to the value in the object.
|
void |
setAttributeTransformation(java.lang.String methodName)
To set the attribute method name.
|
void |
setAttributeTransformerClassName(java.lang.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.
|
void |
writeFromAttributeIntoRow(UnmarshalRecord unmarshalRecord,
Field field,
java.lang.Object value,
boolean isElement)
INTERNAL:
Put value into a record keyed on field.
|
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(java.lang.String fieldName, java.lang.String methodName)
org.eclipse.persistence.sessions.Session
.void addFieldTransformerClassName(java.lang.String fieldName, java.lang.String className)
java.util.List<java.lang.Object[]> getFieldToTransformers()
java.lang.Object readFromRowIntoObject(XML_RECORD row, java.lang.Object object, ABSTRACT_SESSION executionSession, boolean isTargetProtected)
void setAttributeTransformation(java.lang.String methodName)
void setAttributeTransformerClassName(java.lang.String className)
className
- void setIsOptional(boolean isOptional)
void writeFromAttributeIntoRow(UnmarshalRecord unmarshalRecord, Field field, java.lang.Object value, boolean isElement)
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference