com.caucho.amber.query
Class CachedQuery

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

public class CachedQuery
extends java.lang.Object

Represents the application's view of the query.


Method Summary
 CachedQueryKey getKey()
          returns the key.
 void list(java.util.List<java.lang.Object> list, AmberConnection aConn, long maxAge)
          Executes the query, filling the list.
 java.lang.String toString()
           
 void update()
          Updates the query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getKey

public CachedQueryKey getKey()
returns the key.


update

public void update()
Updates the query.


list

public void list(java.util.List<java.lang.Object> list,
                 AmberConnection aConn,
                 long maxAge)
          throws java.sql.SQLException
Executes the query, filling the list.

Throws:
java.sql.SQLException

toString

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