use of org.dbflute.logic.jdbc.schemaxml.DfSchemaXmlSerializer in project dbflute-core by dbflute.
the class DfSchemaSyncChecker method doCreateSerializer.
protected DfSchemaXmlSerializer doCreateSerializer(DfSchemaSource dataSource, String historyFile) {
final String schemaXml = getSchemaXml();
final DfSchemaXmlSerializer serializer = DfSchemaXmlSerializer.createAsManage(dataSource, schemaXml, historyFile);
final String craftMetaDir = getSchemaSyncCheckCraftMetaDir();
if (!getDocumentProperties().isSchemaSyncCheckSuppressCraftDiff()) {
serializer.enableCraftDiff(dataSource, craftMetaDir, DfCraftDiffAssertDirection.ROLLING_NEXT);
}
return serializer;
}
use of org.dbflute.logic.jdbc.schemaxml.DfSchemaXmlSerializer in project dbflute-core by dbflute.
the class DfAlterCheckProcess method serializePreviousSchema.
protected void serializePreviousSchema() {
final String previousXml = getMigrationAlterCheckPreviousSchemaXml();
final DfCraftDiffAssertDirection direction = DfCraftDiffAssertDirection.DIRECT_PREVIOUS;
final DfSchemaXmlSerializer serializer = createSchemaXmlSerializer(previousXml, direction);
serializer.serialize();
}
use of org.dbflute.logic.jdbc.schemaxml.DfSchemaXmlSerializer in project dbflute-core by dbflute.
the class DfAlterCheckProcess method serializeNextSchema.
// ===================================================================================
// Serialize Schema
// ================
protected void serializeNextSchema() {
final String nextXml = getMigrationAlterCheckNextSchemaXml();
final DfCraftDiffAssertDirection direction = DfCraftDiffAssertDirection.DIRECT_NEXT;
final DfSchemaXmlSerializer serializer = createSchemaXmlSerializer(nextXml, direction);
serializer.serialize();
}
use of org.dbflute.logic.jdbc.schemaxml.DfSchemaXmlSerializer in project dbflute-core by dbflute.
the class DfLReverseProcess method prepareDatabase.
// ===================================================================================
// Prepare
// =======
protected Database prepareDatabase() {
final String schemaXml = getLoadDataReverseSchemaXml();
final DfSchemaXmlSerializer serializer = createSchemaXmlSerializer(schemaXml);
serializer.serialize();
final DfSchemaXmlReader reader = createSchemaXmlReader(schemaXml);
final AppData appData = reader.read();
return appData.getDatabase();
}
use of org.dbflute.logic.jdbc.schemaxml.DfSchemaXmlSerializer in project dbflute-core by dbflute.
the class DfSchemaSyncChecker method doCreateSerializer.
protected DfSchemaXmlSerializer doCreateSerializer(DfSchemaSource dataSource) {
final String historyFile = getDiffMapFile();
final String schemaXml = getSchemaXml();
final DfSchemaXmlSerializer serializer = DfSchemaXmlSerializer.createAsManage(dataSource, schemaXml, historyFile);
final String craftMetaDir = getSchemaSyncCheckCraftMetaDir();
if (!getDocumentProperties().isSchemaSyncCheckSuppressCraftDiff()) {
serializer.enableCraftDiff(dataSource, craftMetaDir, DfCraftDiffAssertDirection.ROLLING_NEXT);
}
return serializer;
}
Aggregations