net.sf.jaxme.sqls.impl
Class JoinReferenceImpl

java.lang.Object
  extended bynet.sf.jaxme.sqls.impl.TableReferenceImpl
      extended bynet.sf.jaxme.sqls.impl.SelectTableReferenceImpl
          extended bynet.sf.jaxme.sqls.impl.JoinReferenceImpl
All Implemented Interfaces:
JoinReference, SelectTableReference, TableReference

public class JoinReferenceImpl
extends SelectTableReferenceImpl
implements JoinReference

Author:
Jochen Wiedmann

Constructor Summary
protected JoinReferenceImpl(SelectTableReference pLeftTableReference, Table pRightTable, boolean pOuterJoin)
          Creates a new instance of JoinReferenceImpl.
 
Method Summary
 SelectTableReference getLeftJoinedTableReference()
          If this is a left join or a left outer join: Returns the joins left table.
 CombinedConstraint getOn()
          Returns the references ON condition, if any.
 boolean isJoin()
          Returns whether this is a left join, as created by SelectTableReference.join(Table).
 boolean isLeftOuterJoin()
          Returns whether this is a left outer join, as created by SelectTableReference.leftOuterJoin(Table).
 
Methods inherited from class net.sf.jaxme.sqls.impl.SelectTableReferenceImpl
getRightJoinedTableReference, getSelectStatement, join, leftOuterJoin
 
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.SelectTableReference
getRightJoinedTableReference, getSelectStatement, join, leftOuterJoin
 
Methods inherited from interface net.sf.jaxme.sqls.TableReference
getAlias, getStatement, getTable, newColumnReference, newColumnReference, newColumnReference, setAlias, setAlias
 

Constructor Detail

JoinReferenceImpl

protected JoinReferenceImpl(SelectTableReference pLeftTableReference,
                            Table pRightTable,
                            boolean pOuterJoin)

Creates a new instance of JoinReferenceImpl.

Method Detail

isJoin

public boolean isJoin()
Description copied from interface: JoinReference

Returns whether this is a left join, as created by SelectTableReference.join(Table).

Specified by:
isJoin in interface JoinReference

isLeftOuterJoin

public boolean isLeftOuterJoin()
Description copied from interface: JoinReference

Returns whether this is a left outer join, as created by SelectTableReference.leftOuterJoin(Table).

Specified by:
isLeftOuterJoin in interface JoinReference

getLeftJoinedTableReference

public SelectTableReference getLeftJoinedTableReference()
Description copied from interface: JoinReference

If this is a left join or a left outer join: Returns the joins left table.

Specified by:
getLeftJoinedTableReference in interface JoinReference

getOn

public CombinedConstraint getOn()
Description copied from interface: JoinReference

Returns the references ON condition, if any. The method result is a combined constraint with CombinedConstraint.getType() == CombinedConstraint.Type.AND.

Specified by:
getOn in interface JoinReference