public class DBQueryColumn extends DBColumn
Modifier and Type | Field and Description |
---|---|
protected DBColumnExpr |
expr |
attributes, beanPropertyName, DBCOLATTR_TITLE, DBCOLATTR_TYPE, options
CTX_ALIAS, CTX_ALL, CTX_DEFAULT, CTX_FULLNAME, CTX_NAME, CTX_NOPARENTHESIS, CTX_VALUE
COLATTR_CURRENCY_CODE, COLATTR_DATETIMEPATTERN, COLATTR_ENUMTYPE, COLATTR_FRACTION_DIGITS, COLATTR_INTEGER_DIGITS, COLATTR_MAXVALUE, COLATTR_MINLENGTH, COLATTR_MINVALUE, COLATTR_NULLTEXT, COLATTR_NUMBER_GROUPSEP, COLATTR_NUMBER_TYPE, COLATTR_REGEXP, COLATTR_TITLE, COLATTR_TOOLTIP, COLATTR_TYPE
Constructor and Description |
---|
DBQueryColumn(DBQuery query,
String name,
DBColumnExpr expr)
Constructs a DBQueryColumn object set the specified parameters to this object.
|
Modifier and Type | Method and Description |
---|---|
Element |
addXml(Element parent,
long flags)
Appends column meta information to the parent element
|
Object |
getAttribute(String name)
Returns the value of a column attribute.
|
DataType |
getDataType()
Returns the data type of this column expression.
|
Class<Enum<?>> |
getEnumType()
Returns the enum type for this column
|
DBColumnExpr |
getExpr() |
Options |
getOptions()
Returns the list of options for this column
containing all possible field values.
|
double |
getSize()
Returns the size of the column.
|
boolean |
isAutoGenerated()
Returns true if column is a columns value is an automatically generated value
|
boolean |
isReadOnly()
Returns true if the column is read-only.
|
boolean |
isRequired()
Returns true if the column is required.
|
Object |
validateValue(Object value)
Checks if the given value is a valid value for this column
If not, an exception is thrown
|
addReferencedColumns, addSQL, decodeEnum, decodeSort, equals, getAlias, getAttributes, getComment, getDatabase, getEntityType, getFullName, getIdentifier, getJavaType, getName, getRowSet, getUpdateColumn, hashCode, isAggregate, isEnum, qualified, reference, setComment, to, toString
abs, aggregate, append, as, as, asc, avg, ceiling, cmp, coalesce, concat, concat, convertTo, convertTo, count, countDistinct, day, decode, decode, decode, decode, decode, decode, decodeEnum, decodeSort, desc, divideBy, floor, format, function, 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, on, parenthesis, plus, plus, replace, reverse, round, setAttribute, setBeanPropertyName, setControlType, setOptions, setTitle, stringAgg, stringAgg, substring, substring, substring, substring, substring, substring, sum, toChar, toChar, trim, trimLeft, trimRight, trunc, upper, when, year
checkParamNull
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getBeanPropertyName, getControlType, getSourceColumn, getTitle
protected final DBColumnExpr expr
public DBQueryColumn(DBQuery query, String name, DBColumnExpr expr)
query
- the DBQuery objectexpr
- the concrete DBColumnExpr objectpublic DBColumnExpr getExpr()
public DataType getDataType()
DBColumnExpr
getDataType
in interface ColumnExpr
getDataType
in class DBColumnExpr
DataType
public double getSize()
DBColumn
public boolean isReadOnly()
DBColumn
isReadOnly
in interface Column
isReadOnly
in class DBColumn
public boolean isAutoGenerated()
DBColumn
isAutoGenerated
in interface Column
isAutoGenerated
in class DBColumn
public boolean isRequired()
DBColumn
isRequired
in interface Column
isRequired
in class DBColumn
public Class<Enum<?>> getEnumType()
DBColumn
getEnumType
in interface ColumnExpr
getEnumType
in class DBColumn
public Object getAttribute(String name)
DBColumnExpr
getAttribute
in interface ColumnExpr
getAttribute
in class DBColumn
name
- the attribute nameDBColumnExpr.getAttribute(String)
public Options getOptions()
DBColumnExpr
getOptions
in interface ColumnExpr
getOptions
in class DBColumn
DBColumnExpr.getOptions()
public Object validateValue(Object value)
DBColumn
validateValue
in interface Column
validateValue
in class DBColumn
value
- the value to validateCopyright © 2008–2023 Apache Software Foundation. All rights reserved.