class CurrentDate extends Const
Const.ConstExpStateFALSE, TRUEABS_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 and Description |
|---|
CurrentDate(Class<? extends Date> type) |
| Modifier and Type | Method and Description |
|---|---|
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()
Return the expected type for this value, or
Object if
the type is unknown. |
Object |
getValue(Object[] params)
Return the value for this constant given the specified parameters.
|
Object |
load(ExpContext ctx,
ExpState state,
Result res)
Load the data for this value.
|
void |
setImplicitType(Class type)
Set the implicit type of the value, based on how it is used in the
filter.
|
appendIsEmpty, appendIsNotEmpty, appendIsNotNull, appendIsNull, appendSize, calculateValue, getMetaData, getSQLValue, getValue, groupBy, initialize, isSQLValueNull, length, orderBy, select, selectColumns, setMetaDataacceptVisit, appendIndex, appendType, getAlias, getId, getName, getPath, getSelectAs, isAggregate, isVariable, isXPath, setAlias, toDataStoreValuepublic Class<? extends Date> getType()
ValueObject if
the type is unknown.public void setImplicitType(Class type)
ValueObject from Value.getType().public Object load(ExpContext ctx, ExpState state, Result res) throws SQLException
Valload in interface Valload in class ConstSQLExceptionpublic Object getValue(Object[] params)
Constantpublic void appendTo(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql, int index)
Valindexth SQL element to the given buffer.Copyright © 2006–2013 Apache Software Foundation. All rights reserved.