Home > Contents > Index >
Expanded TOC | Purpose TOC | Annotated TOC | Index
RangeConstraint
An input to a
SearchState
object.Methods
new RangeConstraint( )
- Constructor method that instantiates the
RangeConstraint
object and creates methods that can be called on it. In turn, theRangeConstraint
object can be added to theSearchState
object.setBUCKET(java.lang.String BUCKET)
- Sets the value for the
BUCKET
parameter. This method has a correspondingget
method.setTYPENAME(java.lang.String TYPENAME)
- Sets the value for the
TYPENAME
parameter. This method has a correspondingget
method.setATTRIBUTE(java.lang.String ATTRIBUTE)
- Sets the value for the
ATTRIBUTE
parameter. This method has a correspondingget
method.setLOWEREQUAL(java.lang.String LOWEREQUAL)
- Sets the value for the
LOWEREQUAL
parameter. This method has a correspondingget
method.setLOWER(java.lang.String LOWER)
- Sets the value for the
LOWER
parameter. This method has a correspondingget
method.setUPPEREQUAL(java.lang.String UPPEREQUAL)
- Sets the value for the
UPPEREQUAL
parameter. This method has a correspondingget
method.setUPPER(java.lang.String UPPER)
- Sets the value for the
UPPER
parameter. This method has a correspondingget
method.setCASEINSENSITIVE(java.lang.String CASEINSENSITIVE)
- Sets the value specified by the
CASEINSENSITIVE
parameter. This method has a correspondingget
method.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.
true
to include,false
to exclude.UPPER(required)
- Input parameter. The top end of the range.
UPPEREQUAL (required)
- Input parameter. Determine whether to include or exclude the upper limit.
true
to include,false
to 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
RangeConstraint
object. TheRangeConstraint
object can be added to theSearchState
object with the correponding SearchState methods.Example
This code instantiates the
RangeConstraint
object and sets theTYPENAME
andATTRIBUTE
parameters.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, 2015, Oracle and/or its affiliates. All rights reserved.