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, ItemPath groupBy)
-
createPaging
public static ObjectPaging createPaging(Integer offset, Integer maxSize, ItemPath orderBy, OrderDirection direction, ItemPath groupBy)
-
createPaging
public static ObjectPaging createPaging(Integer offset, Integer maxSize, List<ObjectOrdering> orderings)
-
createPaging
public static ObjectPaging createPaging(Integer offset, Integer maxSize, List<ObjectOrdering> orderings, List<ObjectGrouping> groupings)
-
createPaging
public static ObjectPaging createPaging(ItemPath orderBy, OrderDirection direction)
-
createPaging
public static ObjectPaging createPaging(ItemPath orderBy, OrderDirection direction, ItemPath groupBy)
-
createPaging
public static ObjectPaging createPaging(ItemPath groupBy)
-
createEmptyPaging
public static ObjectPaging createEmptyPaging()
-
getPrimaryOrderingDirection
public OrderDirection getPrimaryOrderingDirection()
- Specified by:
getPrimaryOrderingDirection
in interfaceObjectPaging
-
getPrimaryOrderingPath
public ItemPath getPrimaryOrderingPath()
- Specified by:
getPrimaryOrderingPath
in interfaceObjectPaging
-
getPrimaryOrdering
public ObjectOrdering getPrimaryOrdering()
- Specified by:
getPrimaryOrdering
in interfaceObjectPaging
-
getGroupBy
public ItemPath getGroupBy()
- Specified by:
getGroupBy
in interfaceObjectPaging
-
getPrimaryGrouping
public ObjectGrouping getPrimaryGrouping()
- Specified by:
getPrimaryGrouping
in interfaceObjectPaging
-
getOrderingInstructions
public List<? extends ObjectOrdering> getOrderingInstructions()
- Specified by:
getOrderingInstructions
in interfaceObjectPaging
-
getGroupingInstructions
public List<? extends ObjectGrouping> getGroupingInstructions()
- Specified by:
getGroupingInstructions
in interfaceObjectPaging
-
hasOrdering
public boolean hasOrdering()
- Specified by:
hasOrdering
in interfaceObjectPaging
-
setOrdering
public void setOrdering(ItemPath orderBy, OrderDirection direction)
- Specified by:
setOrdering
in interfaceObjectPaging
-
hasGrouping
public boolean hasGrouping()
- Specified by:
hasGrouping
in interfaceObjectPaging
-
setGrouping
public void setGrouping(ItemPath groupBy)
- Specified by:
setGrouping
in interfaceObjectPaging
-
addOrderingInstruction
public void addOrderingInstruction(ItemPath orderBy, OrderDirection direction)
- Specified by:
addOrderingInstruction
in interfaceObjectPaging
-
setOrdering
public void setOrdering(ObjectOrdering... orderings)
- Specified by:
setOrdering
in interfaceObjectPaging
-
setOrdering
public void setOrdering(Collection<? extends ObjectOrdering> orderings)
- Specified by:
setOrdering
in interfaceObjectPaging
-
addGroupingInstruction
public void addGroupingInstruction(ItemPath groupBy)
- Specified by:
addGroupingInstruction
in interfaceObjectPaging
-
setGrouping
public void setGrouping(ObjectGrouping... groupings)
- Specified by:
setGrouping
in interfaceObjectPaging
-
setGrouping
public void setGrouping(Collection<ObjectGrouping> groupings)
- Specified by:
setGrouping
in interfaceObjectPaging
-
getOffset
public Integer getOffset()
- Specified by:
getOffset
in interfaceObjectPaging
-
setOffset
public void setOffset(Integer offset)
- Specified by:
setOffset
in interfaceObjectPaging
-
getMaxSize
public Integer getMaxSize()
- Specified by:
getMaxSize
in interfaceObjectPaging
-
setMaxSize
public void setMaxSize(Integer maxSize)
- Specified by:
setMaxSize
in interfaceObjectPaging
-
hasCookie
public boolean hasCookie()
- Specified by:
hasCookie
in 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:
getCookie
in 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:
setCookie
in interfaceObjectPaging
-
clone
public ObjectPaging clone()
- Specified by:
clone
in interfaceObjectPaging
- Overrides:
clone
in classObject
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDump
in interfaceDebugDumpable
-
equals
public boolean equals(Object o, boolean exact)
- Specified by:
equals
in interfaceObjectPaging
-
-