Criteria Interface

DEPRECATED Use com.bea.p13n.expression.Expression instead.

com.beasys.commerce.foundation.expression
Criteria Interface

public interface Criteria

    extends com.beasys.commerce.foundation.expression.Expression

The simple expression container in an expression string.

This will model a property name, an comparision operator, and a value to match against the name. In this fashion simple boolean logic can be utilized.

For use in the personalization and commerce servers, the comparision operator values must be the constants specified in TypesHelper (e.g. EQUALS, NOT_EQUALS, LIKE, etc.). This is because the logic which handles the Criteria objects will compare the operator against those constants.

To create Criteria objects, either use CriteriaHome.create() and set property, criteria, and comparator, or use ExpressionHelper to parse a query string into an Expression.

Attribute: criteria Attribute: property Attribute: scope Attribute: comparator

Related Topics

CriteriaHome
CriteriaImpl
TypesHelper
ExpressionHelper
ExpressionHelper


All Known Implementing Classes
com.beasys.commerce.foundation.expression.CriteriaImpl
All Superinterfaces
Cloneable, Comparable, com.beasys.commerce.foundation.expression.Expression, Serializable

Method Summary

public String
getComparator()
Get the comparision operator.
public Object
getCriteria()
Get the literial value to compare against.
public String
getProperty()
Get the property name to compare against.
public String
getScope()
Get the property name's scope to compare against.
public void
setComparator(String comparator)
Set the comparision operator
public void
setCriteria(Object criteria)
Set the literal value to compare against.
public void
setProperty(String property)
Set the property name to compare against.
public void
setScope(String scope)
Set the property name's scope to compare against.
 
Methods from interface java.lang.Comparable
compareTo
 
Methods from interface com.beasys.commerce.foundation.expression.com.beasys.commerce.foundation.expression.Expression
getNot, interfaceName, setByValue, setNot, toString, value, valueOf
   

Method Detail

getComparator() Method

public String getComparator()
Get the comparision operator.


getCriteria() Method

public Object getCriteria()
Get the literial value to compare against.


getProperty() Method

public String getProperty()
Get the property name to compare against.


getScope() Method

public String getScope()
Get the property name's scope to compare against.


setComparator(String) Method

public void setComparator(String comparator)
Set the comparision operator


setCriteria(Object) Method

public void setCriteria(Object criteria)
Set the literal value to compare against.


setProperty(String) Method

public void setProperty(String property)
Set the property name to compare against.


setScope(String) Method

public void setScope(String scope)
Set the property name's scope to compare against.