public class QueryInfo
extends java.lang.Object
QueryInfo
class contains information user provides in a query form specified by the Oracle Team Productivity Center (OTPC) client. Connector writer converts the data in this structure to the format needed for the connector code to perform query against backend repository.Modifier and Type | Class and Description |
---|---|
static class |
QueryInfo.Conjunction
supported enumeration types for the query's conjuction.
|
Constructor and Description |
---|
QueryInfo()
Sole constructor.
|
QueryInfo(LovDef lovOwner) |
Modifier and Type | Method and Description |
---|---|
QueryInfo.Conjunction |
getConjunction()
Retrieves the conjunction used in the query.
|
java.lang.Object |
getContextData() |
java.util.List<Criterion> |
getCriteria()
Retrieves criteria used in the query.
|
java.lang.String |
getDataSource()
Retrieves the name of the data source for the query.
|
java.util.List<java.lang.String> |
getDisplayNames()
Gets list of column or field names to display in the query result's table.
|
LovDef |
getLovDef() |
java.lang.String |
getSelectList()
Retrieves the list of field names (comma delimited) used in the query.
|
SortInfo |
getSortInfo()
Retrieves query sort information.
|
java.lang.String |
getWhereOptions()
Retrieves the WHERE clause.
|
void |
setConjunction(QueryInfo.Conjunction conjunction)
Sets the conjunction to use in the query.
|
void |
setContextData(java.lang.Object cData) |
void |
setDataSource(java.lang.String dataSource)
Sets the data source of the query.
|
void |
setSelectList(java.lang.String selectList)
Sets list of the fields to query.
|
void |
setSortInfo(SortInfo sortinfo)
Sets the sort order to be used in the query result set.
|
void |
setWhereOptions(java.lang.String clause)
Sets the WHERE clause or condition of the query.
|
public QueryInfo()
public QueryInfo(LovDef lovOwner)
lovOwner
- The LovDef object owns this QueryInfo Object, If a workitem field is rendered as a LOV, then it will have a LovDef object, QueryInfo object is based on this LOVDef object for the field data look up.public java.lang.String getDataSource()
public LovDef getLovDef()
public void setDataSource(java.lang.String dataSource)
dataSource
- the name of the data sourcepublic void setSelectList(java.lang.String selectList)
selectList
- list of field names (comma delimited)public java.lang.String getSelectList()
public void setWhereOptions(java.lang.String clause)
clause
- the where clause option for the querypublic java.lang.String getWhereOptions()
public void setConjunction(QueryInfo.Conjunction conjunction)
conjunction
- the query conjunctionpublic QueryInfo.Conjunction getConjunction()
public java.util.List<java.lang.String> getDisplayNames()
public java.util.List<Criterion> getCriteria()
public SortInfo getSortInfo()
public void setSortInfo(SortInfo sortinfo)
sortinfo
- sort order to usepublic void setContextData(java.lang.Object cData)
cData
- The object that will be passed along with the queryInfo object, like a WorkItem Object, a Query Object, etc.public java.lang.Object getContextData()