net.esper.client.soda
Class OuterJoinQualifier

java.lang.Object
  extended by net.esper.client.soda.OuterJoinQualifier
All Implemented Interfaces:
Serializable

public class OuterJoinQualifier
extends Object
implements Serializable

Qualifies a join by providing the outer join type (full/left/right) and joined-on properties.

See Also:
Serialized Form

Constructor Summary
OuterJoinQualifier(OuterJoinType type, PropertyValueExpression left, PropertyValueExpression right)
          Ctor.
OuterJoinQualifier(OuterJoinType type, PropertyValueExpression left, PropertyValueExpression right, ArrayList<Pair<PropertyValueExpression,PropertyValueExpression>> additionalProperties)
          Ctor.
 
Method Summary
 OuterJoinQualifier add(String propertyLeft, String propertyRight)
          Add additional properties to the on-clause, which are logical-and to existing properties
static OuterJoinQualifier create(String propertyLeft, OuterJoinType type, String propertyRight)
          Creates qualifier.
 List<Pair<PropertyValueExpression,PropertyValueExpression>> getAdditionalProperties()
          Returns optional additional properties in the on-clause of the outer join.
 PropertyValueExpression getLeft()
          Returns property value expression to join on.
 PropertyValueExpression getRight()
          Returns property value expression to join on.
 OuterJoinType getType()
          Returns the type of outer join.
 void setLeft(PropertyValueExpression left)
          Sets the property value expression to join on.
 void setRight(PropertyValueExpression right)
          Sets the property value expression to join on.
 void setType(OuterJoinType type)
          Sets the type of outer join.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OuterJoinQualifier

public OuterJoinQualifier(OuterJoinType type,
                          PropertyValueExpression left,
                          PropertyValueExpression right)
Ctor.

Parameters:
left - is a property providing joined-on values
type - is the type of outer join
right - is a property providing joined-on values

OuterJoinQualifier

public OuterJoinQualifier(OuterJoinType type,
                          PropertyValueExpression left,
                          PropertyValueExpression right,
                          ArrayList<Pair<PropertyValueExpression,PropertyValueExpression>> additionalProperties)
Ctor.

Parameters:
left - is a property providing joined-on values
type - is the type of outer join
right - is a property providing joined-on values
additionalProperties - for any pairs of additional on-clause properties
Method Detail

create

public static OuterJoinQualifier create(String propertyLeft,
                                        OuterJoinType type,
                                        String propertyRight)
Creates qualifier.

Parameters:
propertyLeft - is a property name providing joined-on values
type - is the type of outer join
propertyRight - is a property name providing joined-on values
Returns:
qualifier

getType

public OuterJoinType getType()
Returns the type of outer join.

Returns:
outer join type

setType

public void setType(OuterJoinType type)
Sets the type of outer join.

Parameters:
type - is the outer join type

getLeft

public PropertyValueExpression getLeft()
Returns property value expression to join on.

Returns:
expression providing joined-on values

setLeft

public void setLeft(PropertyValueExpression left)
Sets the property value expression to join on.

Parameters:
left - expression providing joined-on values

getRight

public PropertyValueExpression getRight()
Returns property value expression to join on.

Returns:
expression providing joined-on values

setRight

public void setRight(PropertyValueExpression right)
Sets the property value expression to join on.

Parameters:
right - expression providing joined-on values

add

public OuterJoinQualifier add(String propertyLeft,
                              String propertyRight)
Add additional properties to the on-clause, which are logical-and to existing properties

Parameters:
propertyLeft - property providing joined-on value
propertyRight - property providing joined-on value
Returns:
outer join qualifier

getAdditionalProperties

public List<Pair<PropertyValueExpression,PropertyValueExpression>> getAdditionalProperties()
Returns optional additional properties in the on-clause of the outer join.

Returns:
pairs of properties connected via logical-and in an on-clause

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com