net.sf.jaxme.sqls
Interface TableReference

All Known Subinterfaces:
JoinReference, SelectTableReference
All Known Implementing Classes:
JoinReferenceImpl, 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

public Statement getStatement()

Returns the Statement that created the reference.


getTable

public Table getTable()

Returns the referenced Table.


getAlias

public Table.Name getAlias()

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.


setAlias

public void setAlias(java.lang.String pName)

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


newColumnReference

public ColumnReference newColumnReference(java.lang.String pName)

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


newColumnReference

public ColumnReference newColumnReference(Column.Name 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.