com.uwyn.rife.database
Class DbResultSetHandler

java.lang.Object
  extended by com.uwyn.rife.database.DbResultSetHandler
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
DbPreparedStatementHandler

public abstract class DbResultSetHandler
extends Object
implements Cloneable

By extending this class it's possible to easily customize the behaviour of some methods in the DbQueryManager class.

You're able to perform custom logic with the resultset of a query by overriding the concludeResults method and returning an object.

You're not supposed to close the resultset in this method.

Since:
1.0
Version:
$Revision: 3634 $
Author:
Geert Bevin (gbevin[remove] at uwyn dot com)
See Also:
DbResultSet, DbQueryManager

Constructor Summary
DbResultSetHandler()
           
 
Method Summary
 Object clone()
          Simply clones the instance with the default clone method since this class contains no member variables.
 Object concludeResults(DbResultSet resultset)
           
 DbStatement createStatement(DbConnection connection)
           
 DbPreparedStatement getPreparedStatement(Query query, DbConnection connection)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbResultSetHandler

public DbResultSetHandler()
Method Detail

createStatement

public DbStatement createStatement(DbConnection connection)

getPreparedStatement

public DbPreparedStatement getPreparedStatement(Query query,
                                                DbConnection connection)

concludeResults

public Object concludeResults(DbResultSet resultset)
                       throws SQLException
Throws:
SQLException

clone

public Object clone()
Simply clones the instance with the default clone method since this class contains no member variables.

Overrides:
clone in class Object
Since:
1.0


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.