org.apache.ws.jaxme.sqls

Interface TableReference

Known Subinterfaces:
JoinReference, SelectTableReference
Known Implementing Classes:
JoinReferenceImpl, OraJoinReferenceImpl, SelectTableReferenceImpl, TableReferenceImpl

public interface TableReference

A table reference is used in the Statement.
Author:
Jochen Wiedmann

Method Summary

Table.Name
getAlias()
Returns the references alias name.
Statement
getStatement()
Returns the Statement that created the reference.
Table
getTable()
Returns the referenced Table.
ColumnReference
newColumnReference(String pName)
Returns a reference to the column named pName in the table.
ColumnReference
newColumnReference(Column pColumn)
Returns a reference to the given column in the table.
ColumnReference
newColumnReference(Column.Name pName)
Returns a reference to the column named pName in the table.
void
setAlias(String pName)
Returns the references alias name.
void
setAlias(Table.Name pName)
Sets the references alias name.

Method Details

getAlias

public Table.Name getAlias()
Returns the references alias name. Null indicates that an arbitrary alias name may be choosen.

getStatement

public Statement getStatement()
Returns the Statement that created the reference.

getTable

public Table getTable()
Returns the referenced Table.

newColumnReference

public ColumnReference newColumnReference(String pName)
Returns a reference to the column named pName in the table.

newColumnReference

public ColumnReference newColumnReference(Column pColumn)
Returns a reference to the given column in the table.

newColumnReference

public ColumnReference newColumnReference(Column.Name pName)
Returns a reference to the column named pName in the table.

setAlias

public void setAlias(String pName)
Returns the references alias name. Null indicates that an arbitrary alias name may be choosen.

setAlias

public void setAlias(Table.Name pName)
Sets the references alias name. Null indicates that an arbitrary alias name may be choosen.