|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.itim.dataservices.model.SearchParameters
Class that holds a set of parameters that can be used to further define how a search should be implemented against the data store. Parameters such as scope, attributes to search for, and search limits can be controlled through this object.
Field Summary | |
---|---|
static int |
ASCENDING
Constant used in setSearchOrder and getSearchOrder to indicate an ascending search. |
static int |
DESCENDING
Constant used in setSearchOrder and getSearchOrder to indicate a descending search. |
static int |
ONELEVEL_SCOPE
Constant indicating a single level search scope. |
static int |
SUBTREE_SCOPE
Constant indicating a sub-tree search scope. |
Constructor Summary | |
---|---|
SearchParameters()
Default constructor. |
|
SearchParameters(SearchParameters params)
Constructs a copy of the provided search parameters. |
Method Summary | |
---|---|
java.util.Collection |
getAttributes()
Returns the attributes to return in the search. |
java.util.Locale |
getLocale()
Get the locale used for this search |
int |
getPageSize()
Get the page size for paged searches |
int |
getScope()
Returns the scope of the search. |
long |
getSizeLimit()
Returns the maximum number of entries to be returned. |
java.lang.String |
getSortAttribute()
Get the sorting attribute |
int |
getSortOrder()
Get the sort order. |
void |
setAttributes(java.util.Collection attributes)
Changes the list of attributes to return in the search. |
void |
setLocale(java.util.Locale locale)
Set the locale to be used for local-specific collation of search results |
void |
setPageSize(int pageSize)
Set the page size for paged searches |
void |
setScope(int scope)
Changes the scope of the search. |
void |
setSizeLimit(long sizeLimit)
Change the maximum number of entries to be returned. |
void |
setSortAttribute(java.lang.String sortAttribute)
Set the sorting attribute |
void |
setSortOrder(int order)
Set the sort order |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static int ONELEVEL_SCOPE
public static int SUBTREE_SCOPE
public static final int ASCENDING
public static final int DESCENDING
Constructor Detail |
public SearchParameters()
public SearchParameters(SearchParameters params)
params
- SearchParameters to copy.Method Detail |
public long getSizeLimit()
public void setSizeLimit(long sizeLimit)
sizeLimit
- Maximum number of entries.public int getScope()
public void setScope(int scope)
scope
- Enumeration of the scope, ONELEVEL_SCOPE, SUBTREE_SCOPE.public java.util.Collection getAttributes()
public void setAttributes(java.util.Collection attributes)
attributes
- Collection of attribute names (Strings).public java.lang.String getSortAttribute()
public void setSortAttribute(java.lang.String sortAttribute)
sortAttribute
- The name of the attribute to sort the result set on.public int getSortOrder()
public void setSortOrder(int order)
order
- The order of the sort, must be one of ASCENDING or
DESCENDING.public java.util.Locale getLocale()
public void setLocale(java.util.Locale locale)
locale
- The locale for the searchpublic int getPageSize()
public void setPageSize(int pageSize)
pageSize
- The size for paged searches. A zero indicates
no page size limit. This parameter is honoured only by data
sources that can provide results in pages and is ignored otherwise.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |