BEA Systems, Inc.

BEA WebLogic Server 9.1 API Reference


weblogic.jdbc.rowset
Class SQLComparator

java.lang.Object
  extended byweblogic.jdbc.rowset.SQLComparator
All Implemented Interfaces:
Comparator, Serializable

public class SQLComparator
extends Object
implements Comparator, Serializable

SQLComparator is a default implementation of the Comparator interface. SortedRowSet use SQLComparator to sort its rows and uses the return value of the SQLComparator.compare method to decide the order of any two rows. The syntax of a columns string specified in a SQLComparator constructor is a string of column names in a RowSet that is separated by a comma "," character. For example, "c1, c2, c3" and "c*" is a valid column name.

See Also:
Serialized Form
Copyright © 2005 BEA Systems, Inc. All Rights Reserved.

Constructor Summary
SQLComparator(String order)
          Constructor with a string input that defines how to sort the rows of a RowSet object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
compare, equals
 

Constructor Detail

SQLComparator

public SQLComparator(String order)
Constructor with a string input that defines how to sort the rows of a RowSet object.


Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs91
Copyright 2005 BEA Systems Inc.