📄 i_resultcb.java
字号:
/*------------------------------------------------------------------------------Name: TestResultSetToXmlConverter.javaProject: org.xmlBlasterProject: xmlBlaster.orgCopyright: xmlBlaster.org, see xmlBlaster-LICENSE file------------------------------------------------------------------------------*/package org.xmlBlaster.contrib.db;import java.sql.Connection;import java.sql.ResultSet;/** * Interface to receive the ResultSet for a SELECT execution. * <p>Example usage:</p> * <pre>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 } }}); * </pre> * @author Marcel Ruff */public interface I_ResultCb { /** * Callback with the ResultSet. * @param rs The current ResultSet, is null if table or view does not exist * @throws Exception Can be of any type */ void result(Connection conn, ResultSet rs) throws Exception;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -