|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.jpattern.orm.query.SqlExecutor
public class SqlExecutor
| Constructor Summary | |
|---|---|
SqlExecutor(ISessionSqlPerformer session)
|
|
| Method Summary | |
|---|---|
ISqlBatchUpdate |
batchUpdate(List<String> sqls)
Issue multiple SQL updates on a single JDBC Statement using batching. |
ISqlBatchUpdate |
batchUpdate(String sql,
IPreparedStatementCreator psc)
Issue multiple SQL updates on a single JDBC Statement using batching. |
ISqlBatchUpdate |
batchUpdate(String sql,
List<Object[]> args)
Issue multiple SQL updates on a single JDBC Statement using batching. |
ISqlExecute |
execute(String sql)
Issue a single SQL execute, typically a DDL statement. |
ISqlQuery |
query(String sql,
Object... args)
Perform a single SQL select operation. |
ISqlUpdate |
update(String sql,
IGeneratedKeyReader generatedKeyReader,
Object... args)
Issue an update statement using a PreparedStatementCreator to provide SQL and any required parameters. |
ISqlUpdate |
update(String sql,
Object... args)
Perform a single SQL update operation (such as an insert, update or delete statement). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SqlExecutor(ISessionSqlPerformer session)
| Method Detail |
|---|
public ISqlQuery query(String sql,
Object... args)
ISqlExecutor
query in interface ISqlExecutorsql - static SQL to executeargs - arguments to bind to the query
public ISqlExecute execute(String sql)
throws OrmException
ISqlExecutor
execute in interface ISqlExecutorsql - static SQL to execute
OrmException
public ISqlUpdate update(String sql,
Object... args)
throws OrmException
ISqlExecutor
update in interface ISqlExecutorsql - static SQL to executeargs - arguments to bind to the query
OrmException
public ISqlUpdate update(String sql,
IGeneratedKeyReader generatedKeyReader,
Object... args)
throws OrmException
ISqlExecutor
update in interface ISqlExecutorgeneratedKeyReader - IGeneratedKeyReader to read the generated key
OrmException
public ISqlBatchUpdate batchUpdate(List<String> sqls)
throws OrmException
ISqlExecutor
batchUpdate in interface ISqlExecutorOrmException
public ISqlBatchUpdate batchUpdate(String sql,
List<Object[]> args)
throws OrmException
ISqlExecutor
batchUpdate in interface ISqlExecutorsql - defining a List of SQL statements that will be executed.args - defining a List of Object arrays to bind to the query.
OrmException
public ISqlBatchUpdate batchUpdate(String sql,
IPreparedStatementCreator psc)
throws OrmException
ISqlExecutor
batchUpdate in interface ISqlExecutorsql - 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 | |||||||||