@Immutable public final class CompositeOperation extends java.lang.Object implements Operation
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
void |
execute(java.sql.Connection connection,
BinderConfiguration configuration)
Executes the sequence of operations
|
int |
hashCode() |
static Operation |
sequenceOf(java.util.List<? extends Operation> operations)
Creates a new Operation containing all the given operations
|
static Operation |
sequenceOf(Operation... operations)
Creates a new Operation containing all the given operations
|
java.lang.String |
toString() |
public static Operation sequenceOf(@Nonnull Operation... operations)
operations - the sequence of operationspublic static Operation sequenceOf(@Nonnull java.util.List<? extends Operation> operations)
operations - the sequence of operationspublic void execute(java.sql.Connection connection, BinderConfiguration configuration) throws java.sql.SQLException
execute in interface Operationconnection - the connection used to execute the operationconfiguration - the binder configuration, used to get appropriate binders based on the metadata of
the prepared statementsjava.sql.SQLException - as soon as one of the operations in the sequence throws a SQLExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object