Class UpdateBatchTranslator
java.lang.Object
org.apache.cayenne.access.translator.batch.BaseBatchTranslator<UpdateBatchQuery>
org.apache.cayenne.access.translator.batch.UpdateBatchTranslator
- All Implemented Interfaces:
BatchTranslator
public class UpdateBatchTranslator
extends BaseBatchTranslator<UpdateBatchQuery>
implements BatchTranslator
- Since:
- 4.2
-
Field Summary
Fields inherited from class BaseBatchTranslator
bindings, contextModifier and TypeFieldDescriptionprotected DbAttributeBinding[]protected final org.apache.cayenne.access.translator.batch.BatchTranslatorContext<UpdateBatchQuery> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSql()Returns SQL String that can be used to init a PreparedStatement.protected booleanisNullAttribute(DbAttribute attribute) Updates internal bindings to be used with a given row, returning updated bindings array.Methods inherited from class BaseBatchTranslator
buildQualifier, doTranslate, getBindingsModifier and TypeMethodDescriptionprotected ExpressionNodeBuilderbuildQualifier(List<DbAttribute> attributeList) protected StringdoTranslate(NodeBuilder nodeBuilder) This method appliesBaseSQLTreeProcessorto the provided SQL tree node and generates SQL string from it.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BatchTranslator
getBindingsModifier and TypeMethodDescriptionReturns the widest possible array of bindings for this query.
-
Constructor Details
-
UpdateBatchTranslator
-
-
Method Details
-
getSql
Description copied from interface:BatchTranslatorReturns SQL String that can be used to init a PreparedStatement.- Specified by:
getSqlin interfaceBatchTranslator
-
isNullAttribute
- Specified by:
isNullAttributein classBaseBatchTranslator<UpdateBatchQuery>
-
updateBindings
Description copied from interface:BatchTranslatorUpdates internal bindings to be used with a given row, returning updated bindings array. This method guarantees that the returned array contains the same bindings in the same order as in the array returned fromBatchTranslator.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.- Specified by:
updateBindingsin interfaceBatchTranslator
-