org.apache.ws.jaxme.sqls.impl

Class TableReferenceImpl

Implemented Interfaces:
TableReference
Known Direct Subclasses:
SelectTableReferenceImpl

public class TableReferenceImpl
extends java.lang.Object
implements TableReference

Implementation of a TableReference.
Author:
Jochen Wiedmann

Method Summary

boolean
equals(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(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

equals

public boolean equals(Object o)

getAlias

public Table.Name getAlias()
Returns the references alias name. Null indicates that an arbitrary alias name may be choosen.
Specified by:
getAlias in interface TableReference

getStatement

public Statement getStatement()
Returns the Statement that created the reference.
Specified by:
getStatement in interface TableReference

getTable

public Table getTable()
Returns the referenced Table.
Specified by:
getTable in interface TableReference

hashCode

public int hashCode()

newColumnReference

public ColumnReference newColumnReference(String pName)
Returns a reference to the column named pName in the table.
Specified by:
newColumnReference in interface TableReference

newColumnReference

public ColumnReference newColumnReference(Column pColumn)
Returns a reference to the given column in the table.
Specified by:
newColumnReference in interface TableReference

newColumnReference

public ColumnReference newColumnReference(Column.Name pName)
Returns a reference to the column named pName in the table.
Specified by:
newColumnReference in interface TableReference

setAlias

public void setAlias(String pName)
Returns the references alias name. Null indicates that an arbitrary alias name may be choosen.
Specified by:
setAlias in interface TableReference

setAlias

public void setAlias(Table.Name pName)
Sets the references alias name. Null indicates that an arbitrary alias name may be choosen.
Specified by:
setAlias in interface TableReference