org.apache.openjpa.jdbc.kernel.exps
Class CurrentDate

java.lang.Object
  extended by org.apache.openjpa.jdbc.kernel.exps.AbstractVal
      extended by org.apache.openjpa.jdbc.kernel.exps.Const
          extended by org.apache.openjpa.jdbc.kernel.exps.CurrentDate
All Implemented Interfaces:
Serializable, Val, Constant, Value

 class CurrentDate
extends Const

A literal current DATE/TIME/TIMESTAMP value in a filter.

Author:
Marc Prud'hommeaux

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.openjpa.jdbc.kernel.exps.Const
Const.ConstExpState
 
Field Summary
 
Fields inherited from class org.apache.openjpa.jdbc.kernel.exps.AbstractVal
FALSE, TRUE
 
Fields inherited from interface org.apache.openjpa.jdbc.kernel.exps.Val
ABS_VAL, ARGS_VAL, CMP_EQUAL, COALESCE_VAL, CONCAT_VAL, FORCE_OUTER, GENERALCASE_VAL, INDEXOF_VAL, JOIN_REL, LENGTH_VAL, LOCATE_VAL, LOWER_VAL, MATH_VAL, NULL_CMP, NULLIF_VAL, SIMPLECASE_VAL, SQRT_VAL, SUBSTRING_VAL, TRIM_VAL, UPPER_VAL, VAL, WHENCONDITION_VAL, WHENSCALAR_VAL
 
Constructor Summary
CurrentDate(Class<? extends Date> type)
           
 
Method Summary
 void appendTo(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql, int index)
          Append the indexth SQL element to the given buffer.
 Class<? extends Date> getType()
           
 Object getValue(Object[] params)
           
 Object load(ExpContext ctx, ExpState state, Result res)
          Load the data for this value.
 void setImplicitType(Class type)
           
 
Methods inherited from class org.apache.openjpa.jdbc.kernel.exps.Const
appendIsEmpty, appendIsNotEmpty, appendIsNotNull, appendIsNull, appendSize, calculateValue, getMetaData, getSQLValue, getValue, groupBy, initialize, isSQLValueNull, length, orderBy, select, selectColumns, setMetaData
 
Methods inherited from class org.apache.openjpa.jdbc.kernel.exps.AbstractVal
acceptVisit, appendIndex, appendType, getAlias, getId, getName, getPath, getSelectAs, isAggregate, isVariable, isXPath, setAlias, toDataStoreValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurrentDate

public CurrentDate(Class<? extends Date> type)
Method Detail

getType

public Class<? extends Date> getType()

setImplicitType

public void setImplicitType(Class type)

load

public Object load(ExpContext ctx,
                   ExpState state,
                   Result res)
            throws SQLException
Description copied from interface: Val
Load the data for this value.

Specified by:
load in interface Val
Overrides:
load in class Const
Throws:
SQLException

getValue

public Object getValue(Object[] params)

appendTo

public void appendTo(Select sel,
                     ExpContext ctx,
                     ExpState state,
                     SQLBuffer sql,
                     int index)
Description copied from interface: Val
Append the indexth SQL element to the given buffer.



Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.