Class DefaultBatchTranslator
java.lang.Object
org.apache.cayenne.access.translator.batch.legacy.DefaultBatchTranslator
- All Implemented Interfaces:
BatchTranslator
- Direct Known Subclasses:
DeleteBatchTranslator
,InsertBatchTranslator
,UpdateBatchTranslator
Deprecated.
since 4.2
Superclass of batch query translators.
- Since:
- 4.0
-
Field Summary
Modifier and TypeFieldDescriptionprotected DbAdapter
Deprecated.protected DbAttributeBinding[]
Deprecated.protected BatchQuery
Deprecated.protected String
Deprecated.protected boolean
Deprecated.protected String
Deprecated. -
Constructor Summary
ConstructorDescriptionDefaultBatchTranslator
(BatchQuery query, DbAdapter adapter, String trimFunction) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
appendDbAttribute
(StringBuilder buf, DbAttribute dbAttribute) Deprecated.Appends the name of the column to the query buffer.protected abstract DbAttributeBinding[]
Deprecated.protected abstract String
Deprecated.protected abstract DbAttributeBinding[]
Deprecated.protected void
Deprecated.Deprecated.Returns the widest possible array of bindings for this query.getSql()
Deprecated.Translates BatchQuery into an SQL string formatted to use in a PreparedStatement.Deprecated.Updates internal bindings to be used with a given row, returning updated bindings array.
-
Field Details
-
query
Deprecated. -
adapter
Deprecated. -
trimFunction
Deprecated. -
translated
protected boolean translatedDeprecated. -
sql
Deprecated. -
bindings
Deprecated.
-
-
Constructor Details
-
DefaultBatchTranslator
Deprecated.
-
-
Method Details
-
ensureTranslated
protected void ensureTranslated()Deprecated. -
getSql
Deprecated.Translates BatchQuery into an SQL string formatted to use in a PreparedStatement.- Specified by:
getSql
in interfaceBatchTranslator
-
getBindings
Deprecated.Description copied from interface:BatchTranslator
Returns the widest possible array of bindings for this query.- Specified by:
getBindings
in interfaceBatchTranslator
-
updateBindings
Deprecated.Description copied from interface:BatchTranslator
Updates 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:
updateBindings
in interfaceBatchTranslator
-
createSql
Deprecated. -
createBindings
Deprecated. -
doUpdateBindings
Deprecated. -
appendDbAttribute
Deprecated.Appends the name of the column to the query buffer. Subclasses use this method to append column names in the WHERE clause, i.e. for the columns that are not being updated.
-