public class SchemaExtractor extends Object
| Constructor and Description |
|---|
SchemaExtractor() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addUniqueConstraintToColumn(TableDto tableDto,
String columnName)
Adds a unique constraint to the corresponding ColumnDTO for the selected table.column pair.
|
static DbSchemaDto |
extract(Connection connection) |
static boolean |
validate(DbSchemaDto schema) |
public static final String GEOMETRY
public static boolean validate(DbSchemaDto schema) throws IllegalArgumentException
IllegalArgumentExceptionpublic static DbSchemaDto extract(Connection connection) throws Exception
Exceptionpublic static void addUniqueConstraintToColumn(TableDto tableDto, String columnName)
tableDto - the DTO of the tablecolumnName - the name of the column to add the unique constraint onCopyright © 2016–2024. All rights reserved.