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 TypeMethodDescriptionvoid
addOrderingInstruction
(ItemPath orderBy, OrderDirection direction) clone()
static ObjectPaging
static ObjectPaging
createPaging
(ItemPath orderBy, OrderDirection direction) static ObjectPaging
createPaging
(Integer offset, Integer maxSize) static ObjectPaging
createPaging
(Integer offset, Integer maxSize, ItemPath orderBy, OrderDirection direction) static ObjectPaging
createPaging
(Integer offset, Integer maxSize, List<ObjectOrdering> orderings) debugDump
(int indent) boolean
boolean
Returns the paging cookie.List<? extends ObjectOrdering>
boolean
int
hashCode()
boolean
void
Sets paging cookie.void
setMaxSize
(Integer maxSize) void
void
setOrdering
(ItemPath orderBy, OrderDirection direction) void
setOrdering
(ObjectOrdering... orderings) void
setOrdering
(Collection<? extends ObjectOrdering> orderings) toString()
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
getPrimaryOrderingDirection
in interfaceObjectPaging
-
getPrimaryOrderingPath
- Specified by:
getPrimaryOrderingPath
in interfaceObjectPaging
-
getPrimaryOrdering
- Specified by:
getPrimaryOrdering
in interfaceObjectPaging
-
getOrderingInstructions
- Specified by:
getOrderingInstructions
in interfaceObjectPaging
-
hasOrdering
public boolean hasOrdering()- Specified by:
hasOrdering
in interfaceObjectPaging
-
setOrdering
- Specified by:
setOrdering
in interfaceObjectPaging
-
addOrderingInstruction
- Specified by:
addOrderingInstruction
in interfaceObjectPaging
-
setOrdering
- Specified by:
setOrdering
in interfaceObjectPaging
-
setOrdering
- Specified by:
setOrdering
in interfaceObjectPaging
-
getOffset
- Specified by:
getOffset
in interfaceObjectPaging
-
setOffset
- Specified by:
setOffset
in interfaceObjectPaging
-
getMaxSize
- Specified by:
getMaxSize
in interfaceObjectPaging
-
setMaxSize
- Specified by:
setMaxSize
in interfaceObjectPaging
-
hasCookie
public boolean hasCookie()- Specified by:
hasCookie
in 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:
getCookie
in 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:
setCookie
in interfaceObjectPaging
-
clone
- Specified by:
clone
in interfaceObjectPaging
- Overrides:
clone
in classObject
-
debugDump
- Specified by:
debugDump
in interfaceDebugDumpable
-
toString
-
equals
-
equals
- Specified by:
equals
in interfaceObjectPaging
-
hashCode
public int hashCode()
-