ccc.migration.ccc6.handlers
Class ResourceSelector

java.lang.Object
  extended by ccc.migration.ccc6.handlers.ResourceSelector
All Implemented Interfaces:
SqlQuery<java.util.List<ResourceBean>>, org.apache.commons.dbutils.ResultSetHandler

public final class ResourceSelector
extends java.lang.Object
implements SqlQuery<java.util.List<ResourceBean>>

A SQL query that retrieves CCC6 resources.

Author:
Civic Computing Ltd.

Constructor Summary
ResourceSelector()
           
 
Method Summary
 java.lang.String getSql()
          Accessor.
 java.util.List<ResourceBean> handle(java.sql.ResultSet rs)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceSelector

public ResourceSelector()
Method Detail

handle

public java.util.List<ResourceBean> handle(java.sql.ResultSet rs)
                                    throws java.sql.SQLException

Specified by:
handle in interface SqlQuery<java.util.List<ResourceBean>>
Specified by:
handle in interface org.apache.commons.dbutils.ResultSetHandler
Throws:
java.sql.SQLException

getSql

public java.lang.String getSql()
Accessor.

Specified by:
getSql in interface SqlQuery<java.util.List<ResourceBean>>
Returns:
The SQL for this query, as a string.


Copyright © 2010. All Rights Reserved.