Class ListQueryParameterObject
- java.lang.Object
-
- org.flowable.common.engine.impl.db.ListQueryParameterObject
-
- Direct Known Subclasses:
AbstractQuery
public class ListQueryParameterObject extends Object
- Author:
- Tijs Rademakers, Joram Barrez
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classListQueryParameterObject.OrderBystatic classListQueryParameterObject.ResultType
-
Field Summary
Fields Modifier and Type Field Description protected StringdatabaseTypeprotected static ListQueryParameterObject.OrderByDEFAULT_ORDER_BYprotected ListQueryParameterObject.OrderBydefaultOrderByprotected intfirstResultprotected intmaxResultsprotected StringnullHandlingColumnprotected Query.NullHandlingOnOrdernullHandlingOnOrderprotected Collection<ListQueryParameterObject.OrderBy>orderByCollectionprotected QueryPropertyorderPropertyprotected Objectparameterprotected ListQueryParameterObject.ResultTyperesultTypestatic StringSORTORDER_ASCstatic StringSORTORDER_DESC
-
Constructor Summary
Constructors Constructor Description ListQueryParameterObject()ListQueryParameterObject(Object parameter, int firstResult, int maxResults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddOrder(String column, String sortOrder, Query.NullHandlingOnOrder nullHandlingOnOrder)protected StringbuildOrderBy()StringgetDatabaseType()intgetFirstResult()intgetFirstRow()intgetLastRow()intgetMaxResults()StringgetNullHandlingColumn()StringgetOrderBy()protected Collection<ListQueryParameterObject.OrderBy>getOrderByCollectionSafe()StringgetOrderByForWindow()StringgetOuterJoinOrderBy()ObjectgetParameter()booleanhasOrderBy()protected booleanhasOrderByForColumn(String name)booleanisNeedsPaging()protected StringmapOrderByToSql(ListQueryParameterObject.OrderBy by)voidsetDatabaseType(String databaseType)voidsetFirstResult(int firstResult)voidsetMaxResults(int maxResults)voidsetNullHandlingColumn(String nullHandlingColumn)voidsetParameter(Object parameter)
-
-
-
Field Detail
-
DEFAULT_ORDER_BY
protected static final ListQueryParameterObject.OrderBy DEFAULT_ORDER_BY
-
SORTORDER_ASC
public static final String SORTORDER_ASC
- See Also:
- Constant Field Values
-
SORTORDER_DESC
public static final String SORTORDER_DESC
- See Also:
- Constant Field Values
-
firstResult
protected int firstResult
-
maxResults
protected int maxResults
-
parameter
protected Object parameter
-
orderByCollection
protected Collection<ListQueryParameterObject.OrderBy> orderByCollection
-
defaultOrderBy
protected ListQueryParameterObject.OrderBy defaultOrderBy
-
orderProperty
protected QueryProperty orderProperty
-
nullHandlingColumn
protected String nullHandlingColumn
-
nullHandlingOnOrder
protected Query.NullHandlingOnOrder nullHandlingOnOrder
-
resultType
protected ListQueryParameterObject.ResultType resultType
-
databaseType
protected String databaseType
-
-
Constructor Detail
-
ListQueryParameterObject
public ListQueryParameterObject()
-
ListQueryParameterObject
public ListQueryParameterObject(Object parameter, int firstResult, int maxResults)
-
-
Method Detail
-
addOrder
public void addOrder(String column, String sortOrder, Query.NullHandlingOnOrder nullHandlingOnOrder)
-
isNeedsPaging
public boolean isNeedsPaging()
-
getFirstResult
public int getFirstResult()
-
getFirstRow
public int getFirstRow()
-
getLastRow
public int getLastRow()
-
getMaxResults
public int getMaxResults()
-
getParameter
public Object getParameter()
-
setFirstResult
public void setFirstResult(int firstResult)
-
setMaxResults
public void setMaxResults(int maxResults)
-
setParameter
public void setParameter(Object parameter)
-
hasOrderBy
public boolean hasOrderBy()
-
getOrderByForWindow
public String getOrderByForWindow()
-
buildOrderBy
protected String buildOrderBy()
-
getOrderByCollectionSafe
protected Collection<ListQueryParameterObject.OrderBy> getOrderByCollectionSafe()
-
getOuterJoinOrderBy
public String getOuterJoinOrderBy()
-
mapOrderByToSql
protected String mapOrderByToSql(ListQueryParameterObject.OrderBy by)
-
getOrderBy
public String getOrderBy()
-
hasOrderByForColumn
protected boolean hasOrderByForColumn(String name)
-
setDatabaseType
public void setDatabaseType(String databaseType)
-
getDatabaseType
public String getDatabaseType()
-
getNullHandlingColumn
public String getNullHandlingColumn()
-
setNullHandlingColumn
public void setNullHandlingColumn(String nullHandlingColumn)
-
-