Oracle Ultra Search Java API Reference
Release 10g

B12028-01

oracle.ultrasearch.query
Class LessThan

java.lang.Object
extended byoracle.ultrasearch.query.LessThan
All Implemented Interfaces:
Query

public class LessThan
extends java.lang.Object
implements Query

Class LessThan narrows the attribute to smaller values.

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

Since:
9.0.2
See Also:
GreaterThan

Constructor Summary
LessThan(DateAttribute att, java.util.Date s)
          Construct a LessThan query on a DateAttribute.
LessThan(NumberAttribute att, java.math.BigDecimal s)
          Construct a LessThan 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

LessThan

public LessThan(DateAttribute att,
                java.util.Date s)
Construct a LessThan query on a DateAttribute.
Parameters:
att - a date attribute

LessThan

public LessThan(NumberAttribute att,
                java.math.BigDecimal s)
Construct a LessThan query on a NumberAttribute.
Parameters:
att - a number attribute
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.

Oracle Ultra Search Java API Reference
Release 10g

B12028-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.