Class InsertBatchTranslator
java.lang.Object
org.apache.cayenne.access.translator.batch.BaseBatchTranslator<InsertBatchQuery>
org.apache.cayenne.access.translator.batch.InsertBatchTranslator
- All Implemented Interfaces:
- BatchTranslator
public class InsertBatchTranslator
extends BaseBatchTranslator<InsertBatchQuery>
implements BatchTranslator
- Since:
- 4.2
- 
Field SummaryFields inherited from class org.apache.cayenne.access.translator.batch.BaseBatchTranslatorbindings, context
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanexcludeInBatch(DbAttribute attribute) getSql()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 org.apache.cayenne.access.translator.batch.BaseBatchTranslatorbuildQualifier, doTranslate, getBindingsMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cayenne.access.translator.batch.BatchTranslatorgetBindings
- 
Constructor Details- 
InsertBatchTranslator
 
- 
- 
Method Details- 
getSqlDescription copied from interface:BatchTranslatorReturns SQL String that can be used to init a PreparedStatement.- Specified by:
- getSqlin interface- BatchTranslator
 
- 
updateBindingsDescription 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 interface- BatchTranslator
 
- 
excludeInBatch
- 
isNullAttribute- Specified by:
- isNullAttributein class- BaseBatchTranslator<InsertBatchQuery>
 
 
-