Class SqlTimestampLiteral

  extended by
      extended by
          extended by
All Implemented Interfaces:

public class SqlTimestampLiteral
extends SqlTemporalExpression
implements Literal

Representation of an SQLTimestamp literal in a Query.

$Revision: 1.5 $

Nested Class Summary
Nested classes/interfaces inherited from class
ScalarExpression.DatastoreFieldExpression, ScalarExpression.DyadicOperator, ScalarExpression.ExpressionList, ScalarExpression.IllegalArgumentTypeException, ScalarExpression.IllegalOperationException, ScalarExpression.MethodInvocationException, ScalarExpression.MonadicOperator, ScalarExpression.Operator
Field Summary
Fields inherited from class
aliasIdentifier, checkForTypeAssignability, expressionList, FILTER, LOCALISER, lowestOperator, mapping, OP_ADD, OP_AND, OP_BETWEEN, OP_COM, OP_CONCAT, OP_DIV, OP_EQ, OP_GT, OP_GTEQ, OP_IN, OP_IS, OP_ISNOT, OP_LIKE, OP_LT, OP_LTEQ, OP_MOD, OP_MUL, OP_NEG, OP_NOT, OP_NOTEQ, OP_NOTIN, OP_NOTLIKE, OP_OR, OP_SUB, parameterName, PROJECTION, qs, st, te
Constructor Summary
SqlTimestampLiteral(QueryExpression qs, JavaTypeMapping mapping, java.sql.Timestamp value)
          Creates a java.sql.Timestamp literal
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.
 java.lang.String toString()
Methods inherited from class
eq, getDayMethod, getHourMethod, getMinuteMethod, getMonthMethod, getSecondMethod, getYearMethod, gt, gteq, in, lt, lteq, noteq
Methods inherited from class
accessField, add, and, as, assertValidTypeForParameterComparison, callMethod, cast, checkForTypeAssignability, com, div, encloseWithInParentheses, eor, equals, getAlias, getConsistentTypeForParameterComparison, getExpressionList, getLogicSetExpression, getMapping, getNonAliasExpression, getQueryExpression, instanceOf, ior, mod, mul, neg, not, setParameterName, sub, toStatementText
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public SqlTimestampLiteral(QueryExpression qs,
                           JavaTypeMapping mapping,
                           java.sql.Timestamp value)
Creates a java.sql.Timestamp literal

qs - the QueryExpression
mapping - the mapping
value - the java.sql.Timestamp value
Method Detail


public java.lang.String toString()
toString in class ScalarExpression


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

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


public 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.

Specified by:
setRawValue in interface Literal
val - The raw value


public 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.

Specified by:
getRawValue in interface Literal
The raw value

Copyright © 2010. All Rights Reserved.