com.uwyn.rife.database
Class DbResultSetHandler
java.lang.Object
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
DbResultSetHandler
public DbResultSetHandler()
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.