org.modeshape.graph.query.model
Class Join

java.lang.Object
  extended by org.modeshape.graph.query.model.Source
      extended by org.modeshape.graph.query.model.Join
All Implemented Interfaces:
Serializable, LanguageObject, Visitable

@Immutable
public class Join
extends Source

See Also:
Serialized Form

Constructor Summary
Join(Source left, JoinType type, Source right, JoinCondition joinCondition)
          Create a join of the left and right sources, using the supplied join condition.
 
Method Summary
 void accept(Visitor visitor)
          Accept the supplied visitor, which should call back to the visitor to complete the double-dispatch operation.
 boolean equals(Object obj)
          
 JoinCondition getJoinCondition()
          Get the join condition
 Source getLeft()
          Get the source that represents the left-hand-side of the join.
 Source getRight()
          Get the source that represents the right-hand-side of the join.
 JoinType getType()
          Get the type of join.
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Join

public Join(Source left,
            JoinType type,
            Source right,
            JoinCondition joinCondition)
Create a join of the left and right sources, using the supplied join condition. The outputs of the left and right sources are expected to be equivalent.

Parameters:
left - the left source being joined
type - the type of join
right - the right source being joined
joinCondition - the join condition
Method Detail

getLeft

public final Source getLeft()
Get the source that represents the left-hand-side of the join.

Returns:
the left-side source; never null

getRight

public final Source getRight()
Get the source that represents the right-hand-side of the join.

Returns:
the right-side source; never null

getType

public final JoinType getType()
Get the type of join.

Returns:
the join type; never null

getJoinCondition

public final JoinCondition getJoinCondition()
Get the join condition

Returns:
the join condition; never null

toString

public String toString()

Overrides:
toString in class Object
See Also:
Object.toString()

hashCode

public int hashCode()

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

accept

public void accept(Visitor visitor)
Accept the supplied visitor, which should call back to the visitor to complete the double-dispatch operation.

Parameters:
visitor - the visitor; never null
See Also:
Visitable.accept(org.modeshape.graph.query.model.Visitor)


Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.