Search in sources :

Example 1 with DfSchemaXmlFacadeProp

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;
}
Also used : DfDocumentProperties(org.dbflute.properties.DfDocumentProperties) DfBasicProperties(org.dbflute.properties.DfBasicProperties) DfSchemaXmlFacadeProp(org.dbflute.properties.facade.DfSchemaXmlFacadeProp) DfBuildProperties(org.dbflute.DfBuildProperties)

Example 2 with DfSchemaXmlFacadeProp

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);
}
Also used : DfBasicProperties(org.dbflute.properties.DfBasicProperties) DfSchemaXmlFacadeProp(org.dbflute.properties.facade.DfSchemaXmlFacadeProp)

Example 3 with DfSchemaXmlFacadeProp

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());
}
Also used : DfBasicProperties(org.dbflute.properties.DfBasicProperties) DfSchemaXmlFacadeProp(org.dbflute.properties.facade.DfSchemaXmlFacadeProp)

Aggregations

DfBasicProperties (org.dbflute.properties.DfBasicProperties)3 DfSchemaXmlFacadeProp (org.dbflute.properties.facade.DfSchemaXmlFacadeProp)3 DfBuildProperties (org.dbflute.DfBuildProperties)1 DfDocumentProperties (org.dbflute.properties.DfDocumentProperties)1