Package com.evolveum.midpoint.schema
Class SearchResultMetadata
java.lang.Object
com.evolveum.midpoint.schema.SearchResultMetadata
- All Implemented Interfaces:
- DebugDumpable,- ShortDumpable,- Serializable,- Cloneable
public class SearchResultMetadata
extends Object
implements Serializable, DebugDumpable, ShortDumpable, Cloneable
Objects of this type are considered READ ONLY.
- Author:
- semancik
- See Also:
- 
Field SummaryFields inherited from interface com.evolveum.midpoint.util.DebugDumpableINDENT_STRING
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionapproxNumberOfAllResults(Integer approxNumberOfAllResults) clone()debugDump(int indent) booleanReturns the approximate number of all results that would be returned for the filter if there was no paging limitation.Returns the paging cookie.inthashCode()booleanFlag indicating whether the search returned partial results.pagingCookie(String pagingCookie) partialResults(boolean partialResults) voidsetApproxNumberOfAllResults(Integer approxNumberOfAllResults) voidsetPagingCookie(String pagingCookie) Sets paging cookie.voidsetPartialResults(boolean partialResults) voidShow the content of the object intended for diagnostics.toString()Methods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.util.DebugDumpabledebugDump, debugDumpLazily, debugDumpLazilyMethods inherited from interface com.evolveum.midpoint.util.ShortDumpableshortDump, shortDumpLazily
- 
Constructor Details- 
SearchResultMetadatapublic SearchResultMetadata()
 
- 
- 
Method Details- 
getPagingCookieReturns 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.
- 
setPagingCookieSets 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.
- 
pagingCookie
- 
getApproxNumberOfAllResultsReturns the approximate number of all results that would be returned for the filter if there was no paging limitation. This property is optional and it is informational only. The implementation should return it only if it is extremely cheap to get the information (e.g. if it is part of the response anyway). The number may be approximate. The intended use of this value is to optimize presentation of the data (e.g. to set approximate size of scroll bars, page counts, etc.)
- 
setApproxNumberOfAllResults
- 
approxNumberOfAllResults
- 
isPartialResultspublic boolean isPartialResults()Flag indicating whether the search returned partial results. If set to false then all the results requested by the query were returned. If set to true then only some results requested by the query were returned.
- 
setPartialResultspublic void setPartialResults(boolean partialResults) 
- 
partialResults
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
- 
shortDumpDescription copied from interface:ShortDumpableShow the content of the object intended for diagnostics. This method is supposed to append a compact, human-readable output in a single line. Unlike toString() method, there is no requirement to identify the actual class or type of the object. It is assumed that the class/type will be obvious from the context in which the output is used.- Specified by:
- shortDumpin interface- ShortDumpable
- Parameters:
- sb- StringBuilder to which to a compact one-line content of the object intended for diagnostics by system administrator should be appended.
 
- 
debugDump- Specified by:
- debugDumpin interface- DebugDumpable
 
- 
clone
 
-