|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ninja_squad.dbsetup.operation.CompositeOperation
@Immutable public final class CompositeOperation
A composite operation or, in other words, an operation which consists in executing a sequence of other operations.
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
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 Operation
connection
- the connection used to execute the operationconfiguration
- the binder configuration, used to get appropriate binders based on the metadata of
the prepared statements
java.sql.SQLException
- as soon as one of the operations in the sequence throws a SQLExceptionpublic java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |