Class QueryOptions
- java.lang.Object
-
- org.bonitasoft.engine.persistence.QueryOptions
-
- All Implemented Interfaces:
java.io.Serializable
public class QueryOptions extends java.lang.Object implements java.io.Serializable- Author:
- Charles Souillard, Matthieu Chaffotte, Elias Ricken de Medeiros
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static QueryOptionsALL_RESULTSstatic QueryOptionsONE_RESULTstatic intUNLIMITED_NUMBER_OF_RESULTS
-
Constructor Summary
Constructors Constructor Description QueryOptions(int fromIndex, int numberOfResults)Just for get number of elements on a table, or if the request is already orderedQueryOptions(int fromIndex, int numberOfResults, java.lang.Class<? extends PersistentObject> clazz, java.lang.String fieldName, OrderByType orderByType)QueryOptions(int fromIndex, int numberOfResults, java.util.List<OrderByOption> orderByOptions)QueryOptions(int fromIndex, int numberOfResults, java.util.List<OrderByOption> orderByOptions, java.util.List<FilterOption> filters, SearchFields multipleFilter)QueryOptions(java.lang.Class<? extends PersistentObject> clazz, java.lang.String fieldName, OrderByType orderByType)Deprecated.QueryOptions(java.util.List<FilterOption> filters, SearchFields multipleFilter)Just for get number of elements on a tableQueryOptions(java.util.List<OrderByOption> orderByOptions)Deprecated.QueryOptions(QueryOptions queryOptions)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static QueryOptionscountQueryOptions()Just for get number of elements on a tablebooleanequals(java.lang.Object o)java.util.List<FilterOption>getFilters()intgetFromIndex()SearchFieldsgetMultipleFilter()static QueryOptionsgetNextPage(QueryOptions queryOptions)intgetNumberOfResults()java.util.List<OrderByOption>getOrderByOptions()booleanhasAFilter()inthashCode()booleanhasOrderByOptions()java.lang.StringtoString()
-
-
-
Field Detail
-
UNLIMITED_NUMBER_OF_RESULTS
public static final int UNLIMITED_NUMBER_OF_RESULTS
- See Also:
- Constant Field Values
-
ALL_RESULTS
public static final QueryOptions ALL_RESULTS
-
ONE_RESULT
public static final QueryOptions ONE_RESULT
-
-
Constructor Detail
-
QueryOptions
public QueryOptions(QueryOptions queryOptions)
-
QueryOptions
public QueryOptions(int fromIndex, int numberOfResults)Just for get number of elements on a table, or if the request is already ordered
-
QueryOptions
public QueryOptions(int fromIndex, int numberOfResults, java.util.List<OrderByOption> orderByOptions)
-
QueryOptions
public QueryOptions(int fromIndex, int numberOfResults, java.util.List<OrderByOption> orderByOptions, java.util.List<FilterOption> filters, SearchFields multipleFilter)
-
QueryOptions
public QueryOptions(java.util.List<FilterOption> filters, SearchFields multipleFilter)
Just for get number of elements on a table
-
QueryOptions
public QueryOptions(int fromIndex, int numberOfResults, java.lang.Class<? extends PersistentObject> clazz, java.lang.String fieldName, OrderByType orderByType)
-
QueryOptions
@Deprecated public QueryOptions(java.util.List<OrderByOption> orderByOptions)
Deprecated.
-
QueryOptions
@Deprecated public QueryOptions(java.lang.Class<? extends PersistentObject> clazz, java.lang.String fieldName, OrderByType orderByType)
Deprecated.
-
-
Method Detail
-
getFromIndex
public int getFromIndex()
-
getNumberOfResults
public int getNumberOfResults()
-
getFilters
public java.util.List<FilterOption> getFilters()
-
getMultipleFilter
public SearchFields getMultipleFilter()
-
getOrderByOptions
public java.util.List<OrderByOption> getOrderByOptions()
-
hasOrderByOptions
public boolean hasOrderByOptions()
-
countQueryOptions
public static QueryOptions countQueryOptions()
Just for get number of elements on a table
-
getNextPage
public static QueryOptions getNextPage(QueryOptions queryOptions)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hasAFilter
public boolean hasAFilter()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-