org.datanucleus.store.mapped.expression
Interface Literal

All Known Implementing Classes:
ArrayLiteral, BinaryLiteral, BooleanBitColumnLiteral, BooleanCharColumnLiteral, BooleanLiteral, ByteLiteral, CharacterLiteral, FloatingPointLiteral, IntegerLiteral, MetaDataStringLiteral, NullLiteral, ObjectLiteral, SqlDateLiteral, SqlTimeLiteral, SqlTimestampLiteral, StringLiteral, UnknownLiteral

public interface Literal

Represents a Literal expression.

Version:
$Revision: 1.4 $

Method Summary
 java.lang.Object getRawValue()
          Accessor for the "raw" value that this literal represents.
 java.lang.Object getValue()
          Accessor to the literal value
 void setRawValue(java.lang.Object val)
          Method to save a "raw" value that this literal represents.
 

Method Detail

getValue

java.lang.Object getValue()
Accessor to the literal value

Returns:
the value of the literal

setRawValue

void setRawValue(java.lang.Object val)
Method to save a "raw" value that this literal represents. This value differs from the literal value since that is of the same type as this literal. e.g An Enum can be represented as String or Integer, so we store the Enum as the "raw"

Parameters:
val - The raw value

getRawValue

java.lang.Object getRawValue()
Accessor for the "raw" value that this literal represents. This value differs from the literal value since that is of the same type as this literal.

Returns:
The raw value


Copyright © 2010. All Rights Reserved.