org.datanucleus.store.mapped.expression
Class TemporalExpression

java.lang.Object
  extended by org.datanucleus.store.mapped.expression.ScalarExpression
      extended by org.datanucleus.store.mapped.expression.TemporalExpression

public class TemporalExpression
extends ScalarExpression

Representation of temporal functions in java query languages.

Version:
$Revision: 1.11 $

Nested Class Summary
 
Nested classes/interfaces inherited from class org.datanucleus.store.mapped.expression.ScalarExpression
ScalarExpression.DatastoreFieldExpression, ScalarExpression.DyadicOperator, ScalarExpression.ExpressionList, ScalarExpression.IllegalArgumentTypeException, ScalarExpression.IllegalOperationException, ScalarExpression.MethodInvocationException, ScalarExpression.MonadicOperator, ScalarExpression.Operator
 
Field Summary
 
Fields inherited from class org.datanucleus.store.mapped.expression.ScalarExpression
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
TemporalExpression(QueryExpression qs)
           
 
Method Summary
 ScalarExpression currentDateMethod()
          Returns the current date as an expression.
 ScalarExpression currentTimeMethod()
          Returns the current time as an expression.
 ScalarExpression currentTimestampMethod()
          Returns the current timestamp as an expression.
 
Methods inherited from class org.datanucleus.store.mapped.expression.ScalarExpression
accessField, add, and, as, assertValidTypeForParameterComparison, callMethod, cast, checkForTypeAssignability, com, div, encloseWithInParentheses, eor, eq, equals, getAlias, getConsistentTypeForParameterComparison, getExpressionList, getLogicSetExpression, getMapping, getNonAliasExpression, getQueryExpression, gt, gteq, in, instanceOf, ior, lt, lteq, mod, mul, neg, not, noteq, setParameterName, sub, toStatementText, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TemporalExpression

public TemporalExpression(QueryExpression qs)
Parameters:
qs - The query statement
Method Detail

currentDateMethod

public ScalarExpression currentDateMethod()
Returns the current date as an expression.

Returns:
the result in a ScalarExpression instance

currentTimeMethod

public ScalarExpression currentTimeMethod()
Returns the current time as an expression.

Returns:
the result in a ScalarExpression instance

currentTimestampMethod

public ScalarExpression currentTimestampMethod()
Returns the current timestamp as an expression.

Returns:
the result in a ScalarExpression instance


Copyright © 2010. All Rights Reserved.