IStatement.java 697 B

123456789101112131415161718192021
  1. package me.km.databank;
  2. import java.sql.ResultSet;
  3. import java.sql.SQLException;
  4. public interface IStatement extends AutoCloseable
  5. {
  6. public void validate() throws SQLException;
  7. @Override
  8. public void close() throws SQLException;
  9. public void setInt(int index, int i) throws SQLException;
  10. public void setLong(int index, long l) throws SQLException;
  11. public void setFloat(int index, float f) throws SQLException;
  12. public void setDouble(int index, double d) throws SQLException;
  13. public void setString(int index, String s) throws SQLException;
  14. public ResultSet executeQuery() throws SQLException;
  15. public void executeUpdate() throws SQLException;
  16. }