|
||||||||||
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.DBCommandExpr.DBCmdColumn
protected static class DBCommandExpr.DBCmdColumn
This class wraps a column of sql command in a special command column object.
Field Summary |
---|
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 | |
---|---|
DBCommandExpr.DBCmdColumn(DBRowSet query,
DBColumnExpr expr)
Constructs a new DBCmdColumn object |
Method Summary | |
---|---|
void |
addSQL(StringBuilder buf,
long context)
create the SQL-Command set the expression name to the SQL-Command |
Element |
addXml(Element parent,
long flags)
Adds the expression definition to the xml element. |
Object |
getAttribute(String name)
Get Attributes of underlying table column. |
DataType |
getDataType()
Returns the data type of the DBColumnExpr object. |
Options |
getOptions()
Get Options of underlying table column. |
double |
getSize()
Not applicable - always returns 0. |
boolean |
isAutoGenerated()
Not applicable - always returns false |
boolean |
isReadOnly()
Not applicable - always returns true |
boolean |
isRequired()
Checks whether the column is mandatory. |
void |
validate(Object value)
Not applicable - always returns true. |
Methods inherited from class org.apache.empire.db.DBColumn |
---|
addReferencedColumns, 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 |
Constructor Detail |
---|
public DBCommandExpr.DBCmdColumn(DBRowSet query, DBColumnExpr expr)
query
- the row setexpr
- the columnMethod Detail |
---|
public void addSQL(StringBuilder buf, long context)
addSQL
in class DBColumn
buf
- the SQL-Commandcontext
- the current SQL-Command contextpublic DataType getDataType()
getDataType
in interface ColumnExpr
getDataType
in class DBColumnExpr
DataType
public double getSize()
getSize
in interface Column
getSize
in class DBColumn
public boolean isReadOnly()
isReadOnly
in interface Column
isReadOnly
in class DBColumn
public boolean isAutoGenerated()
isAutoGenerated
in interface Column
isAutoGenerated
in class DBColumn
public boolean isRequired()
isRequired
in interface Column
isRequired
in class DBColumn
public Object getAttribute(String name)
getAttribute
in interface ColumnExpr
getAttribute
in class DBColumn
name
- the attribute name
DBColumnExpr.getAttribute(String)
public Options getOptions()
getOptions
in interface ColumnExpr
getOptions
in class DBColumn
DBColumnExpr.getOptions()
public void validate(Object value)
validate
in interface Column
validate
in class DBColumn
public Element addXml(Element parent, long flags)
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 |