|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.mappings.transformers.FieldTransformerAdapter
public class FieldTransformerAdapter
Purpose: Provides an empty implementation of FieldTransformer. Users who do not require the full FieldTransformer API can subclass this class and implement only the methods required.
org.eclipse.persistence.mappings.FieldTransformer
,
Serialized FormConstructor Summary | |
---|---|
FieldTransformerAdapter()
|
Method Summary | |
---|---|
Object |
buildFieldValue(Object object,
String fieldName,
Session session)
|
void |
initialize(AbstractTransformationMapping mapping)
Initialize this transformer. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FieldTransformerAdapter()
Method Detail |
---|
public void initialize(AbstractTransformationMapping mapping)
FieldTransformer
initialize
in interface FieldTransformer
mapping
- - the mapping this transformer is associated with.public Object buildFieldValue(Object object, String fieldName, Session session)
buildFieldValue
in interface FieldTransformer
object
- - an instance of the domain class which contains the attributefieldName
- - the name of the field being transformed. Used if the user wants to use this transformer for multiple fields.session
- - the current session
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |