/db-diff/src/main/java/com/googlecode/hdbc/dbdiff/db/IQueryDefinition.java

http://hdbc.googlecode.com/ · Java · 31 lines · 24 code · 7 blank · 0 comment · 0 complexity · 5f9d60026a0c9e949d022075a18ef120 MD5 · raw file

  1. package com.googlecode.hdbc.dbdiff.db;
  2. import java.sql.PreparedStatement;
  3. import java.sql.SQLException;
  4. import com.googlecode.hdbc.dbdiff.model.DbObjects;
  5. public interface IQueryDefinition<T> {
  6. enum Parameter {
  7. ONE,
  8. TWO,
  9. THREE,
  10. FOUR,
  11. FIVE,
  12. SIX,
  13. SEVEN,
  14. EIGHT,
  15. NINE,
  16. TEN;
  17. public int index() {
  18. return ordinal() + 1;
  19. }
  20. }
  21. String getParameterizedSQL();
  22. void processStatement(PreparedStatement stmt) throws SQLException;
  23. DbObjects<T> result();
  24. }