© 2002 BEA Systems, Inc.


com.beasys.commerce.foundation.expression
Class CriteriaImpl

java.lang.Object
  |
  +--com.beasys.commerce.foundation.expression.ExpressionImpl
        |
        +--com.beasys.commerce.foundation.expression.CriteriaImpl

Deprecated. Use Expression instead.

public class CriteriaImpl
extends ExpressionImpl
implements Criteria, java.lang.Cloneable

The default Criteria implementation.

Unlinke most Belonging implementations, this does not attempt to clone everything.

See Also:
ExpressionHelper, Serialized Form

Field Summary
 java.lang.String comparator
          Deprecated. The comparision operator.
 java.lang.Object criteria
          Deprecated. The criteria value.
 java.lang.String property
          Deprecated. The property name.
 java.lang.String scope
          Deprecated. The property scope.
 
Fields inherited from class com.beasys.commerce.foundation.expression.ExpressionImpl
not
 
Constructor Summary
CriteriaImpl()
          Deprecated. Constructor.
 
Method Summary
 int compareTo(java.lang.Object o)
          Deprecated. Compare this belonging to another
 java.lang.String getComparator()
          Deprecated. Get the value of comparator
 java.lang.Object getCriteria()
          Deprecated. Get the value of criteria
 java.lang.String getProperty()
          Deprecated. Get the value of property
 java.lang.String getScope()
          Deprecated. Get the value of scope
 java.lang.String interfaceName()
          Deprecated. interfaceName() returns the unqualified name of the interface from the UML model.
 void setByValue(java.lang.Object value)
          Deprecated. It is possible to call set-by-value with a superclass.
 void setComparator(java.lang.String comparator)
          Deprecated. Set the value of comparator
 void setCriteria(java.lang.Object criteria)
          Deprecated. Set the value of criteria
 void setProperty(java.lang.String property)
          Deprecated. Set the value of property
 void setScope(java.lang.String scope)
          Deprecated. Set the value of scope
 java.lang.Object value()
          Deprecated. value() is a more typesafe implementation of clone()
 void valueOf(java.lang.String expression)
          Deprecated. Set this Criteria's attributes from the specified query sting, which must be of the form "property comparator criteria" (e.g.
 
Methods inherited from class com.beasys.commerce.foundation.expression.ExpressionImpl
clone, equals, getNot, setNot, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

criteria

public java.lang.Object criteria
Deprecated. 
The criteria value.

property

public java.lang.String property
Deprecated. 
The property name.

scope

public java.lang.String scope
Deprecated. 
The property scope.

comparator

public java.lang.String comparator
Deprecated. 
The comparision operator.
Constructor Detail

CriteriaImpl

public CriteriaImpl()
Deprecated. 
Constructor.

All values are initialized to null.

Method Detail

getCriteria

public java.lang.Object getCriteria()
Deprecated. 
Get the value of criteria
Specified by:
getCriteria in interface Criteria


setCriteria

public void setCriteria(java.lang.Object criteria)
Deprecated. 
Set the value of criteria
Specified by:
setCriteria in interface Criteria

Parameters:
criteria - criteria to be added

getProperty

public java.lang.String getProperty()
Deprecated. 
Get the value of property
Specified by:
getProperty in interface Criteria


setProperty

public void setProperty(java.lang.String property)
Deprecated. 
Set the value of property
Specified by:
setProperty in interface Criteria


getScope

public java.lang.String getScope()
Deprecated. 
Get the value of scope
Specified by:
getScope in interface Criteria


setScope

public void setScope(java.lang.String scope)
Deprecated. 
Set the value of scope
Specified by:
setScope in interface Criteria


getComparator

public java.lang.String getComparator()
Deprecated. 
Get the value of comparator
Specified by:
getComparator in interface Criteria


setComparator

public void setComparator(java.lang.String comparator)
Deprecated. 
Set the value of comparator
Specified by:
setComparator in interface Criteria


value

public java.lang.Object value()
Deprecated. 
value() is a more typesafe implementation of clone()

Returns:
a clone of this instance
Overrides:
value in class ExpressionImpl

interfaceName

public java.lang.String interfaceName()
Deprecated. 
interfaceName() returns the unqualified name of the interface from the UML model.

Returns:
the unqualified name of the belonging interface
Overrides:
interfaceName in class ExpressionImpl

setByValue

public void setByValue(java.lang.Object value)
Deprecated. 
It is possible to call set-by-value with a superclass.

If that is the case, only the fields in the superclass will be set in this instance. The remaining fields get the default values. It is also possible to call set-by-value with a subclass. In this case, the specialized fields in the subclass will be ignored. The overridden fields in the subclass will be populated.

Overrides:
setByValue in class ExpressionImpl

compareTo

public int compareTo(java.lang.Object o)
Deprecated. 
Compare this belonging to another

Parameters:
o - target object for comparision
Returns:
0 objects are equal
Overrides:
compareTo in class ExpressionImpl

valueOf

public void valueOf(java.lang.String expression)
             throws java.lang.IllegalArgumentException
Deprecated. 
Set this Criteria's attributes from the specified query sting, which must be of the form "property comparator criteria" (e.g. "identifier == '1234').

Throws:
java.lang.IllegalArgumentException - thrown on an invalid expression string.
Overrides:
valueOf in class ExpressionImpl
See Also:
ExpressionHelper.parse(java.lang.String)

© 2002 BEA Systems, Inc.

Copyright © 2002 BEA Systems, Inc. All Rights Reserved