org.apache.ws.jaxme.sqls
Interface SelectTableReference

All Superinterfaces:
TableReference
All Known Subinterfaces:
JoinReference
All Known Implementing Classes:
JoinReferenceImpl, OraJoinReferenceImpl, SelectTableReferenceImpl

public interface SelectTableReference
extends TableReference

A TableReference being used in a SELECT statement. You may cast the result of Statement.getTableReference() to an instance of SelectTableReference.

Author:
Jochen Wiedmann

Method Summary
 JoinReference getRightJoinedTableReference()
          Returns the right table of a possible join or null, if there is no such table.
 SelectStatement getSelectStatement()
          Returns the SelectStatement that created the reference.
 JoinReference join(Table pTable)
          Indicates that the referenced table shall be joined with the given table pTable and returns a reference to that table.
 JoinReference leftOuterJoin(Table pTable)
          Indicates that the referenced table shall be joined in a left outer join with the given table pTable and returns a reference to that table.
 
Methods inherited from interface org.apache.ws.jaxme.sqls.TableReference
getAlias, getStatement, getTable, newColumnReference, newColumnReference, newColumnReference, setAlias, setAlias
 

Method Detail

getSelectStatement

SelectStatement getSelectStatement()

Returns the SelectStatement that created the reference. Shortcut for (SelectStatement) getStatement().


join

JoinReference join(Table pTable)

Indicates that the referenced table shall be joined with the given table pTable and returns a reference to that table.


leftOuterJoin

JoinReference leftOuterJoin(Table pTable)

Indicates that the referenced table shall be joined in a left outer join with the given table pTable and returns a reference to that table.


getRightJoinedTableReference

JoinReference getRightJoinedTableReference()

Returns the right table of a possible join or null, if there is no such table.