|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ISqlPerformer
| Method Summary | ||
|---|---|---|
int[] |
batchUpdate(List<String> sqls)
Issue multiple SQL updates on a single JDBC Statement using batching. |
|
int[] |
batchUpdate(String sql,
IPreparedStatementCreator psc)
Issue multiple SQL updates on a single JDBC Statement using batching. |
|
int[] |
batchUpdate(String sql,
List<Object[]> args)
Issue multiple SQL updates on a single JDBC Statement using batching. |
|
void |
execute(String sql)
Issue a single SQL execute, typically a DDL statement. |
|
int |
getMaxRows()
Return the maximum number of rows specified for this sql query. |
|
int |
getQueryTimeout()
Return the query timeout for the statements. |
|
|
query(String sql,
IResultSetReader<T> rse,
Object... args)
Execute a query given static SQL, reading the ResultSet with a IResultSetReader. |
|
Object[] |
queryForArray(String sql,
Object... args)
Execute a query given static SQL and read the result creating an ordered array with the extracted column values (return null if no rows are returned) |
|
BigDecimal |
queryForBigDecimal(String sql,
Object... args)
Execute a query given static SQL and read the result as a BigDecimal value (return null if no rows are returned) |
|
Boolean |
queryForBoolean(String sql,
Object... args)
Execute a query given static SQL and read the result as a boolean value (return null if no rows are returned) |
|
Double |
queryForDouble(String sql,
Object... args)
Execute a query given static SQL and read the result as a double value (return null if no rows are returned) |
|
Float |
queryForFloat(String sql,
Object... args)
Execute a query given static SQL and read the result as a float value (return null if no rows are returned) |
|
Integer |
queryForInt(String sql,
Object... args)
Execute a query given static SQL and read the result as an int value (return null if no rows are returned) |
|
List<Object[]> |
queryForList(String sql,
Object... args)
Execute a query given static SQL and read the result creating a List of all the ordered arrays with the extracted column values for every row. |
|
Long |
queryForLong(String sql,
Object... args)
Execute a query given static SQL and read the result as an long value (return null if no rows are returned) |
|
String |
queryForString(String sql,
Object... args)
Execute a query given static SQL and read the result as a String value (return null if no rows are returned) |
|
void |
setMaxRows(int maxRows)
Set the maximum number of rows returnd by the execution of the sql query |
|
void |
setQueryTimeout(int queryTimeout)
Set the query timeout for the statements. |
|
int |
update(String sql,
IGeneratedKeyReader generatedKeyReader,
Object... args)
Issue an update statement using a PreparedStatementCreator to provide SQL and any required parameters. |
|
int |
update(String sql,
Object... args)
Perform a single SQL update operation (such as an insert, update or delete statement). |
|
| Method Detail |
|---|
void setMaxRows(int maxRows)
int getMaxRows()
void setQueryTimeout(int queryTimeout)
int getQueryTimeout()
void execute(String sql)
throws OrmException
sql - static SQL to execute
OrmException
<T> T query(String sql,
IResultSetReader<T> rse,
Object... args)
throws OrmException
sql - SQL query to executerse - object that will extract all rows of resultsargs - arguments to bind to the query
OrmException
Integer queryForInt(String sql,
Object... args)
throws OrmException,
OrmNotUniqueResultException
sql - SQL query to executeargs - arguments to bind to the query
OrmNotUniqueResultException - if more than one row is returned from the query
OrmException
Long queryForLong(String sql,
Object... args)
throws OrmException,
OrmNotUniqueResultException
sql - SQL query to executeargs - arguments to bind to the query
OrmNotUniqueResultException - if more than one row is returned from the query
OrmException
Double queryForDouble(String sql,
Object... args)
throws OrmException,
OrmNotUniqueResultException
sql - SQL query to executeargs - arguments to bind to the query
OrmNotUniqueResultException - if more than one row is returned from the query
OrmException
Float queryForFloat(String sql,
Object... args)
throws OrmException,
OrmNotUniqueResultException
sql - SQL query to executeargs - arguments to bind to the query
OrmNotUniqueResultException - if more than one row is returned from the query
OrmException
String queryForString(String sql,
Object... args)
throws OrmException,
OrmNotUniqueResultException
sql - SQL query to executeargs - arguments to bind to the query
OrmNotUniqueResultException - if more than one row is returned from the query
OrmException
Boolean queryForBoolean(String sql,
Object... args)
throws OrmException,
OrmNotUniqueResultException
sql - SQL query to executeargs - arguments to bind to the query
OrmNotUniqueResultException - if more than one row is returned from the query
OrmException
BigDecimal queryForBigDecimal(String sql,
Object... args)
throws OrmException,
OrmNotUniqueResultException
sql - SQL query to executeargs - arguments to bind to the query
OrmNotUniqueResultException - if more than one row is returned from the query
OrmException
Object[] queryForArray(String sql,
Object... args)
throws OrmException,
OrmNotUniqueResultException
sql - SQL query to executeargs - arguments to bind to the query
OrmNotUniqueResultException - if more than one row is returned from the query
OrmException
List<Object[]> queryForList(String sql,
Object... args)
throws OrmException
sql - SQL query to executeargs - arguments to bind to the query
OrmException
int update(String sql,
Object... args)
throws OrmException
sql - static SQL to executeargs - arguments to bind to the query
OrmException
int update(String sql,
IGeneratedKeyReader generatedKeyReader,
Object... args)
throws OrmException
psc - object that provides SQL and any necessary parametersgeneratedKeyReader - IGeneratedKeyReader to read the generated key
OrmException
int[] batchUpdate(List<String> sqls)
throws OrmException
sql - defining a List of SQL statements that will be executed.
OrmException
int[] batchUpdate(String sql,
List<Object[]> args)
throws OrmException
sql - defining a List of SQL statements that will be executed.args - defining a List of Object arrays to bind to the query.
OrmException
int[] batchUpdate(String sql,
IPreparedStatementCreator psc)
throws OrmException
sql - defining a List of SQL statements that will be executed.psc - the creator to bind values on the PreparedStatement
OrmException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||