xmlBlaster 2.2.0 contributions API

org.xmlBlaster.contrib.db
Interface I_ResultCb

All Known Implementing Classes:
RsToSqlInfo

public interface I_ResultCb

Interface to receive the ResultSet for a SELECT execution.

Example usage:

this.dbPool.select("SELECT * FROM A", new I_ResultCb() {
   public void result(ResultSet rs) throws Exception {
      while (rs != null && rs.next()) {
         ... // Process the query results
      }
   }
});
 

Author:
Marcel Ruff

Method Summary
 void result(java.sql.Connection conn, java.sql.ResultSet rs)
          Callback with the ResultSet.
 

Method Detail

result

void result(java.sql.Connection conn,
            java.sql.ResultSet rs)
            throws java.lang.Exception
Callback with the ResultSet.

Parameters:
rs - The current ResultSet, is null if table or view does not exist
Throws:
java.lang.Exception - Can be of any type

xmlBlaster 2.2.0 contributions API

Copyright © 1999-2014 The xmlBlaster.org contributers.