SPT RWT Application API

com.sptci.rwt
Class Query

java.lang.Object
  extended by com.sptci.KeyValue<String,String>
      extended by com.sptci.rwt.Query
All Implemented Interfaces:
Serializable, Cloneable, Comparable<com.sptci.KeyValue<String,String>>

public class Query
extends com.sptci.KeyValue<String,String>
implements Serializable

A simple sub-class of KeyValue used to represent a saved query.

© Copyright 2007 Sans Pareil Technologies, Inc.

Version:
$Id: Query.java 4123 2008-05-25 21:49:01Z rakesh $
Author:
Rakesh Vidyadharan 2007-10-10
See Also:
Serialized Form

Constructor Summary
Query()
          Default constructor.
Query(String name, String sql)
          Create a new instance using the specified values.
 
Method Summary
 int compareTo(com.sptci.KeyValue<String,String> query)
          Compares this object with the specified object for order.
 
Methods inherited from class com.sptci.KeyValue
addInformation, clone, equals, getInformation, getKey, getValue, hashCode, setInformation, setKey, setValue, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Query

public Query()
Default constructor.


Query

public Query(String name,
             String sql)
Create a new instance using the specified values.

Parameters:
name - The name to identify the query by.
sql - The SQL statement to save.
Method Detail

compareTo

public int compareTo(com.sptci.KeyValue<String,String> query)
Compares this object with the specified object for order. Over-ridden to compare only the value of key.

Specified by:
compareTo in interface Comparable<com.sptci.KeyValue<String,String>>
Overrides:
compareTo in class com.sptci.KeyValue<String,String>
Parameters:
query - The object that is to be compared with this object.
Returns:
int A negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

SPT RWT Application API