1. /**
  2. * Copyright: Copyright (c) 2005-2005
  3. * Company: JavaResearch(http://www.javaresearch.org)
  4. */
  5. package org.javaresearch.jerch;
  6. import java.sql.SQLException;
  7. import java.sql.Statement;
  8. /**
  9. * Statement回调接口定义。
  10. * 最后更新日期:2005年3月28日
  11. * @author cherami
  12. */
  13. public interface StatementCallback {
  14. /**
  15. * 定义Statement中的执行内容。
  16. * @param stmt Statement
  17. * @return 执行的结果
  18. * @throws SQLException
  19. */
  20. public Object doInStatement(Statement stmt) throws SQLException;
  21. }