| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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 operations
public static Operation sequenceOf(@Nonnull
                                   java.util.List<? extends Operation> operations)
operations - the sequence of operations
public 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 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.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic 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 | ||||||||