public abstract class ComplexQueryBase extends Object implements Query
| Constructor and Description |
|---|
ComplexQueryBase() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addFromFieldOperand(int fieldId,
IQuerySource source)
Adds a new item of type FieldOperand to the list of the
FieldOperandInfo operands that the dynamic query selects. |
boolean |
addFromFunctionOperand(int funcCode,
List<ArithmeticOrRelationalOperand> params)
Adds a new item of type function to the list of the
FunctionOperandInfo operands that the dynamic query selects. |
boolean |
addFromOperand(ArithmeticOrRelationalOperand operand)
Adds a new item to the list of the
ArithmeticOrRelationalOperand
operands that the dynamic query selects. |
boolean |
addFromSource(IQuerySource source)
Adds a new item to the list of the
IQuerySource sources that the dynamic query selects from. |
boolean |
addGroupBy(ArithmeticOrRelationalOperand groupBy)
Adds new
having object to the list |
boolean |
addHaving(QualifierInfo having)
Adds new
having object to the list |
Object |
clone()
Clone implementation that returns an Object with data cloned from self.
|
List<IQuerySource> |
getFromSources()
Returns a list of the
IQuerySource sources that the dynamic query selects from. |
List<ArithmeticOrRelationalOperand> |
getGroupBy()
Returns a list of
QueryFormField objects |
QualifierInfo |
getHaving()
Returns a list of
having objects |
List<QualifierInfo> |
getHavingList()
Returns a list of
having objects |
QualifierInfo |
getQualifier()
Returns a qualifier for the dynamic query
|
List<ArithmeticOrRelationalOperand> |
getSelectionList()
Returns a list of the operand the dynamic query selects.
|
boolean |
isDistinct()
Should use distinct clause for the select
|
void |
setDistinct(boolean distinct)
Use distinct clause for the query
|
void |
setFromSources(List<IQuerySource> sources)
Sets the list of the
IQuerySource sources that the dynamic query selects from. |
void |
setGroupBy(List<ArithmeticOrRelationalOperand> groupBy)
Sets a list of
QueryFormField objects |
void |
setHaving(List<QualifierInfo> having)
Sets a list of
QualifierInfo objects |
void |
setQualifier(QualifierInfo qualifier)
Sets the qualifier for the dynamic query
|
void |
setSelectionList(List<ArithmeticOrRelationalOperand> selectionList)
Sets the list of the operand that the dynamic query selects.
|
String |
toString()
Returns a string description of the object.
|
public boolean isDistinct()
public void setDistinct(boolean distinct)
distinct - public List<IQuerySource> getFromSources()
IQuerySource sources that the dynamic query selects from.public void setFromSources(List<IQuerySource> sources)
IQuerySource sources that the dynamic query selects from.public List<ArithmeticOrRelationalOperand> getSelectionList()
public void setSelectionList(List<ArithmeticOrRelationalOperand> selectionList)
public QualifierInfo getQualifier()
public void setQualifier(QualifierInfo qualifier)
public boolean addFromSource(IQuerySource source)
IQuerySource sources that the dynamic query selects from.public boolean addFromOperand(ArithmeticOrRelationalOperand operand)
ArithmeticOrRelationalOperand
operands that the dynamic query selects. This could be an field, function
on field, or an arithmetic operation that uses fields, values and
functionspublic boolean addFromFunctionOperand(int funcCode,
List<ArithmeticOrRelationalOperand> params)
FunctionOperandInfo operands that the dynamic query selects.public boolean addFromFieldOperand(int fieldId,
IQuerySource source)
FieldOperandInfo operands that the dynamic query selects.public void setHaving(List<QualifierInfo> having)
QualifierInfo objectspublic void setGroupBy(List<ArithmeticOrRelationalOperand> groupBy)
QueryFormField objectspublic List<QualifierInfo> getHavingList()
having objectspublic QualifierInfo getHaving()
having objectspublic List<ArithmeticOrRelationalOperand> getGroupBy()
QueryFormField objectspublic boolean addHaving(QualifierInfo having)
having object to the listpublic boolean addGroupBy(ArithmeticOrRelationalOperand groupBy)
having object to the listpublic Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException? Copyright 2013 BMC Software, Inc.