DEPRECATED Use `com.bea.p13n.content.expression.Search``` instead.

# com.beasys.commerce.foundation.expression
SearchImpl Class

public class SearchImpl
extends `Object`
implements `com.beasys.commerce.foundation.expression.Search`

An implementation of the Search interface.

Related Topics

``Search``
``SearchHome``

Hierarchy
  `Object`
  `SearchImpl`

All Implemented Interfaces
  `Cloneable`, `Comparable`, `com.beasys.commerce.foundation.expression.Search`, `Serializable`

## Field Summary

`public `com.beasys.commerce.foundation.expression.Expression`` | `expression` The search expression.
`public long` | `maxReturn` The maximum number of objects to return.
`public `String`` | `sort` The sorting criteria Containment: By Value Multiplicity: 1:1

## Constructor Summary

SearchImpl() Constructor.

## Method Summary

`public `Object`` | `clone`()
`public int` | `compareTo`(`Object` o) Compare this belonging to another
`public boolean` | `equals`(`Object` o)
`public `Expression`` | `getExpression`() Get the search expression.
`public long` | `getMaxReturn`() Get the maximum number of objects to return.
`public `String`` | `getSort`() Get the sort criteria.
`public `String`` | `interfaceName`() interfaceName() returns the unqualified name of the interface from the UML model
`public void` | `setByValue`(`Object` value) It is possible to call set-by-value with a superclass.
`public void` | `setExpression`(`Expression` expression) Set the search expression.
`public void` | `setMaxReturn`(long maxReturn) Set the maximum number of objects to return.
`public void` | `setSort`(`String` sort) Set the sort criteria.
`public `Object`` | `value`() value() is a more typesafe implementation of clone()

Methods from class `java.lang.`Object``
`finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods from interface `java.lang.`Comparable``
`compareTo`

Methods from interface `com.beasys.commerce.foundation.expression.`com.beasys.commerce.foundation.expression.Search``
``getExpression`, `getMaxReturn`, `getSort`, `interfaceName`, `setByValue`, `setExpression`, `setMaxReturn`, `setSort`, `value``

## Field Detail

### expression

    public com.beasys.commerce.foundation.expression.Expression expression

  The search expression.
  - Containment: By Value
  - Multiplicity: 1:1

### maxReturn

    public long maxReturn

  The maximum number of objects to return.
  - Containment: By Value
  - Multiplicity: 1:1

### sort

    public String sort

  The sorting criteria
  - Containment: By Value
  - Multiplicity: 1:1

## Constructor Detail

### SearchImpl

    public SearchImpl()

  Constructor.

## Method Detail

### clone() Method

    public Object clone()

Overrides
  `Object.clone()`

### compareTo(Object) Method

    public int compareTo(Object o)

Compare this belonging to another

#### Parameters

o
  target object for comparision

#### Returns

0 objects are equal

### equals(Object) Method

    public boolean equals(Object o)

Overrides
  `Object.equals(Object)`

### getExpression() Method

    public Expression getExpression()

Get the search expression.

### getMaxReturn() Method

    public long getMaxReturn()

Get the maximum number of objects to return.

### getSort() Method

    public String getSort()

Get the sort criteria.

### interfaceName() Method

    public String interfaceName()

interfaceName() returns the unqualified name of the interface from the UML model

#### Returns

the unqualified name of the belonging interface

### setByValue(Object) Method

    public void setByValue(Object 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.

### setExpression(Expression) Method

    public void setExpression(Expression expression)

Set the search expression.

### setMaxReturn(long) Method

    public void setMaxReturn(long maxReturn)

Set the maximum number of objects to return.

### setSort(String) Method

    public void setSort(String sort)

Set the sort criteria.

### value() Method

    public Object value()

value() is a more typesafe implementation of clone()

#### Returns

a clone of this instance