Package org.evomaster.client.java.sql
Class DbInfoExtractor
java.lang.Object
org.evomaster.client.java.sql.DbInfoExtractor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddUniqueConstraintToColumn(org.evomaster.client.java.controller.api.dto.database.schema.TableDto tableDto, String columnName) Adds a unique constraint to the corresponding ColumnDTO for the selected table.column pair.static org.evomaster.client.java.controller.api.dto.database.schema.DbInfoDtoextract(Connection connection) static booleanvalidate(org.evomaster.client.java.controller.api.dto.database.schema.DbInfoDto schema)
-
Field Details
-
GEOMETRY
- See Also:
-
-
Constructor Details
-
DbInfoExtractor
public DbInfoExtractor()
-
-
Method Details
-
validate
public static boolean validate(org.evomaster.client.java.controller.api.dto.database.schema.DbInfoDto schema) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
extract
public static org.evomaster.client.java.controller.api.dto.database.schema.DbInfoDto extract(Connection connection) throws Exception - Throws:
Exception
-
addUniqueConstraintToColumn
public static void addUniqueConstraintToColumn(org.evomaster.client.java.controller.api.dto.database.schema.TableDto tableDto, String columnName) Adds a unique constraint to the corresponding ColumnDTO for the selected table.column pair. Requires the ColumnDTO to be contained in the TableDTO. If the column DTO is not contained, a IllegalArgumentException is thrown.- Parameters:
tableDto- the DTO of the tablecolumnName- the name of the column to add the unique constraint on
-