Class BaseBatchTranslator<T extends BatchQuery>
- java.lang.Object
-
- org.apache.cayenne.access.translator.batch.BaseBatchTranslator<T>
-
- Type Parameters:
T- type of the batch query to translate
- Direct Known Subclasses:
DeleteBatchTranslator,InsertBatchTranslator,UpdateBatchTranslator
public abstract class BaseBatchTranslator<T extends BatchQuery> extends Object
- Since:
- 4.2
-
-
Field Summary
Fields Modifier and Type Field Description protected DbAttributeBinding[]bindingsprotected org.apache.cayenne.access.translator.batch.BatchTranslatorContext<T>context
-
Constructor Summary
Constructors Constructor Description BaseBatchTranslator(T query, DbAdapter adapter)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected ExpressionNodeBuilderbuildQualifier(List<DbAttribute> attributeList)protected StringdoTranslate(NodeBuilder nodeBuilder)This method appliesBaseSQLTreeProcessorto the provided SQL tree node and generates SQL string from it.DbAttributeBinding[]getBindings()protected abstract booleanisNullAttribute(DbAttribute attribute)
-
-
-
Field Detail
-
context
protected final org.apache.cayenne.access.translator.batch.BatchTranslatorContext<T extends BatchQuery> context
-
bindings
protected DbAttributeBinding[] bindings
-
-
Method Detail
-
getBindings
public DbAttributeBinding[] getBindings()
-
doTranslate
protected String doTranslate(NodeBuilder nodeBuilder)
This method appliesBaseSQLTreeProcessorto the provided SQL tree node and generates SQL string from it.- Parameters:
nodeBuilder- SQL tree node builder- Returns:
- SQL string
-
isNullAttribute
protected abstract boolean isNullAttribute(DbAttribute attribute)
-
buildQualifier
protected ExpressionNodeBuilder buildQualifier(List<DbAttribute> attributeList)
-
-