org.apache.ws.jaxme.sqls.impl

Class SelectTableReferenceImpl

Implemented Interfaces:
SelectTableReference, TableReference
Known Direct Subclasses:
JoinReferenceImpl

public class SelectTableReferenceImpl
extends TableReferenceImpl
implements SelectTableReference

Author:
Jochen Wiedmann

Constructor Summary

SelectTableReferenceImpl(SelectStatement pStatement, Table pTable)
Creates a new instance of SelectTableReferenceImpl referencing the given SelectStatement.

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 class org.apache.ws.jaxme.sqls.impl.TableReferenceImpl

equals, getAlias, getStatement, getTable, hashCode, newColumnReference, newColumnReference, newColumnReference, setAlias, setAlias

Constructor Details

SelectTableReferenceImpl

public SelectTableReferenceImpl(SelectStatement pStatement,
                                Table pTable)
Creates a new instance of SelectTableReferenceImpl referencing the given SelectStatement.

Method Details

getRightJoinedTableReference

public JoinReference getRightJoinedTableReference()
Returns the right table of a possible join or null, if there is no such table.
Specified by:
getRightJoinedTableReference in interface SelectTableReference

getSelectStatement

public SelectStatement getSelectStatement()
Returns the SelectStatement that created the reference. Shortcut for (SelectStatement) getStatement().
Specified by:
getSelectStatement in interface SelectTableReference

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.
Specified by:
join in interface SelectTableReference

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.
Specified by:
leftOuterJoin in interface SelectTableReference