Class SqlDsl
java.lang.Object
org.evomaster.client.java.sql.dsl.SqlDsl
- All Implemented Interfaces:
SequenceDsl,StatementDsl
DSL (Domain Specific Language) for operations on
the SQL Database
-
Method Summary
Modifier and TypeMethodDescriptionand()Close the current statementAdd a value to insertList<org.evomaster.client.java.controller.api.dto.database.operations.InsertionDto>dtos()Build the DTOs (Data Transfer Object) from this DSL, closing it (ie, not usable any longer).insertInto(String tableName, Long id) An insertion operation on the SQL Database (DB)static SequenceDslsql()static SequenceDslsql(List<org.evomaster.client.java.controller.api.dto.database.operations.InsertionDto>... previous) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.evomaster.client.java.sql.dsl.SequenceDsl
insertInto
-
Method Details
-
sql
- Returns:
- a DSL object to create SQL operations
-
sql
public static SequenceDsl sql(List<org.evomaster.client.java.controller.api.dto.database.operations.InsertionDto>... previous) - Parameters:
previous- a DSL object which is executed in the front of this- Returns:
- a DSL object to create SQL operations
-
insertInto
Description copied from interface:SequenceDslAn insertion operation on the SQL Database (DB)- Specified by:
insertIntoin interfaceSequenceDsl- Parameters:
tableName- the target table in the DBid- an id for this insertion. Can be null.- Returns:
- a statement in which it can be specified the values to add
-
d
Description copied from interface:StatementDslAdd a value to insert- Specified by:
din interfaceStatementDsl- 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
- Specified by:
rin interfaceStatementDsl- 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
Description copied from interface:StatementDslClose the current statement- Specified by:
andin interfaceStatementDsl- Returns:
- the sequence object on which new SQL commands can be added
-
dtos
Description copied from interface:StatementDslBuild the DTOs (Data Transfer Object) from this DSL, closing it (ie, not usable any longer).- Specified by:
dtosin interfaceStatementDsl- Returns:
- a list of DTOs representing all the insertion SQL commands defined in this DSL.
-