public static class DBView.DBViewColumn extends DBColumn
Modifier and Type | Field and Description |
---|---|
protected DBColumnExpr |
expr |
protected DBColumn |
updateColumn |
comment, DBCOLATTR_DATETIMEPATTERN, DBCOLATTR_MAXVALUE, DBCOLATTR_MINVALUE, DBCOLATTR_READONLY, 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_MAXVALUE, COLATTR_MINLENGTH, COLATTR_MINVALUE, COLATTR_NUMBER_GROUPSEP, COLATTR_NUMBER_TYPE, COLATTR_REGEXP, COLATTR_TITLE, COLATTR_TOOLTIP, COLATTR_TYPE
Modifier | Constructor and Description |
---|---|
protected |
DBView.DBViewColumn(DBView view,
String name,
DBColumnExpr expr)
Constructs a DBViewColumn object set the specified parameters to this object.
|
Modifier and Type | Method and Description |
---|---|
Element |
addXml(Element parent,
long flags)
Add a description of this column with relevant metadata
to the supplied parent XML Element.
|
Object |
getAttribute(String name)
Returns the value of a column attribute.
|
DataType |
getDataType()
Returns the data type of this column expression.
|
Options |
getOptions()
Returns the list of options for this column
containing all possible field values.
|
double |
getSize()
Returns the size of the column.
|
DBColumnExpr |
getSourceColumnExpr() |
DBView |
getView() |
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 |
validate(Object value)
Checks if the given value is a valid value for this column
If not, an exception is thrown
|
addReferencedColumns, addSQL, checkValue, equals, findById, getComment, getDatabase, getFullName, getId, getName, getRowSet, getUpdateColumn, hashCode, isAggregate, setComment, to, toString
abs, append, as, as, asc, avg, ceiling, cmp, coalesce, convertTo, convertTo, count, countDistinct, day, decode, decode, decode, decode, decode, decode, desc, detectDataType, divideBy, floor, getBeanPropertyName, getControlType, getExprFromPhrase, getExprFromPhrase, getSourceColumn, getTitle, 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, 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
protected final DBColumnExpr expr
protected final DBColumn updateColumn
protected DBView.DBViewColumn(DBView view, String name, DBColumnExpr expr)
view
- the DBView objectexpr
- the DBColumnExpr of the source tablepublic DBColumnExpr getSourceColumnExpr()
public DBView getView()
public DataType getDataType()
DBColumnExpr
getDataType
in interface ColumnExpr
getDataType
in class DBColumnExpr
DataType
public double getSize()
DBColumn
public boolean isAutoGenerated()
DBColumn
isAutoGenerated
in interface Column
isAutoGenerated
in class DBColumn
public boolean isReadOnly()
DBColumn
isReadOnly
in interface Column
isReadOnly
in class DBColumn
public boolean isRequired()
DBColumn
isRequired
in interface Column
isRequired
in class DBColumn
public Object validate(Object value)
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 Element addXml(Element parent, long flags)
DBColumnExpr
Copyright © 2008–2017 Apache Software Foundation. All rights reserved.