Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.forum.database
Interface QueryCacheStrategy

All Known Implementing Classes:
EntityDescriptorQueryCacheStrategy, TagQueryCacheStrategy

public interface QueryCacheStrategy

Strategy interface use by QueryCache to retrieve query data.


Method Summary
 java.lang.Object getQueryCacheObject(java.sql.ResultSet rs)
          Creates a QueryCacheObject given a result set.
 

Method Detail

getQueryCacheObject

java.lang.Object getQueryCacheObject(java.sql.ResultSet rs)
                                     throws java.sql.SQLException
Creates a QueryCacheObject given a result set. This method is dependent on the CachedPreparedStatement and the strategy implementation being in sync (i.e. the sql returning the appropriate fields for the strategy to create the QueryCacheObject.

Parameters:
rs - the result set to retrieve the data necessary to generate the QueryCacheObject From
Returns:
a QueryCacheObject encapsulating the query result data.
Throws:
java.sql.SQLException - if an error occurs retrieving data from the query

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.