public interface ParameterizedBatchHandler
if(connection.isWrapperFor(DrizzleConnection.class)) { DrizzleConnection
dc = connection.unwrap(DrizzleConnection.class); dc.setBatchQueryHandler(VerrrryFastBatchHandler.class); } Note:
implementations currently need a default no-args constructor. | Modifier and Type | Method and Description |
|---|---|
void |
addToBatch(ParameterizedQuery query)
called when a set of parameters are added to a batch.
|
int[] |
executeBatch()
execute the batch using protocol.
|
void addToBatch(ParameterizedQuery query)
query - the parameterized query.int[] executeBatch()
throws QueryException
QueryException - if something goes wrong executing the query.Copyright © 2016. All rights reserved.