|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.empire.db.DBObject
org.apache.empire.db.DBExpr
org.apache.empire.db.DBColumnExpr
org.apache.empire.db.DBColumn
org.apache.empire.db.DBView.DBViewColumn
public static class DBView.DBViewColumn
Field Summary | |
---|---|
protected DBColumnExpr |
expr
|
protected DBColumn |
updateColumn
|
Fields inherited from class org.apache.empire.db.DBColumn |
---|
comment, DBCOLATTR_MANDATORY, DBCOLATTR_MAXVALUE, DBCOLATTR_MINVALUE, DBCOLATTR_READONLY, DBCOLATTR_SINGLEBYTECHARS, name, rowset |
Fields inherited from class org.apache.empire.db.DBColumnExpr |
---|
attributes, beanPropertyName, DBCOLATTR_TITLE, DBCOLATTR_TYPE, options |
Fields inherited from class org.apache.empire.db.DBExpr |
---|
CTX_ALIAS, CTX_ALL, CTX_DEFAULT, CTX_FULLNAME, CTX_NAME, CTX_NOPARENTHESES, CTX_VALUE |
Constructor Summary | |
---|---|
protected |
DBView.DBViewColumn(DBView view,
String name,
DBColumnExpr expr)
Constructs a DBViewColumn object set the specified parameters to this object. |
Method Summary | |
---|---|
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. |
void |
validate(Object value)
Checks if the given value is a valid value for this column If not, an exception is thrown |
Methods inherited from class org.apache.empire.db.DBColumn |
---|
addReferencedColumns, addSQL, checkValue, equals, findById, getComment, getDatabase, getFullName, getId, getName, getRowSet, getUpdateColumn, isAggregate, isDateColumn, isLOBColumn, isNumericColumn, isTextColumn, setComment, to, toString |
Methods inherited from class org.apache.empire.db.DBColumnExpr |
---|
abs, append, as, as, asc, avg, cmp, coalesce, convertTo, convertTo, count, countDistinct, day, decode, decode, decode, decode, decode, decode, desc, detectDataType, divideBy, 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, 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 |
Methods inherited from class org.apache.empire.db.DBExpr |
---|
getObjectValue, getValueClass |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.empire.data.ColumnExpr |
---|
getBeanPropertyName, getControlType, getSourceColumn, getTitle |
Field Detail |
---|
protected final DBColumnExpr expr
protected final DBColumn updateColumn
Constructor Detail |
---|
protected DBView.DBViewColumn(DBView view, String name, DBColumnExpr expr)
view
- the DBView objectexpr
- the DBColumnExpr of the source tableMethod Detail |
---|
public DBColumnExpr getSourceColumnExpr()
public DBView getView()
public DataType getDataType()
DBColumnExpr
getDataType
in interface ColumnExpr
getDataType
in class DBColumnExpr
DataType
public double getSize()
DBColumn
getSize
in interface Column
getSize
in class 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 void validate(Object value)
DBColumn
validate
in interface Column
validate
in class DBColumn
public Object getAttribute(String name)
DBColumnExpr
getAttribute
in interface ColumnExpr
getAttribute
in class DBColumn
name
- the attribute name
DBColumnExpr.getAttribute(String)
public Options getOptions()
DBColumnExpr
getOptions
in interface ColumnExpr
getOptions
in class DBColumn
DBColumnExpr.getOptions()
public Element addXml(Element parent, long flags)
DBColumnExpr
addXml
in class DBColumn
parent
- the parent element to which to append the column descriptionflags
- currently not used
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |