org.apache.openjpa.jdbc.kernel.exps
Class DatastoreFunction
java.lang.Object
org.apache.openjpa.jdbc.kernel.exps.AbstractVal
org.apache.openjpa.jdbc.kernel.exps.UnaryOp
org.apache.openjpa.jdbc.kernel.exps.DatastoreFunction
- All Implemented Interfaces:
- Serializable, Val, Value
public class DatastoreFunction
- extends UnaryOp
A unary operator that executes a datastore specific function with zero or more arguments.
- Author:
- Pinaki Poddar
- See Also:
- Serialized Form
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 |
Methods inherited from class org.apache.openjpa.jdbc.kernel.exps.UnaryOp |
acceptVisit, calculateValue, getMetaData, getNoParen, getType, getType, getValue, groupBy, initialize, initializeValue, length, load, orderBy, select, selectColumns, setImplicitType, setMetaData |
Methods inherited from class org.apache.openjpa.jdbc.kernel.exps.AbstractVal |
appendIndex, appendIsEmpty, appendIsNotEmpty, appendIsNotNull, appendIsNull, appendSize, 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 |
DatastoreFunction
public DatastoreFunction(String name,
Class<?> resultType,
Arguments args)
getOperator
protected String getOperator()
- Description copied from class:
UnaryOp
- Return the name of this operator.
- Specified by:
getOperator
in class UnaryOp
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.
- Specified by:
appendTo
in interface Val
- Overrides:
appendTo
in class UnaryOp
Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.