protected static class DBCommandExpr.DBCmdColumn extends DBColumn
comment, DBCOLATTR_SINGLEBYTECHARS, name, rowset
attributes, beanPropertyName, DBCOLATTR_TITLE, DBCOLATTR_TYPE, options
CTX_ALIAS, CTX_ALL, CTX_DEFAULT, CTX_FULLNAME, CTX_NAME, CTX_NOPARENTHESES, CTX_VALUE
COLATTR_CURRENCY_CODE, COLATTR_DATETIMEPATTERN, COLATTR_ENUMTYPE, COLATTR_FRACTION_DIGITS, COLATTR_INTEGER_DIGITS, COLATTR_MAXVALUE, COLATTR_MINLENGTH, COLATTR_MINVALUE, COLATTR_NUMBER_GROUPSEP, COLATTR_NUMBER_TYPE, COLATTR_REGEXP, COLATTR_TITLE, COLATTR_TOOLTIP, COLATTR_TYPE
Constructor and Description |
---|
DBCmdColumn(DBRowSet query,
DBColumnExpr expr)
Constructs a new DBCmdColumn object
|
Modifier and Type | Method and Description |
---|---|
void |
addSQL(StringBuilder buf,
long context)
create the SQL-Command set the expression name to the SQL-Command
|
Element |
addXml(Element parent,
long flags)
Adds the expression definition to the xml element.
|
Object |
getAttribute(String name)
Get Attributes of underlying table column.
|
DataType |
getDataType()
Returns the data type of the DBColumnExpr object.
|
Options |
getOptions()
Get Options of underlying table column.
|
double |
getSize()
Not applicable - always returns 0.
|
boolean |
isAutoGenerated()
Not applicable - always returns false
|
boolean |
isReadOnly()
Not applicable - always returns true
|
boolean |
isRequired()
Checks whether the column is mandatory.
|
Object |
validate(Object value)
Not applicable - always return the value.
|
addReferencedColumns, checkValue, decodeEnum, decodeSort, equals, findById, getAlias, getComment, getDatabase, getEnumType, getFullName, getId, getName, getRowSet, getUpdateColumn, hashCode, isAggregate, isEnum, qualified, setComment, to, toString
abs, append, as, as, asc, avg, ceiling, cmp, coalesce, convertTo, convertTo, count, countDistinct, day, decode, decode, decode, decode, decode, decode, decodeEnum, decodeSort, desc, divideBy, floor, format, getBeanPropertyName, getControlType, getExprFromPhrase, getExprFromPhrase, getSourceColumn, getTitle, in, in, in, indexOf, indexOf, indexOf, is, isBetween, isGreaterThan, isLessOrEqual, isMoreOrEqual, isNot, isNotBetween, isSmallerThan, length, like, like, likeLower, likeUpper, lower, max, min, minus, minus, modulo, month, multiplyWith, notIn, notIn, 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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getBeanPropertyName, getControlType, getSourceColumn, getTitle
public DBCmdColumn(DBRowSet query, DBColumnExpr expr)
query
- the row setexpr
- the columnpublic void addSQL(StringBuilder buf, long context)
public DataType getDataType()
getDataType
in interface ColumnExpr
getDataType
in class DBColumnExpr
DataType
public double getSize()
public boolean isReadOnly()
isReadOnly
in interface Column
isReadOnly
in class DBColumn
public boolean isAutoGenerated()
isAutoGenerated
in interface Column
isAutoGenerated
in class DBColumn
public boolean isRequired()
isRequired
in interface Column
isRequired
in class DBColumn
public Object getAttribute(String name)
getAttribute
in interface ColumnExpr
getAttribute
in class DBColumn
name
- the attribute nameDBColumnExpr.getAttribute(String)
public Options getOptions()
getOptions
in interface ColumnExpr
getOptions
in class DBColumn
DBColumnExpr.getOptions()
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.