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(TableDto tableDto, String columnName) Adds a unique constraint to the corresponding ColumnDTO for the selected table.column pair.static DbInfoDtoextract(Connection connection) static boolean
-
Field Details
-
GEOMETRY
- See Also:
-
-
Constructor Details
-
DbInfoExtractor
public DbInfoExtractor()
-
-
Method Details
-
validate
- Throws:
IllegalArgumentException
-
extract
- Throws:
Exception
-
addUniqueConstraintToColumn
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
-