use of org.dbflute.properties.facade.DfSchemaXmlFacadeProp in project dbflute-core by dbflute.
the class DfSchemaXmlSerializer method createAsCore.
/**
* Create instance as core process (that is JDBC task).
* @param dataSource The data source of the database. (NotNull)
* @return The new instance. (NotNull)
*/
public static DfSchemaXmlSerializer createAsCore(DfSchemaSource dataSource) {
final DfBuildProperties buildProp = DfBuildProperties.getInstance();
final DfBasicProperties basicProp = buildProp.getBasicProperties();
final DfSchemaXmlFacadeProp facadeProp = basicProp.getSchemaXmlFacadeProp();
final String schemaXml = facadeProp.getProejctSchemaXMLFile();
final String historyFile = facadeProp.getProjectSchemaHistoryFile();
final DfSchemaXmlSerializer serializer = newSerializer(dataSource, schemaXml, historyFile);
final DfDocumentProperties docProp = buildProp.getDocumentProperties();
final String craftMetaDir = docProp.getCoreCraftMetaDir();
serializer.enableCraftDiff(dataSource, craftMetaDir, DfCraftDiffAssertDirection.ROLLING_NEXT);
// to avoid getting nonsense differences in JDBC task
serializer.keepDefinitionOrderAsPrevious();
return serializer;
}
use of org.dbflute.properties.facade.DfSchemaXmlFacadeProp in project dbflute-core by dbflute.
the class DfSchemaXmlReader method doCreateAsCoreTo.
public static DfSchemaXmlReader doCreateAsCoreTo(DfGenetateXmlReadingFilter readingFilter) {
final DfBasicProperties basicProp = DfBuildProperties.getInstance().getBasicProperties();
final DfSchemaXmlFacadeProp facadeProp = basicProp.getSchemaXmlFacadeProp();
final String schemaXml = facadeProp.getProejctSchemaXMLFile();
return doCreateAs(schemaXml, readingFilter);
}
use of org.dbflute.properties.facade.DfSchemaXmlFacadeProp in project dbflute-core by dbflute.
the class DfSchemaHistory method createAsCore.
public static DfSchemaHistory createAsCore() {
// pure HistoryHTML
final DfBasicProperties basicProp = DfBuildProperties.getInstance().getBasicProperties();
final DfSchemaXmlFacadeProp facadeProp = basicProp.getSchemaXmlFacadeProp();
return new DfSchemaHistory(facadeProp.getProjectSchemaHistoryFile());
}
Aggregations