Class ObjectPagingImpl
java.lang.Object
com.evolveum.midpoint.prism.impl.query.ObjectPagingImpl
- All Implemented Interfaces:
ObjectPaging,DebugDumpable,Serializable
- See Also:
-
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOrderingInstruction(ItemPath orderBy, OrderDirection direction) clone()static ObjectPagingstatic ObjectPagingcreatePaging(ItemPath orderBy, OrderDirection direction) static ObjectPagingcreatePaging(Integer offset, Integer maxSize) static ObjectPagingcreatePaging(Integer offset, Integer maxSize, ItemPath orderBy, OrderDirection direction) static ObjectPagingcreatePaging(Integer offset, Integer maxSize, List<ObjectOrdering> orderings) debugDump(int indent) booleanbooleanReturns the paging cookie.List<? extends ObjectOrdering>booleaninthashCode()booleanvoidSets paging cookie.voidsetMaxSize(Integer maxSize) voidvoidsetOrdering(ItemPath orderBy, OrderDirection direction) voidsetOrdering(ObjectOrdering... orderings) voidsetOrdering(Collection<? extends ObjectOrdering> orderings) toString()Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
Method Details
-
createPaging
-
createPaging
public static ObjectPaging createPaging(Integer offset, Integer maxSize, ItemPath orderBy, OrderDirection direction) -
createPaging
public static ObjectPaging createPaging(Integer offset, Integer maxSize, List<ObjectOrdering> orderings) -
createPaging
-
createEmptyPaging
-
getPrimaryOrderingDirection
- Specified by:
getPrimaryOrderingDirectionin interfaceObjectPaging
-
getPrimaryOrderingPath
- Specified by:
getPrimaryOrderingPathin interfaceObjectPaging
-
getPrimaryOrdering
- Specified by:
getPrimaryOrderingin interfaceObjectPaging
-
getOrderingInstructions
- Specified by:
getOrderingInstructionsin interfaceObjectPaging
-
hasOrdering
public boolean hasOrdering()- Specified by:
hasOrderingin interfaceObjectPaging
-
setOrdering
- Specified by:
setOrderingin interfaceObjectPaging
-
addOrderingInstruction
- Specified by:
addOrderingInstructionin interfaceObjectPaging
-
setOrdering
- Specified by:
setOrderingin interfaceObjectPaging
-
setOrdering
- Specified by:
setOrderingin interfaceObjectPaging
-
getOffset
- Specified by:
getOffsetin interfaceObjectPaging
-
setOffset
- Specified by:
setOffsetin interfaceObjectPaging
-
getMaxSize
- Specified by:
getMaxSizein interfaceObjectPaging
-
setMaxSize
- Specified by:
setMaxSizein interfaceObjectPaging
-
hasCookie
public boolean hasCookie()- Specified by:
hasCookiein interfaceObjectPaging
-
getCookie
Returns the paging cookie. The paging cookie is used for optimization of paged searches. The presence of the cookie may allow the data store to correlate queries and associate them with the same server-side context. This may allow the data store to reuse the same pre-computed data. We want this as the sorted and paged searches may be quite expensive. It is expected that the cookie returned from the search will be passed back in the options when the next page of the same search is requested. It is OK to initialize a search without any cookie. If the datastore utilizes a re-usable context it will return a cookie in a search response.- Specified by:
getCookiein interfaceObjectPaging
-
setCookie
Sets paging cookie. The paging cookie is used for optimization of paged searches. The presence of the cookie may allow the data store to correlate queries and associate them with the same server-side context. This may allow the data store to reuse the same pre-computed data. We want this as the sorted and paged searches may be quite expensive. It is expected that the cookie returned from the search will be passed back in the options when the next page of the same search is requested. It is OK to initialize a search without any cookie. If the datastore utilizes a re-usable context it will return a cookie in a search response.- Specified by:
setCookiein interfaceObjectPaging
-
clone
- Specified by:
clonein interfaceObjectPaging- Overrides:
clonein classObject
-
debugDump
- Specified by:
debugDumpin interfaceDebugDumpable
-
toString
-
equals
-
equals
- Specified by:
equalsin interfaceObjectPaging
-
hashCode
public int hashCode()
-