Class QNameTransformer
- java.lang.Object
-
- org.eclipse.persistence.sdo.helper.metadata.QNameTransformer
-
- All Implemented Interfaces:
java.io.Serializable,CoreFieldTransformer<Session>,AttributeTransformer,FieldTransformer
public class QNameTransformer extends java.lang.Object implements AttributeTransformer, FieldTransformer
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringQNAME_NAMESPACE_PREFIX-
Fields inherited from interface org.eclipse.persistence.core.mappings.transformers.CoreFieldTransformer
BUILD_FIELD_VALUE_METHOD
-
-
Constructor Summary
Constructors Constructor Description QNameTransformer(java.lang.String xPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectbuildAttributeValue(Record record, java.lang.Object object, Session session)java.lang.ObjectbuildFieldValue(java.lang.Object instance, java.lang.String fieldName, Session session)voidinitialize(AbstractTransformationMapping mapping)Initialize this transformer.
-
-
-
Field Detail
-
QNAME_NAMESPACE_PREFIX
public static final java.lang.String QNAME_NAMESPACE_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
initialize
public void initialize(AbstractTransformationMapping mapping)
Description copied from interface:FieldTransformerInitialize this transformer. Only required if the user needs some special information from the mapping in order to do the transformation- Specified by:
initializein interfaceAttributeTransformer- Specified by:
initializein interfaceFieldTransformer- Parameters:
mapping- - The mapping associated with this transformer. Only used if some special information is required.
-
buildAttributeValue
public java.lang.Object buildAttributeValue(Record record, java.lang.Object object, Session session)
- Specified by:
buildAttributeValuein 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
public java.lang.Object buildFieldValue(java.lang.Object instance, java.lang.String fieldName, Session session)- Specified by:
buildFieldValuein interfaceCoreFieldTransformer<Session>- Specified by:
buildFieldValuein 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
-
-