|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ParameterizedBatchHandler
Interface that defines a parameterized batch handler. Implement this interface and set it as a parameterized batch
handler on the connection like this: if(connection.isWrapperFor(DrizzleConnection.class)) { DrizzleConnection
dc = connection.unwrap(DrizzleConnection.class); dc.setBatchQueryHandler(VerrrryFastBatchHandler.class); } Note:
implementations currently need a default no-args constructor.
| Method Summary | |
|---|---|
void |
addToBatch(ParameterizedQuery query)
called when a set of parameters are added to a batch. |
int[] |
executeBatch()
execute the batch using protocol. |
| Method Detail |
|---|
void addToBatch(ParameterizedQuery query)
query - the parameterized query.
int[] executeBatch()
throws QueryException
QueryException - if something goes wrong executing the query.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||