Home > Contents > Index >
Expanded TOC   |    Purpose TOC   |    Annotated TOC   |    Index

 

LikeConstraint

An input to a SearchState object.

Methods

new LikeConstraint()
Constructor method that instantiates the LikeConstraint object and creates methods that can be called on it. In turn, the LikeConstraint object can be added to the SearchState object.

setBUCKET(java.lang.String BUCKET)
Sets the value for the BUCKET parameter. This method has a corresponding get method.

setTYPENAME(java.lang.String TYPENAME)
Sets the value for the TYPENAME parameter. This method has a corresponding get method.

setATTRIBUTE(java.lang.String ATTRIBUTE)
Sets the value for the ATTRIBUTE parameter. This method has a corresponding get method.

setIMMEDIATEONLY(java.lang.String IMMEDIATEONLY)
Sets the value for the IMMEDIATEONLY parameter. There is a corresponding get method for this method.

setLIST(com.divine.IList LIST)
Sets the value for the LIST parameter. This method has a corresponding get method.

setCASEINSENSITIVE(java.lang.String CASEINSENSITIVE)
Sets the value specified by the CASEINSENSITIVE parameter. This method has a corresponding get 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.

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 LikeConstraint object. The constraint, which is similar to a database LIKE operation, accepts wild cards; for example, %. If the attribute name is already in the SearchState, then the new constraint replaces the old constraint.

The LikeConstraint object can be added to the SearchState object with the correponding SearchState methods.

Example

This code instantiates a LikeConstraint object and sets parameters for it:

See Also

Methods for adding various constraint objects to a SearchState. These are available when you instantiate the SearchState object.

NestedConstraint

RangeConstraint

RichTextConstraint

StandardConstraint

 

  Home > Contents > Index >

Oracle Web Services Reference
Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.