org.apache.ws.jaxme.sqls

Interface SelectTableReference

public interface SelectTableReference extends TableReference

A TableReference being used in a SELECT statement. You may cast the result of {@link org.apache.ws.jaxme.sqls.SelectStatement#getTableReference} to an instance of SelectTableReference.

Author: Jochen Wiedmann

Method Summary
JoinReferencegetRightJoinedTableReference()

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

SelectStatementgetSelectStatement()

Returns the {@link SelectStatement} that created the reference.

JoinReferencejoin(Table pTable)

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

JoinReferenceleftOuterJoin(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.

Method Detail

getRightJoinedTableReference

public JoinReference getRightJoinedTableReference()

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

getSelectStatement

public SelectStatement getSelectStatement()

Returns the {@link SelectStatement} that created the reference. Shortcut for (SelectStatement) getStatement().

join

public 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

public 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.