org.apache.openjpa.jdbc.kernel.exps
Class CurrentDate
java.lang.Object
org.apache.openjpa.jdbc.kernel.exps.AbstractVal
org.apache.openjpa.jdbc.kernel.exps.Const
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
Fields inherited from interface org.apache.openjpa.jdbc.kernel.exps.Val |
ABS_VAL, ARGS_VAL, CONCAT_VAL, FORCE_OUTER, INDEXOF_VAL, JOIN_REL, LENGTH_VAL, LOCATE_VAL, LOWER_VAL, MATH_VAL, NULL_CMP, SQRT_VAL, SUBSTRING_VAL, TRIM_VAL, UPPER_VAL, VAL |
Methods inherited from class org.apache.openjpa.jdbc.kernel.exps.Const |
appendIsEmpty, appendIsNotEmpty, appendIsNotNull, appendIsNull, appendSize, calculateValue, getMetaData, getSQLValue, getValue, groupBy, initialize, isSQLValueNull, length, load, orderBy, select, selectColumns, setMetaData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CurrentDate
public CurrentDate(int type)
getType
public Class getType()
- Description copied from interface:
Value
- Return the expected type for this value, or
Object
if
the type is unknown.
setImplicitType
public void setImplicitType(Class type)
- Description copied from interface:
Value
- Set the implicit type of the value, based on how it is used in the
filter. This method is only called on values who return
Object
from Value.getType()
.
getValue
public Object getValue(Object[] params)
- Description copied from interface:
Constant
- Return the value for this constant given the specified parameters.
appendTo
public void appendTo(Select sel,
ExpContext ctx,
ExpState state,
SQLBuffer sql,
int index)
- Description copied from interface:
Val
- Append the
index
th SQL element to the given buffer.
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.