Home >
Purpose TOC | Annotated TOC |
RangeConstraint
An input to a
SearchStateobject.Methods
new RangeConstraint( )- Constructor method that instantiates the
RangeConstraintobject and creates methods that can be called on it. In turn, theRangeConstraintobject can be added to theSearchStateobject.
setBUCKET(java.lang.String BUCKET)- Sets the value for the
BUCKETparameter. This method has a correspondinggetmethod.
setTYPENAME(java.lang.String TYPENAME)- Sets the value for the
TYPENAMEparameter. This method has a correspondinggetmethod.
setATTRIBUTE(java.lang.String ATTRIBUTE)- Sets the value for the
ATTRIBUTEparameter. This method has a correspondinggetmethod.
setLOWEREQUAL(java.lang.String LOWEREQUAL)- Sets the value for the
LOWEREQUALparameter. This method has a correspondinggetmethod.
setLOWER(java.lang.String LOWER)- Sets the value for the
LOWERparameter. This method has a correspondinggetmethod.
setUPPEREQUAL(java.lang.String UPPEREQUAL)- Sets the value for the
UPPEREQUALparameter. This method has a correspondinggetmethod.
setUPPER(java.lang.String UPPER)- Sets the value for the
UPPERparameter. This method has a correspondinggetmethod.
setCASEINSENSITIVE(java.lang.String CASEINSENSITIVE)- Sets the value specified by the
CASEINSENSITIVEparameter. This method has a correspondinggetmethod.
Parameters
The following parameters can be set using a corresponding LikeConstraint method:
BUCKET (optional)- Input parameter. The bucket name. If not specified, the attribute name is used.
TYPENAME (optional)- Input parameter. The internal asset name for the attribute (either CAttributes for content attribute, or PAttributes for product attribute). If you do not specify TYPENAME, a value is supplied from a property in the gator.ini property file: mwb.defaultattributes=PAttributes. The default is PAttributes and the value may be changed.
ATTRIBUTE (required)- Input parameter. Name of the attribute to constrain.
LOWER(required)- Input parameter. The bottom end of the range.
LOWEREQUAL (required)- Input parameter. Determine whether to include or exclude the lower limit.
trueto include,falseto exclude.
UPPER(required)- Input parameter. The top end of the range.
UPPEREQUAL (required)- Input parameter. Determine whether to include or exclude the upper limit.
trueto include,falseto exclude.
CASEINSENSITIVE (optional)- Input parameter. A Boolean value: true indicates that the comparison is case-insensitive; false (the default) considers case in the comparison.
Description
Associated methods set parameter values that populate the
RangeConstraintobject. TheRangeConstraintobject can be added to theSearchStateobject with the correponding SearchState methods.Example
This code instantiates the
RangeConstraintobject and sets theTYPENAMEandATTRIBUTEparameters.RangeConstraint range_cons = new RangeConstraint(); range_cons.setTYPENAME("PAttributes"); range_cons.setATTRIBUTE("FundFamily");See Also
Methods for adding various constraint objects to a SearchState. These are available when you instantiate the SearchState object.
Home > Contents > Index > ![]()
Oracle Web Services Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.