BEA Systems, Inc.

com.beasys.commerce.foundation.expression
Class SearchImpl

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

public class SearchImpl
extends java.lang.Object
implements Search, java.lang.Cloneable, java.io.Serializable

An implementation of the Search interface.

See Also:
Search, SearchHome, Serialized Form

Field Summary
 Expression expression
          The search expression.
 long maxReturn
          The maximum number of objects to return.
 java.lang.String sort
          The sorting criteria Containment: By Value Multiplicity: 1:1
 
Constructor Summary
SearchImpl()
          Constructor.
 
Method Summary
 java.lang.Object clone()
          Returns a shallow copy of the Belonging instance.
 int compareTo(java.lang.Object o)
          Compare this belonging to another
 boolean equals(java.lang.Object o)
          Indicates whether some other Belonging is equivalent to this Belonging.
 Expression getExpression()
          Get the search expression.
 long getMaxReturn()
          Get the maximum number of objects to return.
 java.lang.String getSort()
          Get the sort criteria.
 java.lang.String interfaceName()
          interfaceName() returns the unqualified name of the interface from the UML model
 void setByValue(Belonging value)
          It is possible to call set-by-value with a superclass.
 void setExpression(Expression expression)
          Set the search expression.
 void setMaxReturn(long maxReturn)
          Set the maximum number of objects to return.
 void setSort(java.lang.String sort)
          Set the sort criteria.
 Belonging value()
          value() is a more typesafe implementation of clone()
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxReturn

public long maxReturn
The maximum number of objects to return.

sort

public java.lang.String sort
The sorting criteria

expression

public Expression expression
The search expression.
Constructor Detail

SearchImpl

public SearchImpl()
Constructor.
Method Detail

getMaxReturn

public long getMaxReturn()
Get the maximum number of objects to return.
Specified by:
getMaxReturn in interface Search

setMaxReturn

public void setMaxReturn(long maxReturn)
Set the maximum number of objects to return.
Specified by:
setMaxReturn in interface Search

getSort

public java.lang.String getSort()
Get the sort criteria.
Specified by:
getSort in interface Search

setSort

public void setSort(java.lang.String sort)
Set the sort criteria.
Specified by:
setSort in interface Search

getExpression

public Expression getExpression()
Get the search expression.
Specified by:
getExpression in interface Search

setExpression

public void setExpression(Expression expression)
Set the search expression.
Specified by:
setExpression in interface Search

value

public Belonging value()
value() is a more typesafe implementation of clone()
Returns:
a clone of this instance

clone

public java.lang.Object clone()
Description copied from interface: Belonging
Returns a shallow copy of the Belonging instance.
Overrides:
clone in class java.lang.Object
Tags copied from interface: Belonging
Returns:
A shallow copy of this Belonging.

interfaceName

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

setByValue

public void setByValue(Belonging value)
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.

Tags copied from interface: Belonging
Parameters:
belonging - The Belonging to use for initialization.

compareTo

public int compareTo(java.lang.Object o)
Compare this belonging to another
Parameters:
o - target object for comparision
Returns:
0 objects are equal

equals

public boolean equals(java.lang.Object o)
Description copied from interface: Belonging
Indicates whether some other Belonging is equivalent to this Belonging.
Overrides:
equals in class java.lang.Object
Tags copied from interface: Belonging
Parameters:
o - the Object to be compared.
Returns:
a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
Throws:
java.lang.ClassCastException - if the specified object is not of the same type as this Belonging.

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved