PageRenderTime 19ms CodeModel.GetById 16ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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