public class InsertBatchTranslator extends BaseBatchTranslator<InsertBatchQuery> implements BatchTranslator
bindings, context| Constructor and Description |
|---|
InsertBatchTranslator(InsertBatchQuery query,
DbAdapter adapter) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
excludeInBatch(DbAttribute attribute) |
String |
getSql()
Returns SQL String that can be used to init a PreparedStatement.
|
protected boolean |
isNullAttribute(DbAttribute attribute) |
DbAttributeBinding[] |
updateBindings(BatchQueryRow row)
Updates internal bindings to be used with a given row, returning updated
bindings array.
|
buildQualifier, doTranslate, getBindingsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBindingspublic InsertBatchTranslator(InsertBatchQuery query, DbAdapter adapter)
public String getSql()
BatchTranslatorgetSql in interface BatchTranslatorpublic DbAttributeBinding[] updateBindings(BatchQueryRow row)
BatchTranslatorBatchTranslator.getBindings() (but in a state corresponding to the 'row'
parameter). Usually the returned array is actually the same object reused
for every iteration, only with changed object state.updateBindings in interface BatchTranslatorprotected boolean excludeInBatch(DbAttribute attribute)
protected boolean isNullAttribute(DbAttribute attribute)
isNullAttribute in class BaseBatchTranslator<InsertBatchQuery>Copyright © 2001–2021 Apache Cayenne. All rights reserved.