Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

E28847-01


org.eclipse.persistence.sdo.helper.metadata
Class QNameTransformer

java.lang.Object
  extended by org.eclipse.persistence.sdo.helper.metadata.QNameTransformer

All Implemented Interfaces:
java.io.Serializable, AttributeTransformer, FieldTransformer

public class QNameTransformer
extends java.lang.Object
implements AttributeTransformer, FieldTransformer
See Also:
Serialized Form

Field Summary
private static char COLON
           
private static java.lang.String DEFAULT_NAMESPACE_PREFIX
           
private static char HASH
           
static java.lang.String QNAME_NAMESPACE_PREFIX
           
(package private)  AbstractTransformationMapping transformationMapping
           
private  XMLField xPath
           

 

Constructor Summary
QNameTransformer(java.lang.String xPath)
           

 

Method Summary
 java.lang.Object buildAttributeValue(Record record, java.lang.Object object, Session session)
           
 java.lang.Object buildFieldValue(java.lang.Object instance, java.lang.String fieldName, Session session)
           
 void initialize(AbstractTransformationMapping mapping)
          Initialize this transformer.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

COLON

private static final char COLON
See Also:
Constant Field Values

HASH

private static final char HASH
See Also:
Constant Field Values

QNAME_NAMESPACE_PREFIX

public static final java.lang.String QNAME_NAMESPACE_PREFIX
See Also:
Constant Field Values

DEFAULT_NAMESPACE_PREFIX

private static final java.lang.String DEFAULT_NAMESPACE_PREFIX
See Also:
Constant Field Values

transformationMapping

AbstractTransformationMapping transformationMapping

xPath

private XMLField xPath

Constructor Detail

QNameTransformer

public QNameTransformer(java.lang.String xPath)

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 interface AttributeTransformer
Specified by:
initialize in interface FieldTransformer
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:
buildAttributeValue in interface AttributeTransformer
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:
buildFieldValue in interface FieldTransformer
Parameters:
instance - - an instance of the domain class which contains the attribute
fieldName - - 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

Skip navigation links

Copyright © 1998, 2012, Oracle. All Rights Reserved.