public interface ConditionalCommand
ParameterizedCommand. ParameterizedBatchCommand, and InClauseBatchCommand implementations can also
implement this interface, marking that the execution is conditial, and the command wants to get notified about
execution errors. Can be used to implement commands depending on some feature flag(s).| Modifier and Type | Method and Description |
|---|---|
void |
onError(DatabaseProduct databaseProduct,
Exception e)
Called in case of execution error in order to notify this command about the failure
|
boolean |
shouldBeUsed(DatabaseProduct databaseProduct)
Indicates if the command should be executed or not
|
boolean shouldBeUsed(DatabaseProduct databaseProduct)
databaseProduct - void onError(DatabaseProduct databaseProduct, Exception e)
databaseProduct - e - The caught ExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.