|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drizzle.jdbc.internal.common.RewriteParameterizedBatchHandler
public class RewriteParameterizedBatchHandler
Rewrites queries on the form (INSERT INTO xyz (a,b,c) VALUES (?,?,?))* to INSERT INTO xyz (a,b,c) VALUES ((?,?,?),)*
| Constructor Summary | |
|---|---|
RewriteParameterizedBatchHandler(Protocol protocol,
java.lang.String baseQuery,
java.lang.String queryValuePart,
java.lang.String onDupKeyPart)
Constructs a new handler |
|
| Method Summary | |
|---|---|
void |
addToBatch(ParameterizedQuery query)
called when a set of parameters are added to a batch. |
int[] |
executeBatch()
execute the batch using protocol. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RewriteParameterizedBatchHandler(Protocol protocol,
java.lang.String baseQuery,
java.lang.String queryValuePart,
java.lang.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 query| Method Detail |
|---|
public void addToBatch(ParameterizedQuery query)
ParameterizedBatchHandler
addToBatch in interface ParameterizedBatchHandlerquery - the parameterized query.
public int[] executeBatch()
throws QueryException
ParameterizedBatchHandler
executeBatch in interface ParameterizedBatchHandlerQueryException - if something goes wrong executing the query.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||