public final class Operations extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
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 ... |
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