Class EnumLiteral

  extended by
      extended by
          extended by
All Implemented Interfaces:

public class EnumLiteral
extends EnumExpression
implements SQLLiteral

Representation of an Enum literal.

Nested Class Summary
Nested classes/interfaces inherited from class
Field Summary
Fields inherited from class
isParameter, LOCALISER, lowestOperator, mapping, st, stmt, subExprs, table
Constructor Summary
EnumLiteral(SQLStatement stmt, mapping, java.lang.Object value, boolean parameter)
          Constructor for an Enum literal with a value.
Method Summary
 java.lang.Object getValue()
          Accessor to the literal value
 boolean isParameter()
 void setNotParameter()
          Method to set this literal as not being a parameter.
Methods inherited from class
add, div, eq, ge, getDelegate, gt, invoke, le, lt, mod, mul, ne, sub, toSQLText
Methods inherited from class
and, cast, checkForAndCorrectParameterComparison, com, encloseInParentheses, eor, getJavaTypeMapping, getNumberOfSubExpressions, getSQLStatement, getSQLTable, in, ior, is, neg, not
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public EnumLiteral(SQLStatement stmt,
                   java.lang.Object value,
                   boolean parameter)
Constructor for an Enum literal with a value.

stmt - the SQL statement
mapping - the mapping
value - the value
Method Detail


public java.lang.Object getValue()
Description copied from interface: SQLLiteral
Accessor to the literal value

Specified by:
getValue in interface SQLLiteral
the value of the literal


public boolean isParameter()
isParameter in class SQLExpression


public void setNotParameter()
Description copied from interface: SQLLiteral
Method to set this literal as not being a parameter. If the literal if not currently a parameter then does nothing. Updates any underlying SQL to have the value.

Specified by:
setNotParameter in interface SQLLiteral

Copyright © 2009. All Rights Reserved.