public class DBQueryColumn extends DBColumn
| Modifier and Type | Field and Description |
|---|---|
protected DBColumnExpr |
expr |
attributes, beanPropertyName, DBCOLATTR_TITLE, DBCOLATTR_TYPE, optionsCTX_ALIAS, CTX_ALL, CTX_DEFAULT, CTX_FULLNAME, CTX_NAME, CTX_NOPARENTHESIS, CTX_VALUECOLATTR_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
|
boolean |
equals(Object other)
Overrides the equals method
|
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, coalesceColumn, decodeEnum, decodeSort, getAlias, getAttributes, getComment, getDatabase, getEntityType, getFullName, getIdentifier, getJavaType, getName, getRowSet, getUpdateColumn, hashCode, isAggregate, isEnum, qualified, reference, setComment, to, toStringabs, 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, prepend, 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, yearcheckParamNullclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetBeanPropertyName, getControlType, getSourceColumn, getTitleprotected final DBColumnExpr expr
public DBQueryColumn(DBQuery query, String name, DBColumnExpr expr)
query - the DBQuery objectname - the column nameexpr - the column expression objectpublic DBColumnExpr getExpr()
public DataType getDataType()
DBColumnExprgetDataType in interface ColumnExprgetDataType in class DBColumnExprDataTypepublic double getSize()
DBColumnpublic boolean isReadOnly()
DBColumnisReadOnly in interface ColumnisReadOnly in class DBColumnpublic boolean isAutoGenerated()
DBColumnisAutoGenerated in interface ColumnisAutoGenerated in class DBColumnpublic boolean isRequired()
DBColumnisRequired in interface ColumnisRequired in class DBColumnpublic Class<Enum<?>> getEnumType()
DBColumngetEnumType in interface ColumnExprgetEnumType in class DBColumnpublic Object getAttribute(String name)
DBColumnExprgetAttribute in interface ColumnExprgetAttribute in class DBColumnname - the attribute nameDBColumnExpr.getAttribute(String)public Options getOptions()
DBColumnExprgetOptions in interface ColumnExprgetOptions in class DBColumnDBColumnExpr.getOptions()public Object validateValue(Object value)
DBColumnvalidateValue in interface ColumnvalidateValue in class DBColumnvalue - the value to validatepublic Element addXml(Element parent, long flags)
DBColumnCopyright © 2008–2023 Apache Software Foundation. All rights reserved.