public class DatabaseSyncer extends Object
Modifier and Type | Field and Description |
---|---|
protected ConnectionProvider |
connectionProvider |
static String |
copyright |
static org.slf4j.Logger |
logger |
Constructor and Description |
---|
DatabaseSyncer(ConnectionProvider connectionProvider) |
Modifier and Type | Method and Description |
---|---|
protected void |
copyAnnotations(Annotated source,
Annotated target) |
protected void |
copySelectionProviders(Table sourceTable,
Table targetTable) |
protected String |
normalizeTableName(liquibase.structure.core.Table table,
liquibase.snapshot.DatabaseSnapshot databaseSnapshot) |
protected void |
syncColumns(liquibase.structure.core.Table liquibaseTable,
Table sourceTable,
Table targetTable) |
Database |
syncDatabase(Model sourceModel) |
protected void |
syncForeignKeys(liquibase.snapshot.DatabaseSnapshot databaseSnapshot,
Schema sourceSchema,
Schema targetSchema) |
protected void |
syncPrimaryKeys(liquibase.snapshot.DatabaseSnapshot databaseSnapshot,
Schema sourceSchema,
Schema targetSchema) |
Schema |
syncSchema(liquibase.snapshot.DatabaseSnapshot databaseSnapshot,
Schema sourceSchema,
Schema targetSchema) |
protected void |
syncTables(liquibase.snapshot.DatabaseSnapshot databaseSnapshot,
Schema sourceSchema,
Schema targetSchema) |
public static final String copyright
public static final org.slf4j.Logger logger
protected final ConnectionProvider connectionProvider
public DatabaseSyncer(ConnectionProvider connectionProvider)
public Schema syncSchema(liquibase.snapshot.DatabaseSnapshot databaseSnapshot, Schema sourceSchema, Schema targetSchema)
protected void syncForeignKeys(liquibase.snapshot.DatabaseSnapshot databaseSnapshot, Schema sourceSchema, Schema targetSchema)
protected String normalizeTableName(liquibase.structure.core.Table table, liquibase.snapshot.DatabaseSnapshot databaseSnapshot)
protected void syncPrimaryKeys(liquibase.snapshot.DatabaseSnapshot databaseSnapshot, Schema sourceSchema, Schema targetSchema)
protected void syncTables(liquibase.snapshot.DatabaseSnapshot databaseSnapshot, Schema sourceSchema, Schema targetSchema)
protected void syncColumns(liquibase.structure.core.Table liquibaseTable, Table sourceTable, Table targetTable)