java.lang.Object
org.evomaster.client.java.controller.api.dto.SqlDtoUtils

public class SqlDtoUtils extends Object
  • Constructor Details

    • SqlDtoUtils

      public SqlDtoUtils()
  • Method Details

    • getId

      public static String getId(TableDto dto)
      Return a fully qualifying name for input table, which can be used as id.
    • getTable

      public static TableDto getTable(DbInfoDto schema, String tableName)
      Returns:
      a table DTO for a particular table name
    • matchByName

      public static boolean matchByName(TableDto dto, String name)
      Check if given table dto is matched by name. This can be a partial name, or a full qualifying name.
    • extractColumnNames

      public static List<String> extractColumnNames(InsertionDto dto, Set<String> filter)
      Parameters:
      filter - specifies which column should be returned, null means all columns should be returned
      Returns:
      name of columns based on specified filter
    • extractColumnPrintableValues

      public static List<String> extractColumnPrintableValues(InsertionDto dto, Set<String> filter)
      Parameters:
      filter - specifies which column should be returned, null means all columns should be returned
      Returns:
      printable value of columns based on specified filter
    • extractColumnInfo

      public static ColumnDto extractColumnInfo(TableDto dto, String columnName)
      Parameters:
      columnName - specified which ColumnDto should be returned based on its name
      Returns:
      ColumnDto based on specified columnName