public class SchemaExtractor extends Object
| Constructor and Description |
|---|
SchemaExtractor() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addUniqueConstraintToColumn(String tableName,
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 boolean validate(DbSchemaDto schema) throws IllegalArgumentException
IllegalArgumentExceptionpublic static DbSchemaDto extract(Connection connection) throws Exception
Exceptionpublic static void addUniqueConstraintToColumn(String tableName, TableDto tableDto, String columnName)
Copyright © 2016–2019. All rights reserved.