Interface StatementDsl

All Known Implementing Classes:
SqlDsl

public interface StatementDsl
  • Method Summary

    Modifier and Type
    Method
    Description
    and()
    Close the current statement
    d(String columnName, String printableValue)
    Add a value to insert
    Build the DTOs (Data Transfer Object) from this DSL, closing it (ie, not usable any longer).
    r(String columnName, long insertionId)
     
  • Method Details

    • d

      StatementDsl d(String columnName, String printableValue)
      Add a value to insert
      Parameters:
      columnName - name of column in the table
      printableValue - 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 table
      insertionId - 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

      Close the current statement
      Returns:
      the sequence object on which new SQL commands can be added
    • 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.