Class SchemaExtractor
- java.lang.Object
-
- org.evomaster.client.java.controller.internal.db.SchemaExtractor
-
public class SchemaExtractor extends Object
-
-
Constructor Summary
Constructors Constructor Description SchemaExtractor()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddUniqueConstraintToColumn(TableDto tableDto, String columnName)Adds a unique constraint to the corresponding ColumnDTO for the selected table.column pair.static DbSchemaDtoextract(Connection connection)static booleanvalidate(DbSchemaDto schema)
-
-
-
Method Detail
-
validate
public static boolean validate(DbSchemaDto schema) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
extract
public static DbSchemaDto extract(Connection connection) throws Exception
- Throws:
Exception
-
addUniqueConstraintToColumn
public static void addUniqueConstraintToColumn(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
-
-