public class DBConvertExpr extends DBAbstractFuncExpr
There is no need to explicitly create instances of this class.
Instead use DBColumnExpr.convertTo(DataType)
dataType, expr, isAggregate, updateColumn
attributes, beanPropertyName, DBCOLATTR_TITLE, DBCOLATTR_TYPE, options
CTX_ALIAS, CTX_ALL, CTX_DEFAULT, CTX_FULLNAME, CTX_NAME, CTX_NOPARENTHESES, CTX_VALUE
Constructor and Description |
---|
DBConvertExpr(DBColumnExpr expr,
DataType dataType,
Object format)
Constructs a DBDecodeExpr
|
Modifier and Type | Method and Description |
---|---|
void |
addSQL(StringBuilder sql,
long context)
Used to build the SQL command.
|
protected String |
getFunctionName()
returns the name of the function
|
addReferencedColumns, addSQL, addXml, getDatabase, getDatabaseDriver, getDataType, getName, getUpdateColumn, isAggregate
abs, append, as, as, asc, avg, cmp, coalesce, convertTo, convertTo, count, countDistinct, day, decode, decode, decode, decode, decode, decode, desc, detectDataType, divideBy, getAttribute, getBeanPropertyName, getControlType, getExprFromPhrase, getExprFromPhrase, getOptions, getSourceColumn, getTitle, in, indexOf, indexOf, indexOf, is, isBetween, isGreaterThan, isLessOrEqual, isMoreOrEqual, isNot, isNotBetween, isSmallerThan, length, like, like, likeLower, likeUpper, lower, max, min, minus, minus, month, multiplyWith, notIn, notLike, nvl, parenthesis, plus, plus, replace, reverse, round, setAttribute, setBeanPropertyName, setControlType, setOptions, setTitle, substring, substring, substring, substring, substring, substring, sum, toChar, toChar, trim, trimLeft, trimRight, trunc, upper, when, year
getObjectValue, getValueClass
public DBConvertExpr(DBColumnExpr expr, DataType dataType, Object format)
expr
- the expression to be converteddataType
- the target data typeformat
- optional formatting informationprotected String getFunctionName()
DBAbstractFuncExpr
getFunctionName
in class DBAbstractFuncExpr
public void addSQL(StringBuilder sql, long context)
DBExpr
Copyright © 2008–2015 Apache Software Foundation. All rights reserved.