public class SelectionCriteria
extends java.lang.Object
The search expression object represents the information that can be extracted
from the Expression
elements of the Get
verb.
The Expression
indicates the search expression to perform using an extended
XPath
notation to indicate the search criteria. The search criteria is composed of
a XPath
expression that represents the logical model with addition control
parameters that will influence the search results.
This object is used when processing Get requests.
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
Constructor and Description |
---|
SelectionCriteria()
Creates an instance of the search expression object.
|
SelectionCriteria(java.lang.String astrXPath,
java.lang.String astrComponentId)
Creates an instance of the search expression object for a given XPath expression.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAccessProfile()
This method returns the access profile that has been specified in the search
expression.
|
java.lang.String |
getComponentId()
Gets the component identifier.
|
java.util.Map |
getControlParameters()
This method returns the additional control parameters that are found in the
XPath search expression.
|
java.math.BigInteger |
getPagingMaxItems()
This method returns the paging information that specifies the maximum items to return
as part of the search expression.
|
java.lang.String |
getPagingRecordSetReferenceId()
Returns a paging reference identifier for a paging request.
|
java.lang.Boolean |
getPagingRecordSetSaveIndicator()
This method returns the paging information of whether to cache the results of the query because
a simular query may be executed later to retrieve the next page of items.
|
java.math.BigInteger |
getPagingRecordSetStartNumber()
This method returns the index of the first record to be
retrieved from the query result set.
|
java.lang.Boolean |
getPagingUniqueIndicator()
This method returns the paging information of the unique indicator.
|
java.util.List |
getSearchAttributes()
Reserved for IBM internal use.
|
java.lang.String |
getSearchProfile()
This method returns name of the search profile in the current search request.
|
java.lang.String |
getXPath()
This method returns the XPath expression of the expression to execute.
|
java.lang.String |
getXPathKey()
This method returns the key representation of the XPath expression.
|
java.util.Map |
getXPathParameters()
This method returns the XPath parameters.
|
SearchParameters |
getXPathSearchParameters()
Returns the parameters of the search() function when specified in the first predicate
of the XPath expression.
|
void |
setAccessProfile(java.lang.String accessProfile)
This method sets the access profile that has been specified in the the search expression.
|
void |
setComponentId(java.lang.String componentId)
Sets the component identifier.
|
void |
setControlParameters(java.util.Map controlParameters)
This method sets the additional control parameters of the search expression.
|
void |
setPagingMaxItems(java.math.BigInteger pagingMaxItems)
This method sets the paging information that specifies the maximun number of items to return.
|
void |
setPagingRecordSetReferenceId(java.lang.String pagingRecordSetReferenceId)
Sets the paging reference identifier to resolve resolve paging information
on the subsequent requests.
|
void |
setPagingRecordSetSaveIndicator(java.lang.Boolean pagingRecordSetSaveIndicator)
This method sets the paging information on whether to save the query results because the next page
of information may be requested in the immediate future.
|
void |
setPagingRecordSetStartNumber(java.math.BigInteger pagingRecordSetStartNumber)
This method sets the index of the first record to be
retrieved from the query result set.
|
void |
setPagingUniqueIndicator(java.lang.Boolean pagingUniqueIndicator)
This method sets the paging information of the unique indicator.
|
void |
setSearchAttributes(java.util.List searchAttrs)
Reserved for IBM internal use.
|
void |
setSearchProfile(java.lang.String searchProfile)
This method sets the search profile specified in the search expression.
|
void |
setXPath(java.lang.String astrXPath)
This method sets the XPath expression to execute.
|
void |
setXPathKey(java.lang.String pathKey)
This method sets the key representation of the XPath search expression.
|
void |
setXPathParameter(RelationalExpression aParameter)
This method sets an XPath parameter.
|
void |
setXPathParameters(java.util.Map aXPathParameters)
This method sets the XPath parameters found with the XPath expression.
|
void |
setXPathSearchParameters(SearchParameters aSearchParameters)
Sets the parameters of the search() function when specified in the first predicate
of the XPath expression.
|
java.io.Serializable |
toCacheKeyString()
Returns a string that can be used as a cache key for the search
expression.
|
java.lang.String |
toString()
Returns a String object representing this SelectionCriteria object.
|
public static final java.lang.String COPYRIGHT
public SelectionCriteria()
public SelectionCriteria(java.lang.String astrXPath, java.lang.String astrComponentId)
astrXPath
- - XPath expressionastrComponentId
- - component identifierpublic java.lang.String getSearchProfile()
public void setSearchProfile(java.lang.String searchProfile)
searchProfile
- the search profilepublic java.lang.String getAccessProfile()
public void setAccessProfile(java.lang.String accessProfile)
accessProfile
- The access profile that has been specified.public java.util.Map getControlParameters()
public void setControlParameters(java.util.Map controlParameters)
controlParameters
- Additional search expression control parameters.public java.math.BigInteger getPagingMaxItems()
public void setPagingMaxItems(java.math.BigInteger pagingMaxItems)
pagingMaxItems
- The maximun number of items to return.public java.lang.Boolean getPagingRecordSetSaveIndicator()
public void setPagingRecordSetSaveIndicator(java.lang.Boolean pagingRecordSetSaveIndicator)
pagingRecordSetSaveIndicator
- Whether the next page of information is retrieved in the
immediate future.public java.math.BigInteger getPagingRecordSetStartNumber()
public void setPagingRecordSetStartNumber(java.math.BigInteger pagingRecordSetStartNumber)
pagingRecordSetStartNumber
- The index of the first record to be returnedpublic java.lang.Boolean getPagingUniqueIndicator()
public void setPagingUniqueIndicator(java.lang.Boolean pagingUniqueIndicator)
pagingUniqueIndicator
- The unique indicator.public java.lang.String getXPath()
public void setXPath(java.lang.String astrXPath)
astrXPath
- The XPath search expression.public java.lang.String getXPathKey()
public void setXPathKey(java.lang.String pathKey)
pathKey
- The XPath search expression key.public java.util.List getSearchAttributes()
public void setSearchAttributes(java.util.List searchAttrs)
searchAttrs
- public java.util.Map getXPathParameters()
public void setXPathParameters(java.util.Map aXPathParameters)
aXPathParameters
- A map of parameters represented by the RelationalExpression objects keyed by the parameter namepublic void setXPathParameter(RelationalExpression aParameter)
aParameter
- - XPath parameterpublic java.lang.String getPagingRecordSetReferenceId()
public void setPagingRecordSetReferenceId(java.lang.String pagingRecordSetReferenceId)
pagingRecordSetReferenceId
- the reference id of the paging record setpublic SearchParameters getXPathSearchParameters()
public void setXPathSearchParameters(SearchParameters aSearchParameters)
aSearchParameters
- - search parameterspublic final void setComponentId(java.lang.String componentId)
componentId
- - component identifierpublic final java.lang.String getComponentId()
public java.lang.String toString()
toString
in class java.lang.Object
public java.io.Serializable toCacheKeyString()