|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ws.jaxme.sqls.impl.AbstractColumn
org.apache.ws.jaxme.sqls.impl.VirtualColumn
A virtual column is a named item that can be added to the result set. For example:
SELECT name, vorname, MAX(a) AS max FROM ...
The example uses a virtual column max. The value of max is calculated from other values.
| Nested Class Summary |
| Nested classes inherited from class org.apache.ws.jaxme.sqls.Column |
Column.Name, Column.Type |
| Constructor Summary | |
VirtualColumn(Column.Name pName,
Column.Type pType)
|
|
VirtualColumn(java.lang.String pName,
Column.Type pType)
|
|
| Method Summary | |
Column.Name |
getAlias()
Returns the references alias name, if any. |
Column |
getColumn()
Returns the referenced Column. |
java.lang.String |
getQName()
Returns the columns fully qualified name, which is getTable().getQName() + "." + getName(). |
Table |
getTable()
Returns the columns table. |
TableReference |
getTableReference()
Returns the TableReference that created the
column reference. |
java.lang.Object |
getValue()
|
boolean |
isPrimaryKeyPart()
Returns whether this column is part of the primary key. |
boolean |
isVirtual()
Returns whether this column is a true column or a virtual column. |
void |
setAlias(Column.Name pName)
Sets the references alias name, if any. |
void |
setAlias(java.lang.String pName)
Sets the references alias name, if any. |
void |
setValue(Function pValue)
|
void |
setValue(SelectStatement pValue)
|
void |
setValue(java.lang.String pValue)
|
| Methods inherited from class org.apache.ws.jaxme.sqls.impl.AbstractColumn |
equals, getCustomData, getLength, getName, getType, hasFixedLength, hashCode, isBinaryColumn, isNullable, isStringColumn, setCustomData, setLength, setLength, setNullable |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public VirtualColumn(Column.Name pName,
Column.Type pType)
public VirtualColumn(java.lang.String pName,
Column.Type pType)
| Method Detail |
public Table getTable()
ColumnReturns the columns table.
getTable in interface Columnpublic java.lang.String getQName()
ColumnReturns the columns fully qualified name, which is
getTable().getQName() + "." + getName().
getQName in interface Columnpublic boolean isPrimaryKeyPart()
ColumnReturns whether this column is part of the primary key.
isPrimaryKeyPart in interface Columnpublic TableReference getTableReference()
ColumnReferenceReturns the TableReference that created the
column reference.
getTableReference in interface ColumnReferencepublic Column getColumn()
ColumnReferenceReturns the referenced Column.
getColumn in interface ColumnReferencepublic boolean isVirtual()
ColumnReturns whether this column is a true column or a virtual column.
isVirtual in interface Columnpublic void setAlias(java.lang.String pName)
ColumnReferenceSets the references alias name, if any. Null indicates, that an alias name may be choosen.
setAlias in interface ColumnReferencepublic void setAlias(Column.Name pName)
ColumnReferenceSets the references alias name, if any. Null indicates, that an alias name may be choosen.
setAlias in interface ColumnReferencepublic Column.Name getAlias()
ColumnReferenceReturns the references alias name, if any. Null indicates, that an alias name may be choosen.
getAlias in interface ColumnReferencepublic void setValue(java.lang.String pValue)
public void setValue(SelectStatement pValue)
public void setValue(Function pValue)
public java.lang.Object getValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||