public class InsertBatchQueryBuilder extends BatchQueryBuilder
adapter, trimFunction| Constructor and Description |
|---|
InsertBatchQueryBuilder(DbAdapter adapter) |
| Modifier and Type | Method and Description |
|---|---|
void |
bindParameters(PreparedStatement statement,
BatchQuery query)
Binds parameters for the current batch iteration to the PreparedStatement.
|
String |
createSqlString(BatchQuery batch)
Translates BatchQuery into an SQL string formatted to use in a PreparedStatement.
|
List<Object> |
getParameterValues(BatchQuery query)
Returns a list of values for the current batch iteration.
|
protected boolean |
includeInBatch(DbAttribute attribute)
Returns true if an attribute should be included in the batch.
|
appendDbAttribute, getAdapter, getTrimFunction, setAdapter, setTrimFunctionpublic InsertBatchQueryBuilder(DbAdapter adapter)
public void bindParameters(PreparedStatement statement, BatchQuery query) throws SQLException, Exception
bindParameters in class BatchQueryBuilderSQLExceptionExceptionpublic List<Object> getParameterValues(BatchQuery query)
getParameterValues in class BatchQueryBuilderpublic String createSqlString(BatchQuery batch) throws IOException
BatchQueryBuildercreateSqlString in class BatchQueryBuilderIOExceptionprotected boolean includeInBatch(DbAttribute attribute)
Copyright © 2001–2018 Apache Cayenne. All rights reserved.