com.acsinet_solutions.cetia4.data
Class PagedResultSetFactory

java.lang.Object
  extended by com.acsinet_solutions.cetia4.data.PagedResultSetFactory

public final class PagedResultSetFactory
extends java.lang.Object

A factory for result sets paged according to a search filter. It wraps the original ResultSet in a proxy that performs the paging. The original query is iterated up to the values specified by the provided search filter.

Author:
Santiago Arriaga - santiago.arriaga@acsinet-solutions.com

Constructor Summary
PagedResultSetFactory()
           
 
Method Summary
static java.sql.ResultSet getResultSet(java.sql.ResultSet wrappedResultSet, PagedSearchFilter filter)
          Get a paging-enabled result set that works according to the given input search filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PagedResultSetFactory

public PagedResultSetFactory()
Method Detail

getResultSet

public static java.sql.ResultSet getResultSet(java.sql.ResultSet wrappedResultSet,
                                              PagedSearchFilter filter)
                                       throws java.sql.SQLException
Get a paging-enabled result set that works according to the given input search filter.

Throws:
java.sql.SQLException