| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ninja_squad.dbsetup.Operations
public final class Operations
A static factory class for operations. Static import of this class can help make the code more readable.
| Method Summary | |
|---|---|
static Operation | 
deleteAllFrom(java.util.List<java.lang.String> tables)
Creates a sequence of delete from ... | 
static Operation | 
deleteAllFrom(java.lang.String... tables)
Creates a sequence of delete from table operations. | 
static DeleteAll | 
deleteAllFrom(java.lang.String table)
Creates a delete from table operation. | 
static Insert.Builder | 
insertInto(java.lang.String table)
Creates a builder for a sequence of insert operations.  | 
static Operation | 
sequenceOf(java.util.List<? extends Operation> operations)
Creates a sequence of operations.  | 
static Operation | 
sequenceOf(Operation... operations)
Creates a sequence of operations.  | 
static Operation | 
sql(java.util.List<java.lang.String> sqlStatements)
Creates a sequence of SQL operations.  | 
static Operation | 
sql(java.lang.String... sqlStatements)
Creates a sequence of SQL operations.  | 
static SqlOperation | 
sql(java.lang.String sqlStatement)
Creates a SQL operation.  | 
static Operation | 
truncate(java.util.List<java.lang.String> tables)
Creates a sequence of truncate table ... | 
static Operation | 
truncate(java.lang.String... tables)
Creates a sequence of truncate table ... | 
static Truncate | 
truncate(java.lang.String table)
Creates a truncate table ... | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static DeleteAll deleteAllFrom(@Nonnull
                                      java.lang.String table)
delete from table operation.
table - the table to delete all fromDeleteAll
public static Operation deleteAllFrom(@Nonnull
                                      java.lang.String... tables)
delete from table operations.
tables - the tables to delete all fromDeleteAll
public static Operation deleteAllFrom(@Nonnull
                                      java.util.List<java.lang.String> tables)
delete from ... operations.
tables - the tables to delete all fromDeleteAll
public static Truncate truncate(@Nonnull
                                java.lang.String table)
truncate table ... operation.
table - the table to truncateTruncate
public static Operation truncate(@Nonnull
                                 java.lang.String... tables)
truncate table ... operations.
tables - the tables to truncateTruncate
public static Operation truncate(@Nonnull
                                 java.util.List<java.lang.String> tables)
truncate table ... operations.
tables - the tables to truncateTruncate
public static SqlOperation sql(@Nonnull
                               java.lang.String sqlStatement)
sqlStatement - the SQL statement to execute (using Statement.executeUpdate(String))SqlOperation
public static Operation sql(@Nonnull
                            java.lang.String... sqlStatements)
sqlStatements - the SQL statements to execute (using Statement.executeUpdate(String))SqlOperation
public static Operation sql(@Nonnull
                            java.util.List<java.lang.String> sqlStatements)
sqlStatements - the SQL statements to execute (using Statement.executeUpdate(String))SqlOperation
public static Insert.Builder insertInto(@Nonnull
                                        java.lang.String table)
table - the table to insert intoInsert
public static Operation sequenceOf(@Nonnull
                                   Operation... operations)
operations - the operations to put in a sequenceCompositeOperation
public static Operation sequenceOf(@Nonnull
                                   java.util.List<? extends Operation> operations)
operations - the operations to put in a sequenceCompositeOperation
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||