public class TableReferenceImpl extends java.lang.Object implements TableReference
Implementation of a TableReference
.
Modifier and Type | Method and Description |
---|---|
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.
|
public Statement getStatement()
TableReference
Returns the Statement
that created the reference.
getStatement
in interface TableReference
public Table getTable()
TableReference
Returns the referenced Table
.
getTable
in interface TableReference
public Table.Name getAlias()
TableReference
Returns the references alias name. Null indicates that an arbitrary alias name may be choosen.
getAlias
in interface TableReference
public void setAlias(Table.Name pName)
TableReference
Sets the references alias name. Null indicates that an arbitrary alias name may be choosen.
setAlias
in interface TableReference
public void setAlias(java.lang.String pName)
TableReference
Returns the references alias name. Null indicates that an arbitrary alias name may be choosen.
setAlias
in interface TableReference
public ColumnReference newColumnReference(java.lang.String pName)
TableReference
Returns a reference to the column named pName
in the table.
newColumnReference
in interface TableReference
public ColumnReference newColumnReference(Column.Name pName)
TableReference
Returns a reference to the column named pName
in the table.
newColumnReference
in interface TableReference
public ColumnReference newColumnReference(Column pColumn)
TableReference
Returns a reference to the given column in the table.
newColumnReference
in interface TableReference
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object