public class SqlDsl extends Object implements SequenceDsl, StatementDsl
| Modifier and Type | Method and Description |
|---|---|
SequenceDsl |
and()
Close the current statement
|
StatementDsl |
d(String columnName,
String printableValue)
Add a value to insert
|
List<InsertionDto> |
dtos()
Build the DTOs (Data Transfer Object) from this DSL,
closing it (ie, not usable any longer).
|
StatementDsl |
insertInto(String tableName,
Long id)
An insertion operation on the SQL Database (DB)
|
StatementDsl |
r(String columnName,
long insertionId) |
static SequenceDsl |
sql() |
static SequenceDsl |
sql(List<InsertionDto>... previous) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinsertIntopublic static SequenceDsl sql()
public static SequenceDsl sql(List<InsertionDto>... previous)
previous - a DSL object which is executed in the front of thispublic StatementDsl insertInto(String tableName, Long id)
SequenceDslinsertInto in interface SequenceDsltableName - the target table in the DBid - an id for this insertion. Can be null.public StatementDsl d(String columnName, String printableValue)
StatementDsld in interface StatementDslcolumnName - name of column in the tableprintableValue - the value that is going to be inserted, as
it would be printed as string.
This means that 5 is represented with "5",
whereas "5" with "'5'"public StatementDsl r(String columnName, long insertionId)
r in interface StatementDslcolumnName - name of column in the tableinsertionId - id of an insertion operation done previously.
This field represents a foreign key to that row,
where the primary key is dynamically computed by
the database (eg, auto-increment).public SequenceDsl and()
StatementDsland in interface StatementDslpublic List<InsertionDto> dtos()
StatementDsldtos in interface StatementDslCopyright © 2016–2024. All rights reserved.