public abstract class QueryStatement<T> extends java.lang.Object implements Query<T>
Constructor and Description |
---|
QueryStatement(java.lang.String sql) |
QueryStatement(java.lang.String sql,
int fetchSize) |
Modifier and Type | Method and Description |
---|---|
T |
executeQuery(java.sql.PreparedStatement statement) |
T |
executeQuery(SQLDB db) |
java.lang.String |
getSql() |
abstract void |
prepare(java.sql.PreparedStatement statement) |
abstract T |
processResults(java.sql.ResultSet set) |
java.lang.String |
toString() |
public QueryStatement(java.lang.String sql)
public QueryStatement(java.lang.String sql, int fetchSize)
public T executeQuery(SQLDB db)
executeQuery
in interface Query<T>
public T executeQuery(java.sql.PreparedStatement statement) throws java.sql.SQLException
java.sql.SQLException
public abstract void prepare(java.sql.PreparedStatement statement) throws java.sql.SQLException
java.sql.SQLException
public abstract T processResults(java.sql.ResultSet set) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getSql()
public java.lang.String toString()
toString
in class java.lang.Object