|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SQLExecutor
The SQLExecutor is the object sending the query to the remote database server and using a callback interface to process the result. This query will take care of creating Statements and ResultSets and make sure to close everything when done. This object is most frequently used through the sub-interface DatabaseTransaction or AutoExecutor.
DatabaseTransaction,
AutoExecutor| Method Summary | |
|---|---|
void |
batchWrite(BatchUpdateHandler handler,
List<String> batchedSQL)
Executes a list of queries as one batch on the remote database server |
void |
batchWrite(BatchUpdateHandler handler,
String SQL,
List<Object[]> parameters)
Executes a batch query where the SQL is structurally the same but parameters are different. |
void |
execute(ExecuteResultHandler handler,
String SQL,
Object... parameters)
Sends a query to the database and handles any results through a callback interface |
| Method Detail |
|---|
void execute(ExecuteResultHandler handler,
String SQL,
Object... parameters)
throws SQLException
handler - Callback interface to use for any results of the querySQL - SQL code to send to the database server, use ? for parameter substitutionparameters - List of parameters to insert into the query, must be one for every ? used
SQLException
void batchWrite(BatchUpdateHandler handler,
List<String> batchedSQL)
throws SQLException
handler - Callback interface to use for any results of the querybatchedSQL - List of SQL to send to the remote server
SQLException
void batchWrite(BatchUpdateHandler handler,
String SQL,
List<Object[]> parameters)
throws SQLException
handler - Callback interface to use for any results of the querySQL - SQL to use for all queries, use ? for the parameter substitutionparameters - List of object arrays, where one array equals one query sent to the server
SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||