Class DefaultBatchTranslator
java.lang.Object
org.apache.cayenne.access.translator.batch.legacy.DefaultBatchTranslator
- All Implemented Interfaces:
- BatchTranslator
@Deprecated(since="4.2")
public abstract class DefaultBatchTranslator
extends Object
implements BatchTranslator
Deprecated.
since 4.2
Superclass of batch query translators.
- Since:
- 4.0
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected DbAdapterDeprecated.protected DbAttributeBinding[]Deprecated.protected BatchQueryDeprecated.protected StringDeprecated.protected booleanDeprecated.protected StringDeprecated.
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultBatchTranslator(BatchQuery query, DbAdapter adapter, String trimFunction) Deprecated.
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidappendDbAttribute(StringBuilder buf, DbAttribute dbAttribute) Deprecated.Appends the name of the column to the query buffer.protected abstract DbAttributeBinding[]Deprecated.protected abstract StringDeprecated.protected abstract DbAttributeBinding[]Deprecated.protected voidDeprecated.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- 
queryDeprecated.
- 
adapterDeprecated.
- 
trimFunctionDeprecated.
- 
translatedprotected boolean translatedDeprecated.
- 
sqlDeprecated.
- 
bindingsDeprecated.
 
- 
- 
Constructor Details- 
DefaultBatchTranslatorDeprecated.
 
- 
- 
Method Details- 
ensureTranslatedprotected void ensureTranslated()Deprecated.
- 
getSqlDeprecated.Translates BatchQuery into an SQL string formatted to use in a PreparedStatement.- Specified by:
- getSqlin interface- BatchTranslator
 
- 
getBindingsDeprecated.Description copied from interface:BatchTranslatorReturns the widest possible array of bindings for this query.- Specified by:
- getBindingsin interface- BatchTranslator
 
- 
updateBindingsDeprecated.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 interface- BatchTranslator
 
- 
createSqlDeprecated.
- 
createBindingsDeprecated.
- 
doUpdateBindingsDeprecated.
- 
appendDbAttributeDeprecated.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.
 
-