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, setTrimFunction
public InsertBatchQueryBuilder(DbAdapter adapter)
public void bindParameters(PreparedStatement statement, BatchQuery query) throws SQLException, Exception
bindParameters
in class BatchQueryBuilder
SQLException
Exception
public List<Object> getParameterValues(BatchQuery query)
getParameterValues
in class BatchQueryBuilder
public String createSqlString(BatchQuery batch) throws IOException
BatchQueryBuilder
createSqlString
in class BatchQueryBuilder
IOException
protected boolean includeInBatch(DbAttribute attribute)
Copyright © 2001–2018 Apache Cayenne. All rights reserved.