org.eclipse.persistence.mappings.transformers
public class MethodBasedAttributeTransformer extends Object implements AttributeTransformer
Constructor and Description |
---|
MethodBasedAttributeTransformer() |
MethodBasedAttributeTransformer(String methodName) |
Modifier and Type | Method and Description |
---|---|
Object |
buildAttributeValue(Record record,
Object object,
Session session)
INTERNAL:
Build the attribute value by invoking the user's transformation method.
|
Method |
getAttributeTransformationMethod() |
String |
getMethodName() |
void |
initialize(AbstractTransformationMapping mapping)
INTERNAL:
Initilizes the transformer.
|
void |
setAttributeTransformationMethod(Method theMethod) |
void |
setMethodName(String name) |
public MethodBasedAttributeTransformer()
public MethodBasedAttributeTransformer(String methodName)
public String getMethodName()
public void setMethodName(String name)
public Method getAttributeTransformationMethod()
public void setAttributeTransformationMethod(Method theMethod)
public void initialize(AbstractTransformationMapping mapping)
initialize
in interface AttributeTransformer
mapping
- - The mapping associated with this transformer. Only used if some special information is required.public Object buildAttributeValue(Record record, Object object, Session session)
buildAttributeValue
in interface AttributeTransformer
record
- - The metadata being used to build the object.object
- - The current object that the attribute is being built for.session
- - the current session