Overview | Package | Class | Tree | Deprecated | Index | Help
| Oracle TopLink API Reference 10g Release 3 (10.1.3) B13698-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## oracle.toplink.mappings.transformers
Class ConstantTransformer

`java.lang.Object
oracle.toplink.mappings.transformers.FieldTransformerAdapter
oracle.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.

Overview | Package | Class | Tree | Deprecated | Index | Help
| Copyright © 1998, 2006, Oracle. All Rights Reserved.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD