public abstract class QueryBase extends Object implements Cloneable
QueryBase
class is used to
define the properties of a dynamic query.RegularQuery
,
RecursiveQuery
,
IQuerySource
Constructor and Description |
---|
QueryBase() |
Modifier and Type | Method and Description |
---|---|
boolean |
addFromField(int fieldId,
int funcId,
IQuerySource sourceForm)
Adds a new item to the list of the
QueryFormField fields that the dynamic query selects. |
boolean |
addFromField(int fieldId,
IQuerySource sourceForm)
Adds a new item to the list of the
QueryFormField fields that the dynamic query selects. |
boolean |
addFromField(QueryFormField field)
Adds a new item to the list of the
QueryFormField fields 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(QueryFormField 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<QueryFormField> |
getFromFields()
Returns a list of the
QueryFormField fields that the dynamic query selects. |
List<IQuerySource> |
getFromSources()
Returns a list of the
IQuerySource sources that the dynamic query selects from. |
List<QueryFormField> |
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
|
void |
setFromFields(List<QueryFormField> fromFields)
Sets the list of the
QueryFormField fields that the dynamic query selects. |
void |
setFromSources(List<IQuerySource> sources)
Sets the list of the
IQuerySource sources that the dynamic query selects from. |
void |
setGroupBy(List<QueryFormField> 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
|
String |
toString()
Returns a string description of the object.
|
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<QueryFormField> getFromFields()
QueryFormField
fields that the dynamic query selects.public void setFromFields(List<QueryFormField> fromFields)
QueryFormField
fields that the dynamic query selects.public QualifierInfo getQualifier()
public void setQualifier(QualifierInfo qualifier)
public boolean addFromSource(IQuerySource source)
IQuerySource
sources that the dynamic query selects from.public boolean addFromField(QueryFormField field)
QueryFormField
fields that the dynamic query selects.public boolean addFromField(int fieldId, int funcId, IQuerySource sourceForm)
QueryFormField
fields that the dynamic query selects.public boolean addFromField(int fieldId, IQuerySource sourceForm)
QueryFormField
fields that the dynamic query selects.public void setHaving(List<QualifierInfo> having)
QualifierInfo
objectspublic void setGroupBy(List<QueryFormField> groupBy)
QueryFormField
objectspublic List<QualifierInfo> getHavingList()
having
objectspublic QualifierInfo getHaving()
having
objectspublic List<QueryFormField> getGroupBy()
QueryFormField
objectspublic boolean addHaving(QualifierInfo having)
having
object to the listpublic boolean addGroupBy(QueryFormField groupBy)
having
object to the listpublic Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
? Copyright 2013 BMC Software, Inc.