Constructor and Description |
---|
DataQuery(IView pView)
Creates a Data Query using the given
IView as the source of data. |
DataQuery(IView pView,
Long pLoadID)
Alias for new DataQuery(new QuerySource(pView, pLoadID))
|
DataQuery(QuerySource pQuerySource)
Creates a Query using the given
IView as the source of data and
binding the given pLoadID. |
Modifier and Type | Method and Description |
---|---|
void |
addGroupByExpression(String pGroupByExpression)
Add a SemQL Expression to the list of Group By Expressions
|
void |
addOrderByCriteria(String pOrderExpression) |
void |
addOrderByCriteria(String pOrderExpression,
boolean pDescending) |
void |
addSelectExpression(String pSelectExpression)
Add a SemQL Expression to the list of selected expressions
|
DataQuery |
clone() |
Map<String,Object> |
getBindings() |
List<String> |
getGroupByExpressions()
Returns the list of GroupBy expressions
|
String |
getHavingCondition() |
List<OrderByCriteria> |
getOrderByCriterias() |
PageCriteria |
getPageCriteria() |
QuerySource |
getQuerySource() |
List<String> |
getSelectExpressions()
Returns the list of selected select expressions
|
Boolean |
getUseDefaultOrderBy() |
IView |
getView()
Shortcut to getQuerySource().getView()
|
String |
getWhereCondition() |
void |
removeBinding(String pBindingName) |
void |
setBinding(String pBindingName,
Object pValue) |
void |
setBindings(Map<String,Object> pBindings) |
void |
setGroupByExpressions(List<String> pGroupByExpressions)
Set the list of Group By Expressions
|
void |
setHavingCondition(String pHavingCondition) |
void |
setOrderByCriterias(List<OrderByCriteria> pOrderByCriterias) |
void |
setPageCriteria(PageCriteria pPageCriteria) |
void |
setSelectExpressions(List<String> pSelectExpressions)
Set the list of SemQL Expression
|
void |
setUseDefaultOrderBy(Boolean pUseDefaultOrderBy)
Defines whether to use the view
IView.getDefaultOrderBy() as
additional order by. |
void |
setWhereCondition(String pWhereCondition) |
String |
toString() |
public DataQuery(IView pView)
IView
as the source of data.pView
- public DataQuery(IView pView, Long pLoadID)
pView
- pLoadID
- public DataQuery(QuerySource pQuerySource)
IView
as the source of data and
binding the given pLoadID.pView
- pLoadID
- the LoadID required to query
DataAccessModelConstants.SDE_VIEW_TYPE
or
DataAccessModelConstants.SDL_VIEW_TYPE
viewspublic void addSelectExpression(String pSelectExpression)
pSelectExpression
- public void setSelectExpressions(List<String> pSelectExpressions)
pSelectExpressions
- public List<String> getSelectExpressions()
public void addOrderByCriteria(String pOrderExpression)
public void addOrderByCriteria(String pOrderExpression, boolean pDescending)
public void setOrderByCriterias(List<OrderByCriteria> pOrderByCriterias)
public List<OrderByCriteria> getOrderByCriterias()
public void setWhereCondition(String pWhereCondition)
public String getWhereCondition()
public void setHavingCondition(String pHavingCondition)
public String getHavingCondition()
public void addGroupByExpression(String pGroupByExpression)
pGroupByExpression
- public void setGroupByExpressions(List<String> pGroupByExpressions)
pGroupByExpressions
- public List<String> getGroupByExpressions()
public void removeBinding(String pBindingName)
public void setPageCriteria(PageCriteria pPageCriteria)
public PageCriteria getPageCriteria()
public QuerySource getQuerySource()
public IView getView()
public Boolean getUseDefaultOrderBy()
setUseDefaultOrderBy(Boolean)
public void setUseDefaultOrderBy(Boolean pUseDefaultOrderBy)
IView.getDefaultOrderBy()
as
additional order by. This ensures that pagination is consistent but can
make the queries slower.
true
IView.getDefaultOrderBy()
will be
used
false
IView.getDefaultOrderBy()
will
not be used
null
the IDataManager
default behavior
will be used.
null
pUseDefaultOrderBy
- Copyright © 2016. All rights reserved.