Skip navigation links

Oracle® Ultra Search Java API Reference
11g Release 1 (11.1)

B28329-02


oracle.ultrasearch.query
Class GreaterThan

java.lang.Object
  extended by oracle.ultrasearch.query.GreaterThan

All Implemented Interfaces:
Query

public class GreaterThan
extends java.lang.Object
implements Query

Class GreaterThan narrows the attribute to bigger values.

This query does not apply to String attributes. When used with Date attribute, it means "later". GreaterThan is the complement of LessThan.

Since:
9.0.2
See Also:
LessThan

Constructor Summary
GreaterThan(DateAttribute att, java.util.Date date)
          Construct a GreaterThan query on a DateAttribute.
GreaterThan(NumberAttribute att, java.math.BigDecimal bd)
          Construct a GreaterThan query on a NumberAttribute.

 

Method Summary
 java.lang.String compile()
          compile into a query string.
 java.lang.String compileForCount()
          compile into a query string for counting hits.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

GreaterThan

public GreaterThan(DateAttribute att,
                   java.util.Date date)
Construct a GreaterThan query on a DateAttribute.
Parameters:
att - a date attribute
date - a Date value, not null

GreaterThan

public GreaterThan(NumberAttribute att,
                   java.math.BigDecimal bd)
Construct a GreaterThan query on a NumberAttribute.
Parameters:
att - a number attribute
bd - a BigDecimal value, not null

Method Detail

compile

public java.lang.String compile()
compile into a query string.
Specified by:
compile in interface Query
Returns:
a query string representing this query.

compileForCount

public java.lang.String compileForCount()
compile into a query string for counting hits.
Specified by:
compileForCount in interface Query
Returns:
a query string representing this query.

Skip navigation links

Oracle® Ultra Search Java API Reference
11g Release 1 (11.1)

B28329-02


Copyright © 2002,2008, Oracle. All Rights Reserved.