T
- public class FuncExpression<T,D> extends java.lang.Object implements SQLExpression<T>
SQLExpression
that applies a SQLFunc
to
and inner SQLExpression
. if the inner expression is null a constant
value 1 is used.Modifier and Type | Method and Description |
---|---|
int |
add(java.lang.StringBuilder sb,
boolean qualify)
Add the expression to a StringBuilder
|
static <T,D> SQLExpression<T> |
apply(AppContext c,
SQLFunc f,
java.lang.Class<T> target,
SQLExpression<D> e) |
java.util.List<PatternArgument> |
getParameters(java.util.List<PatternArgument> list)
Add parameters for this value to a list.
|
SQLFilter |
getRequiredFilter()
Get an SQLFilter required to be added to the filter set.
|
java.lang.Class<T> |
getTarget()
Get the type of the returned object as far as it is known.
|
T |
makeObject(java.sql.ResultSet rs,
int pos)
Extract a result of the expression from a ResultSet into an object of the specified type.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, groupingIsomorphic, hashCode
addGroup, checkContentsCanGroup, getGroupParameters
public static <T,D> SQLExpression<T> apply(AppContext c, SQLFunc f, java.lang.Class<T> target, SQLExpression<D> e)
public int add(java.lang.StringBuilder sb, boolean qualify)
SQLValue
public java.util.List<PatternArgument> getParameters(java.util.List<PatternArgument> list)
SQLValue
getParameters
in interface SQLValue<T>
list
- to modifypublic java.lang.String toString()
toString
in class java.lang.Object
public T makeObject(java.sql.ResultSet rs, int pos) throws DataException, java.sql.SQLException
SQLValue
makeObject
in interface SQLValue<T>
rs
- ResultSetDataException
java.sql.SQLException
public java.lang.Class<T> getTarget()
Targetted
public SQLFilter getRequiredFilter()
SQLValue
getRequiredFilter
in interface SQLValue<T>