KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > daffodildb > server > sql99 > dql > resultsetmetadata > DefaultKeyComparator


1 package com.daffodilwoods.daffodildb.server.sql99.dql.resultsetmetadata;
2
3 import java.io.*;
4
5 import com.daffodilwoods.daffodildb.utils.comparator.*;
6
7 /**
8  * It represents the comparator. It is required when we've to reflect the effect
9  * of updation on the resultset of select query in which only aggregates are present
10  * In this case only one row comes into resultset. And we've to match the key by
11  * default as there is only one row.
12  * <p>Title: </p>
13  * <p>Description: </p>
14  * <p>Copyright: Copyright (c) 2003</p>
15  * <p>Company: </p>
16  * @author not attributable
17  * @version 1.0
18  */

19
20 public class DefaultKeyComparator extends SuperComparator implements Serializable {
21
22    /**
23     * Returns 0 denoting both objects are equal.
24     */

25
26    public int compare(Object JavaDoc object1, Object JavaDoc object2) {
27       return 0;
28    }
29 }
30
Popular Tags