public class AddWriteIdsToMinHistoryCommand extends Object implements ParameterizedBatchCommand<Object[]>, ConditionalCommand
| Constructor and Description |
|---|
AddWriteIdsToMinHistoryCommand(long txnId,
Map<String,Long> minOpenWriteIds) |
| Modifier and Type | Method and Description |
|---|---|
String |
getParameterizedQueryString(DatabaseProduct databaseProduct)
The parameterized query string.
|
org.springframework.jdbc.core.ParameterizedPreparedStatementSetter<Object[]> |
getPreparedStatementSetter()
Implementations must return a
ParameterizedPreparedStatementSetter instance which will be
responsible for setting the parameter values for all the items in the batch |
List<Object[]> |
getQueryParameters()
A
List instance containing the required parameters for the query string. |
void |
onError(DatabaseProduct databaseProduct,
Exception e)
Called in case of execution error in order to notify this command about the failure
|
Function<Integer,Boolean> |
resultPolicy() |
boolean |
shouldBeUsed(DatabaseProduct databaseProduct)
Indicates if the command should be executed or not
|
public String getParameterizedQueryString(DatabaseProduct databaseProduct)
ParameterizedBatchCommandgetParameterizedQueryString in interface ParameterizedBatchCommand<Object[]>databaseProduct - A DatabaseProduct instance representing the type of the underlying HMS dabatabe.public List<Object[]> getQueryParameters()
ParameterizedBatchCommandList instance containing the required parameters for the query string.getQueryParameters in interface ParameterizedBatchCommand<Object[]>public org.springframework.jdbc.core.ParameterizedPreparedStatementSetter<Object[]> getPreparedStatementSetter()
ParameterizedBatchCommandParameterizedPreparedStatementSetter instance which will be
responsible for setting the parameter values for all the items in the batchgetPreparedStatementSetter in interface ParameterizedBatchCommand<Object[]>public Function<Integer,Boolean> resultPolicy()
resultPolicy in interface ParameterizedBatchCommand<Object[]>public boolean shouldBeUsed(DatabaseProduct databaseProduct)
ConditionalCommandshouldBeUsed in interface ConditionalCommandpublic void onError(DatabaseProduct databaseProduct, Exception e)
ConditionalCommandonError in interface ConditionalCommande - The caught ExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.