public abstract class AbstractSchemaValidator extends Object implements SchemaValidator
Modifier and Type | Field and Description |
---|---|
protected SchemaFilter |
schemaFilter |
protected HibernateSchemaManagementTool |
tool |
Constructor and Description |
---|
AbstractSchemaValidator(HibernateSchemaManagementTool tool,
SchemaFilter validateFilter) |
Modifier and Type | Method and Description |
---|---|
void |
doValidation(Metadata metadata,
ExecutionOptions options)
Perform the validation of the schema described by Metadata
|
void |
performValidation(Metadata metadata,
DatabaseInformation databaseInformation,
ExecutionOptions options,
Dialect dialect) |
protected void |
validateColumnType(Table table,
Column column,
ColumnInformation columnInformation,
Metadata metadata,
ExecutionOptions options,
Dialect dialect) |
protected void |
validateSequence(Sequence sequence,
SequenceInformation sequenceInformation) |
protected void |
validateTable(Table table,
TableInformation tableInformation,
Metadata metadata,
ExecutionOptions options,
Dialect dialect) |
protected abstract void |
validateTables(Metadata metadata,
DatabaseInformation databaseInformation,
ExecutionOptions options,
Dialect dialect,
Namespace namespace) |
protected HibernateSchemaManagementTool tool
protected SchemaFilter schemaFilter
public AbstractSchemaValidator(HibernateSchemaManagementTool tool, SchemaFilter validateFilter)
public void doValidation(Metadata metadata, ExecutionOptions options)
SchemaValidator
doValidation
in interface SchemaValidator
metadata
- Represents the schema to be validatedoptions
- Options for executing the validationpublic void performValidation(Metadata metadata, DatabaseInformation databaseInformation, ExecutionOptions options, Dialect dialect)
protected abstract void validateTables(Metadata metadata, DatabaseInformation databaseInformation, ExecutionOptions options, Dialect dialect, Namespace namespace)
protected void validateTable(Table table, TableInformation tableInformation, Metadata metadata, ExecutionOptions options, Dialect dialect)
protected void validateColumnType(Table table, Column column, ColumnInformation columnInformation, Metadata metadata, ExecutionOptions options, Dialect dialect)
protected void validateSequence(Sequence sequence, SequenceInformation sequenceInformation)
Copyright © 2020 JBoss by Red Hat. All rights reserved.