org.apache.ws.jaxme.sqls

Interface TableReference

public interface TableReference

A table reference is used in the Statement.

Author: Jochen Wiedmann

Method Summary
Table.NamegetAlias()

Returns the references alias name.

StatementgetStatement()

Returns the Statement that created the reference.

TablegetTable()

Returns the referenced Table.

ColumnReferencenewColumnReference(String pName)

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

ColumnReferencenewColumnReference(Column.Name pName)

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

ColumnReferencenewColumnReference(Column pColumn)

Returns a reference to the given column in the table.

voidsetAlias(Table.Name pName)

Sets the references alias name.

voidsetAlias(String pName)

Returns the references alias name.

Method Detail

getAlias

public Table.Name getAlias()

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

getStatement

public Statement getStatement()

Returns the Statement that created the reference.

getTable

public Table getTable()

Returns the referenced Table.

newColumnReference

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

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(String pName)

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