/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
- package com.googlecode.hdbc.dbdiff.db;
-
- import java.sql.PreparedStatement;
- import java.sql.SQLException;
-
- import com.googlecode.hdbc.dbdiff.model.DbObjects;
-
- public interface IQueryDefinition<T> {
-
- enum Parameter {
- ONE,
- TWO,
- THREE,
- FOUR,
- FIVE,
- SIX,
- SEVEN,
- EIGHT,
- NINE,
- TEN;
- public int index() {
- return ordinal() + 1;
- }
- }
-
- String getParameterizedSQL();
-
- void processStatement(PreparedStatement stmt) throws SQLException;
-
- DbObjects<T> result();
- }