public class SoftDeleteBatchTranslator extends DeleteBatchTranslator
bindings, context
Constructor and Description |
---|
SoftDeleteBatchTranslator(DeleteBatchQuery query,
DbAdapter adapter,
String deletedFieldName) |
Modifier and Type | Method and Description |
---|---|
String |
getSql()
Returns SQL String that can be used to init a PreparedStatement.
|
DbAttributeBinding[] |
updateBindings(BatchQueryRow row)
Updates internal bindings to be used with a given row, returning updated
bindings array.
|
isNullAttribute, updateBinding
buildQualifier, doTranslate, getBindings
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBindings
public SoftDeleteBatchTranslator(DeleteBatchQuery query, DbAdapter adapter, String deletedFieldName)
public String getSql()
BatchTranslator
getSql
in interface BatchTranslator
getSql
in class DeleteBatchTranslator
public DbAttributeBinding[] updateBindings(BatchQueryRow row)
BatchTranslator
BatchTranslator.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 BatchTranslator
updateBindings
in class DeleteBatchTranslator
Copyright © 2001–2021 Apache Cayenne. All rights reserved.