Home >
Purpose TOC | Annotated TOC |
LikeConstraint
An input to a
SearchStateobject.Methods
new LikeConstraint()- Constructor method that instantiates the
LikeConstraintobject and creates methods that can be called on it. In turn, theLikeConstraintobject 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.
setIMMEDIATEONLY(java.lang.String IMMEDIATEONLY)- Sets the value for the
IMMEDIATEONLYparameter. There is a correspondinggetmethod for this method.
setLIST(com.divine.IList LIST)- Sets the value for the
LISTparameter. 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.
LIST (optional)- Input parameter. A list of the constrained values for the attribute. If specified, one or more of the values must match the attribute for a product to meet the constraint. The default is that all assets that have any value for the attribute match the constraint. The column is called value.
IMMEDIATEONLY (optional)- Input parameter. A Boolean value: true indicates that the search is limited to values directly associated with the specified attribute; false (the default) extends the search to include values inherited from a parent.
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
LikeConstraintobject. The constraint, which is similar to a databaseLIKEoperation, accepts wild cards; for example,%. If the attribute name is already in the SearchState, then the new constraint replaces the old constraint.The
LikeConstraintobject can be added to theSearchStateobject with the correponding SearchState methods.Example
This code instantiates a LikeConstraint object and sets parameters for it:
LikeConstraint like_cons = new LikeConstraint(); like_cons.setTYPENAME("PAttributes"); like_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.