EclipseLink 1.1.4, build 'v20100812-r7860' API Reference

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

java.lang.Object
  extended by org.eclipse.persistence.sdo.helper.metadata.NamespaceURITransformer
All Implemented Interfaces:
java.io.Serializable, FieldTransformer

public class NamespaceURITransformer
extends java.lang.Object
implements FieldTransformer

See Also:
Serialized Form

Constructor Summary
NamespaceURITransformer()
           
 
Method Summary
 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
 

Constructor Detail

NamespaceURITransformer

public NamespaceURITransformer()
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 FieldTransformer
Parameters:
mapping - - the mapping this transformer is associated with.

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

EclipseLink 1.1.4, build 'v20100812-r7860' API Reference