|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ws.jaxme.sqls.impl.AbstractColumn org.apache.ws.jaxme.sqls.impl.VirtualColumn
public class 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/interfaces inherited from interface org.apache.ws.jaxme.sqls.Column |
---|
Column.Name, Column.Type |
Nested classes/interfaces inherited from interface org.apache.ws.jaxme.sqls.Column |
---|
Column.Name, Column.Type |
Nested classes/interfaces inherited from interface 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()
Column
Returns the columns table.
getTable
in interface Column
public java.lang.String getQName()
Column
Returns the columns fully qualified name, which is
getTable().getQName() + "." + getName()
.
getQName
in interface Column
public boolean isPrimaryKeyPart()
Column
Returns whether this column is part of the primary key.
isPrimaryKeyPart
in interface Column
public TableReference getTableReference()
ColumnReference
Returns the TableReference
that created the
column reference.
getTableReference
in interface ColumnReference
public Column getColumn()
ColumnReference
Returns the referenced Column
.
getColumn
in interface ColumnReference
public boolean isVirtual()
Column
Returns whether this column is a true column or a virtual column.
isVirtual
in interface Column
public void setAlias(java.lang.String pName)
ColumnReference
Sets the references alias name, if any. Null indicates, that an alias name may be choosen.
setAlias
in interface ColumnReference
public void setAlias(Column.Name pName)
ColumnReference
Sets the references alias name, if any. Null indicates, that an alias name may be choosen.
setAlias
in interface ColumnReference
public Column.Name getAlias()
ColumnReference
Returns the references alias name, if any. Null indicates, that an alias name may be choosen.
getAlias
in interface ColumnReference
public 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 |