Module eclipselink
Class NamespaceURITransformer
- java.lang.Object
-
- org.eclipse.persistence.sdo.helper.metadata.NamespaceURITransformer
-
- All Implemented Interfaces:
Serializable
,CoreFieldTransformer<Session>
,FieldTransformer
public class NamespaceURITransformer extends Object implements FieldTransformer
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.eclipse.persistence.core.mappings.transformers.CoreFieldTransformer
BUILD_FIELD_VALUE_METHOD
-
-
Constructor Summary
Constructors Constructor Description NamespaceURITransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
buildFieldValue(Object instance, String fieldName, Session session)
void
initialize(AbstractTransformationMapping mapping)
Initialize this transformer.
-
-
-
Method Detail
-
initialize
public void initialize(AbstractTransformationMapping mapping)
Description copied from interface:FieldTransformer
Initialize this transformer. Only required if the user needs some special information from the mapping in order to do the transformation- Specified by:
initialize
in interfaceFieldTransformer
- Parameters:
mapping
- - the mapping this transformer is associated with.
-
buildFieldValue
public Object buildFieldValue(Object instance, String fieldName, Session session)
- Specified by:
buildFieldValue
in interfaceCoreFieldTransformer<Session>
- Specified by:
buildFieldValue
in interfaceFieldTransformer
- Parameters:
instance
- - 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- Returns:
- - The value to be written for the field associated with this transformer
-
-