net.sf.jaxme.sqls.impl
Class SelectTableReferenceImpl

java.lang.Object
  extended bynet.sf.jaxme.sqls.impl.TableReferenceImpl
      extended bynet.sf.jaxme.sqls.impl.SelectTableReferenceImpl
All Implemented Interfaces:
SelectTableReference, TableReference
Direct Known 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 net.sf.jaxme.sqls.impl.TableReferenceImpl
equals, getAlias, getStatement, getTable, hashCode, newColumnReference, newColumnReference, newColumnReference, setAlias, setAlias
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.jaxme.sqls.TableReference
getAlias, getStatement, getTable, newColumnReference, newColumnReference, newColumnReference, setAlias, setAlias
 

Constructor Detail

SelectTableReferenceImpl

public SelectTableReferenceImpl(SelectStatement pStatement,
                                Table pTable)

Creates a new instance of SelectTableReferenceImpl referencing the given SelectStatement.

Method Detail

join

public JoinReference join(Table pTable)
Description copied from interface: SelectTableReference

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)
Description copied from interface: SelectTableReference

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

getSelectStatement

public SelectStatement getSelectStatement()
Description copied from interface: SelectTableReference

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

Specified by:
getSelectStatement in interface SelectTableReference

getRightJoinedTableReference

public JoinReference getRightJoinedTableReference()
Description copied from interface: SelectTableReference

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

Specified by:
getRightJoinedTableReference in interface SelectTableReference