public class RewriteParameterizedBatchHandler extends Object implements ParameterizedBatchHandler
| Constructor and Description |
|---|
RewriteParameterizedBatchHandler(Protocol protocol,
String baseQuery,
String queryValuePart,
String onDupKeyPart)
Constructs a new handler
|
| 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.
|
public RewriteParameterizedBatchHandler(Protocol protocol, String baseQuery, String queryValuePart, String onDupKeyPart)
protocol - the protocol to use to send the query.baseQuery - the base of the query, i.e. everything including .*VALUESqueryValuePart - the value part (?,?..)onDupKeyPart - the duplicate key part of the querypublic void addToBatch(ParameterizedQuery query)
ParameterizedBatchHandleraddToBatch in interface ParameterizedBatchHandlerquery - the parameterized query.public int[] executeBatch()
throws QueryException
ParameterizedBatchHandlerexecuteBatch in interface ParameterizedBatchHandlerQueryException - if something goes wrong executing the query.Copyright © 2016. All rights reserved.