Interface StatementDsl
-
- All Known Implementing Classes:
SqlDsl
public interface StatementDsl
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SequenceDsland()Close the current statementStatementDsld(String columnName, String printableValue)Add a value to insertList<InsertionDto>dtos()Build the DTOs (Data Transfer Object) from this DSL, closing it (ie, not usable any longer).StatementDslr(String columnName, long insertionId)
-
-
-
Method Detail
-
d
StatementDsl d(String columnName, String printableValue)
Add a value to insert- Parameters:
columnName- 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'"- Returns:
- the continuation of this statement, in which more values can be added
-
r
StatementDsl r(String columnName, long insertionId)
- Parameters:
columnName- 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).- Returns:
- the continuation of this statement, in which more values can be added
-
and
SequenceDsl and()
Close the current statement- Returns:
- the sequence object on which new SQL commands can be added
-
dtos
List<InsertionDto> dtos()
Build the DTOs (Data Transfer Object) from this DSL, closing it (ie, not usable any longer).- Returns:
- a list of DTOs representing all the insertion SQL commands defined in this DSL.
-
-