com.caucho.amber.query
Class QueryCacheKey

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

public class QueryCacheKey
extends java.lang.Object

The key for a query cache entry


Constructor Summary
QueryCacheKey()
           
QueryCacheKey(java.lang.String sql, java.lang.Object[] args, int startRow)
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Test for equality.
 int hashCode()
          Returns the hash code.
 void init(java.lang.String sql, java.lang.Object[] args, int startRow)
          Initialize the cache key values.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryCacheKey

public QueryCacheKey()

QueryCacheKey

public QueryCacheKey(java.lang.String sql,
                     java.lang.Object[] args,
                     int startRow)
Method Detail

init

public void init(java.lang.String sql,
                 java.lang.Object[] args,
                 int startRow)
Initialize the cache key values.


hashCode

public int hashCode()
Returns the hash code.

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Test for equality.

Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object