org.castor.cpa.persistence.sql.query
Class Join

java.lang.Object
  extended by org.castor.cpa.persistence.sql.query.Join
All Implemented Interfaces:
QueryObject

public final class Join
extends java.lang.Object
implements QueryObject

Class holding join informations.

Version:
$Revision: 8994 $ $Date: 2011-08-02 01:40:59 +0200 (Di, 02 Aug 2011) $
Author:
Dennis Butterstein, Ralf Joachim

Constructor Summary
Join(JoinOperator oper, Qualifier join)
          Constructor taking two parameters, constructing JoinOperator instance from string and delegating call to the default constructor.
Join(JoinOperator oper, Qualifier join, Condition cond)
          Default constructor copying passed values to class variables.
 
Method Summary
 void accept(Visitor visitor)
          Accept method to handle incoming visitors.
 Condition getCondition()
          Method returning condition currently set.
 Qualifier getJoin()
          Method returning qualifier currently set.
 JoinOperator getOperator()
          Method returning operator currently set.
 java.lang.String toString()
          Method constructing query string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Join

public Join(JoinOperator oper,
            Qualifier join)
Constructor taking two parameters, constructing JoinOperator instance from string and delegating call to the default constructor.

Parameters:
oper - String to be used to get the correct JoinOperator.
join - Qualifier to be used as right side of the join.

Join

public Join(JoinOperator oper,
            Qualifier join,
            Condition cond)
Default constructor copying passed values to class variables.

Parameters:
oper - Passed JoinOperator to be set.
join - Qualifier to be used as right side of the join.
cond - Condition to be used for the join.
Method Detail

getOperator

public JoinOperator getOperator()
Method returning operator currently set.

Returns:
Operator currently set.

getJoin

public Qualifier getJoin()
Method returning qualifier currently set.

Returns:
Qualifier currently set.

getCondition

public Condition getCondition()
Method returning condition currently set.

Returns:
Condition currently set.

toString

public java.lang.String toString()
Method constructing query string.

Overrides:
toString in class java.lang.Object
Returns:
Constructed query string.

accept

public void accept(Visitor visitor)
Accept method to handle incoming visitors.

Specified by:
accept in interface QueryObject
Parameters:
visitor - Visitor to be handled.


Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com