Skip navigation links

Oracle TopLink Java API Reference
10g Release 3 (10.1.3.1)

B28219-01


oracle.toplink.mappings.transformers
Class ConstantTransformer

java.lang.Object
  extended byoracle.toplink.mappings.transformers.FieldTransformerAdapter
      extended byoracle.toplink.mappings.transformers.ConstantTransformer

All Implemented Interfaces:
FieldTransformer, java.io.Serializable

public class ConstantTransformer
extends FieldTransformerAdapter

Purpose: Allows a field to always be mapped to a constant value. This allows default values to be provided for un-mapped fields.

Since:
10.1.3
See Also:
oracle.toplink.mappings.FieldTransformer, Serialized Form

Constructor Summary
ConstantTransformer()
           
ConstantTransformer(java.lang.Object value)
          PUBLIC: Return a constant transformer for the constant value.

 

Method Summary
 java.lang.Object getValue()
          PUBLIC: Return the value of the constant.
 void setValue(java.lang.Object value)
          PUBLIC: Set the value of the constant.

 

Methods inherited from class oracle.toplink.mappings.transformers.FieldTransformerAdapter
initialize

 

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

 

Constructor Detail

ConstantTransformer

public ConstantTransformer()

ConstantTransformer

public ConstantTransformer(java.lang.Object value)
PUBLIC: Return a constant transformer for the constant value.

Method Detail

getValue

public java.lang.Object getValue()
PUBLIC: Return the value of the constant.

setValue

public void setValue(java.lang.Object value)
PUBLIC: Set the value of the constant.

Skip navigation links

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