public class Constraint extends Object
| Modifier and Type | Field and Description |
|---|---|
List |
stack
The stack that contains all constraints beside join constraints.
|
| Constructor and Description |
|---|
Constraint() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConstraintFieldSubQuery(String field,
ActionDesc rd)
Adds a subquery constraint on the stack.
|
void |
addField(ConstraintFieldDesc constraintDesc) |
void |
addField(LocalFieldDesc desc)
Adds a field to the constraint stack.
|
void |
addField(LocalFieldDesc desc,
QueryPlan plan)
Adds a field to the constraint stack.
|
void |
addField(String name,
ActionDesc desc)
Adds a field to the constraint stack.
|
void |
addForeignField(String name,
ActionDesc desc) |
void |
addJoinConstraint(ConstraintJoin join)
Adds specified join constraint.
|
void |
addOperation(int operation)
Adds an operation to the constraint stack.
|
void |
addParamIndex(int index,
int enumType,
LocalFieldDesc localField)
Adds the index of a parameter to the stack.
|
void |
addValue(Object value,
LocalFieldDesc localField)
Adds a data value to the constraint stack.
|
List |
getConstraints()
Gets the where clause constraints for this Constraint
|
List |
getOuterJoinConstraints()
Gets the outer join constraints for this Constraint
|
boolean |
mergeConstraint(Constraint foreignConstraint,
int joinOp)
Merges the stack with the specified foreign constraint stack.
|
public List stack
public void addField(String name, ActionDesc desc)
name - The name parameter specifies the name of the field to be
added to the constrant stack.desc - The desc parameter specifies an operation descriptor describing
what is to be done with the field named by the name parameter.public void addField(LocalFieldDesc desc)
desc - The Desc parameter is the field descriptor to be
added to the constrant stack.public void addField(LocalFieldDesc desc, QueryPlan plan)
desc - The Desc parameter is the field descriptor to be
added to the constrant stack.plan - The query plan to which this desc belongspublic void addField(ConstraintFieldDesc constraintDesc)
public void addForeignField(String name, ActionDesc desc)
public void addOperation(int operation)
operation - The operation parameter specifies the operation to be added to
the constrant stack.public void addValue(Object value, LocalFieldDesc localField)
value - The value to be added to the constrant stack.localField - The localField to which this value is bound.
Please note that localField can be null for values involved in
complex expressions in a query.public void addConstraintFieldSubQuery(String field, ActionDesc rd)
field - The field on which subquery constraint is added.rd - Retrieve descriptor corresponding to the subquery.public void addParamIndex(int index,
int enumType,
LocalFieldDesc localField)
index - the parameter index.enumType - the type for this parameter.localField - the localField to which this parameter is bound.public void addJoinConstraint(ConstraintJoin join)
outerJoinStack.join - The join constraint to be added.public boolean mergeConstraint(Constraint foreignConstraint, int joinOp)
foreignConstraint - The constraint to be merged.joinOp - Join operation as defined in ActionDesc.public List getConstraints()
public List getOuterJoinConstraints()
Copyright © 2017. All rights reserved.