|
||||||||||
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.DBQuery.DBQueryColumn
public static class DBQuery.DBQueryColumn
Field Summary | |
---|---|
protected DBColumnExpr |
expr
|
Fields inherited from class org.apache.empire.db.DBColumn |
---|
comment, DBCOLATTR_DATETIMEPATTERN, 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 | |
---|---|
DBQuery.DBQueryColumn(DBQuery query,
DBColumnExpr expr)
Constructs a DBQueryColumn 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. |
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 |
Methods inherited from class org.apache.empire.db.DBColumn |
---|
addReferencedColumns, addSQL, checkValue, equals, findById, getComment, getDatabase, getFullName, getId, getName, getRowSet, getUpdateColumn, hashCode, isAggregate, 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, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.empire.data.ColumnExpr |
---|
getBeanPropertyName, getControlType, getSourceColumn, getTitle |
Field Detail |
---|
protected DBColumnExpr expr
Constructor Detail |
---|
public DBQuery.DBQueryColumn(DBQuery query, DBColumnExpr expr)
query
- the DBQuery objectexpr
- the concrete DBColumnExpr objectMethod Detail |
---|
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 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 Object 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 |