Interface BatchTranslator<T extends BatchQuery>
- Type Parameters:
T- type of the batch query to translate
- All Known Implementing Classes:
BaseBatchTranslator, DeleteBatchTranslator, InsertBatchTranslator, UpdateBatchTranslator
public interface BatchTranslator<T extends BatchQuery>
A stateless service that translates a batch query of type
T into an immutable
TranslatedBatch. Each batch query flavor (insert, update, delete) is handled by its own
translator, configured individually in the DI container under the INSERT, UPDATE
and DELETE binding names.- Since:
- 4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDI binding name of the translator forDeleteBatchQuery.static final StringDI binding name of the translator forInsertBatchQuery.static final StringDI binding name of the translator forUpdateBatchQuery. -
Method Summary
Modifier and TypeMethodDescriptionTranslates the provided batch query into an immutableTranslatedBatch.
-
Field Details
-
INSERT
DI binding name of the translator forInsertBatchQuery.- Since:
- 5.0
- See Also:
-
UPDATE
DI binding name of the translator forUpdateBatchQuery.- Since:
- 5.0
- See Also:
-
DELETE
DI binding name of the translator forDeleteBatchQuery.- Since:
- 5.0
- See Also:
-
-
Method Details
-
translate
Translates the provided batch query into an immutableTranslatedBatch.- Since:
- 5.0
-