BEA Systems, Inc.

com.beasys.commerce.foundation.expression
Class SearchImpl

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

public class SearchImpl
extends BelongingImpl
implements Search, java.lang.Cloneable

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
 
Fields inherited from class com.beasys.commerce.foundation.BelongingImpl
__classIdentifier, __containingBelonging, __containingEntity, __mapKey, __sequenceNumber
 
Constructor Summary
SearchImpl()
          Constructor.
 
Method Summary
 int compareTo(java.lang.Object o)
          Compare this belonging to another
 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 com.beasys.commerce.foundation.BelongingImpl
clearRelationalBinding, clearRelationalBinding, clearRelationalBinding, clearRelationalBinding, clone, equals, get__classIdentifier, get__containingBelonging, get__containingEntity, get__containingEntityReference, get__mapKey, get__sequenceNumber, set__containingBelonging, set__containingEntity, set__containingEntityReference, set__mapKey
 
Methods inherited from class java.lang.Object
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

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.

Overrides:
setByValue in class BelongingImpl

compareTo

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

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved