net.sf.jaxme.sqls.impl
Class TableReferenceImpl

java.lang.Object
  extended bynet.sf.jaxme.sqls.impl.TableReferenceImpl
All Implemented Interfaces:
TableReference
Direct Known Subclasses:
SelectTableReferenceImpl

public class TableReferenceImpl
extends java.lang.Object
implements TableReference

Implementation of a TableReference.

Author:
Jochen Wiedmann

Method Summary
 boolean equals(java.lang.Object o)
           
 Table.Name getAlias()
          Returns the references alias name.
 Statement getStatement()
          Returns the Statement that created the reference.
 Table getTable()
          Returns the referenced Table.
 int hashCode()
           
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getStatement

public Statement getStatement()
Description copied from interface: TableReference

Returns the Statement that created the reference.

Specified by:
getStatement in interface TableReference

getTable

public Table getTable()
Description copied from interface: TableReference

Returns the referenced Table.

Specified by:
getTable in interface TableReference

getAlias

public Table.Name getAlias()
Description copied from interface: TableReference

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

Specified by:
getAlias in interface TableReference

setAlias

public void setAlias(Table.Name pName)
Description copied from interface: TableReference

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

Specified by:
setAlias in interface TableReference

setAlias

public void setAlias(java.lang.String pName)
Description copied from interface: TableReference

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

Specified by:
setAlias in interface TableReference

newColumnReference

public ColumnReference newColumnReference(java.lang.String pName)
Description copied from interface: TableReference

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

Specified by:
newColumnReference in interface TableReference

newColumnReference

public ColumnReference newColumnReference(Column.Name pName)
Description copied from interface: TableReference

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

Specified by:
newColumnReference in interface TableReference

newColumnReference

public ColumnReference newColumnReference(Column pColumn)
Description copied from interface: TableReference

Returns a reference to the given column in the table.

Specified by:
newColumnReference in interface TableReference

equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()