© 2005 BEA Systems, Inc.

com.beasys.commerce.foundation.expression
Interface Criteria

All Superinterfaces:
Cloneable, Comparable, Expression, Serializable
All Known Implementing Classes:
CriteriaImpl

Deprecated. Use Expression instead.

public interface Criteria
extends 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

See Also:
CriteriaHome, CriteriaImpl, TypesHelper, ExpressionHelper, ExpressionHelper

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

Method Detail

getComparator

public String getComparator()
Deprecated. 
Get the comparision operator.


getCriteria

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


getProperty

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


getScope

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


setComparator

public void setComparator(String comparator)
Deprecated. 
Set the comparision operator


setCriteria

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


setProperty

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


setScope

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


© 2005 BEA Systems, Inc.

Copyright © 2005 BEA Systems, Inc. All Rights Reserved