public class StringLength extends StringFunction
FALSE, 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 |
|---|
StringLength(Val val)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendTo(Select sel,
ExpContext ctx,
ExpState state,
SQLBuffer buf,
int index)
Append the
indexth SQL element to the given buffer. |
int |
getId() |
Class |
getType()
Return the expected type for this value, or
Object if
the type is unknown. |
void |
setImplicitType(Class type)
Set the implicit type of the value, based on how it is used in the
filter.
|
acceptVisit, calculateValue, getMetaData, getValue, groupBy, initialize, length, load, orderBy, select, selectColumns, setMetaDataappendIndex, appendIsEmpty, appendIsNotEmpty, appendIsNotNull, appendIsNull, appendSize, appendType, getAlias, getName, getPath, getSelectAs, isAggregate, isVariable, isXPath, setAlias, toDataStoreValuepublic StringLength(Val val)
public Class getType()
ValueObject if
the type is unknown.getType in interface ValuegetType in class StringFunctionpublic void setImplicitType(Class type)
ValueObject from Value.getType().setImplicitType in interface ValuesetImplicitType in class StringFunctionpublic void appendTo(Select sel, ExpContext ctx, ExpState state, SQLBuffer buf, int index)
Valindexth SQL element to the given buffer.public int getId()
getId in interface ValgetId in class AbstractValCopyright © 2006–2015 Apache Software Foundation. All rights reserved.