Class ObjectPagingImpl
- java.lang.Object
-
- com.evolveum.midpoint.prism.impl.query.ObjectPagingImpl
-
- All Implemented Interfaces:
ObjectPaging,DebugDumpable,Serializable
public final class ObjectPagingImpl extends Object implements ObjectPaging
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Method Summary
-
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 Detail
-
createPaging
public static ObjectPaging createPaging(Integer offset, Integer maxSize)
-
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
public static ObjectPaging createPaging(ItemPath orderBy, OrderDirection direction)
-
createEmptyPaging
public static ObjectPaging createEmptyPaging()
-
getPrimaryOrderingDirection
public OrderDirection getPrimaryOrderingDirection()
- Specified by:
getPrimaryOrderingDirectionin interfaceObjectPaging
-
getPrimaryOrderingPath
public ItemPath getPrimaryOrderingPath()
- Specified by:
getPrimaryOrderingPathin interfaceObjectPaging
-
getPrimaryOrdering
public ObjectOrdering getPrimaryOrdering()
- Specified by:
getPrimaryOrderingin interfaceObjectPaging
-
getOrderingInstructions
public List<? extends ObjectOrdering> getOrderingInstructions()
- Specified by:
getOrderingInstructionsin interfaceObjectPaging
-
hasOrdering
public boolean hasOrdering()
- Specified by:
hasOrderingin interfaceObjectPaging
-
setOrdering
public void setOrdering(ItemPath orderBy, OrderDirection direction)
- Specified by:
setOrderingin interfaceObjectPaging
-
addOrderingInstruction
public void addOrderingInstruction(ItemPath orderBy, OrderDirection direction)
- Specified by:
addOrderingInstructionin interfaceObjectPaging
-
setOrdering
public void setOrdering(ObjectOrdering... orderings)
- Specified by:
setOrderingin interfaceObjectPaging
-
setOrdering
public void setOrdering(Collection<? extends ObjectOrdering> orderings)
- Specified by:
setOrderingin interfaceObjectPaging
-
getOffset
public Integer getOffset()
- Specified by:
getOffsetin interfaceObjectPaging
-
setOffset
public void setOffset(Integer offset)
- Specified by:
setOffsetin interfaceObjectPaging
-
getMaxSize
public Integer getMaxSize()
- Specified by:
getMaxSizein interfaceObjectPaging
-
setMaxSize
public void setMaxSize(Integer maxSize)
- Specified by:
setMaxSizein interfaceObjectPaging
-
hasCookie
public boolean hasCookie()
- Specified by:
hasCookiein interfaceObjectPaging
-
getCookie
public String 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
public void setCookie(String cookie)
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
public ObjectPaging clone()
- Specified by:
clonein interfaceObjectPaging- Overrides:
clonein classObject
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDumpin interfaceDebugDumpable
-
equals
public boolean equals(Object o, boolean exact)
- Specified by:
equalsin interfaceObjectPaging
-
-