org.apache.ws.jaxme.sqls
Interface TableReference

All Known Subinterfaces:
JoinReference, SelectTableReference
All 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(Column.Name 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(java.lang.String pName)
          Returns a reference to the column named pName in the table.
 void setAlias(java.lang.String pName)
          Returns the references alias name.
 void setAlias(Table.Name pName)
          Sets the references alias name.
 

Method Detail

getStatement

Statement getStatement()

Returns the Statement that created the reference.


getTable

Table getTable()

Returns the referenced Table.


getAlias

Table.Name getAlias()

Returns the references alias name. Null indicates that an arbitrary alias name may be choosen.


setAlias

void setAlias(Table.Name pName)

Sets the references alias name. Null indicates that an arbitrary alias name may be choosen.


setAlias

void setAlias(java.lang.String pName)

Returns the references alias name. Null indicates that an arbitrary alias name may be choosen.


newColumnReference

ColumnReference newColumnReference(java.lang.String pName)

Returns a reference to the column named pName in the table.


newColumnReference

ColumnReference newColumnReference(Column.Name pName)

Returns a reference to the column named pName in the table.


newColumnReference

ColumnReference newColumnReference(Column pColumn)

Returns a reference to the given column in the table.