com.caucho.amber.query
Class CachedQueryKey

java.lang.Object
  extended by com.caucho.amber.query.CachedQueryKey

public class CachedQueryKey
extends java.lang.Object

A key for cached query results.


Constructor Summary
CachedQueryKey()
           
CachedQueryKey(java.lang.String sql, java.lang.Object[] parameters, int count)
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Returns true if the key matches.
 java.lang.String getSQL()
          Returns the SQL
 int hashCode()
          Returns the hash-code for the key.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedQueryKey

public CachedQueryKey()

CachedQueryKey

public CachedQueryKey(java.lang.String sql,
                      java.lang.Object[] parameters,
                      int count)
Method Detail

getSQL

public java.lang.String getSQL()
Returns the SQL


hashCode

public int hashCode()
Returns the hash-code for the key.

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Returns true if the key matches.

Overrides:
equals in class java.lang.Object