Class QNameTransformer
java.lang.Object
org.eclipse.persistence.sdo.helper.metadata.QNameTransformer
- All Implemented Interfaces:
Serializable
,CoreFieldTransformer<Session>
,AttributeTransformer
,FieldTransformer
- See Also:
-
Field Summary
Fields inherited from interface org.eclipse.persistence.core.mappings.transformers.CoreFieldTransformer
BUILD_FIELD_VALUE_METHOD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildAttributeValue
(Record record, Object object, Session session) buildFieldValue
(Object instance, String fieldName, Session session) void
initialize
(AbstractTransformationMapping mapping) Initialize this transformer.
-
Field Details
-
QNAME_NAMESPACE_PREFIX
- See Also:
-
-
Constructor Details
-
QNameTransformer
-
-
Method Details
-
initialize
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 interfaceAttributeTransformer
- Specified by:
initialize
in interfaceFieldTransformer
- Parameters:
mapping
- - The mapping associated with this transformer. Only used if some special information is required.
-
buildAttributeValue
- Specified by:
buildAttributeValue
in interfaceAttributeTransformer
- Parameters:
record
- - The metadata being used to build the object.object
- - The current object that the attribute is being built for.session
- - the current session- Returns:
- - The attribute value to be built into the object containing this mapping.
-
buildFieldValue
- 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
-