Search in sources :

Example 1 with DfFirstDateAgent

use of org.dbflute.logic.doc.supplement.firstdate.DfFirstDateAgent in project dbflute-core by dbflute.

the class TorqueDocumentationTask method initializeSchemaData.

// ===================================================================================
// Prepare Generation
// ==================
@Override
protected void initializeSchemaData() {
    // basically called in fireVelocityProcess()
    if (isLoadDataReverseOnly() || isSchemaSyncCheckOnly()) {
        // don't use basic schema data
        // not to depends on JDBC task
        _schemaData = AppData.createAsEmpty();
    } else {
        // normally here (SchemaHTML, HistoryHTML)
        if (_schemaData == null) {
            // basically false, already initialized in SchemaHTML process so just in case
            purelyInitializeSchemaHtmlSchemaData();
        }
        final Database database = _schemaData.getDatabase();
        if (_schemaPolicyResult != null) {
            // null allowed when no policy
            database.setSchemaPolicyDisplay(new DfSPolicyDisplay(_schemaPolicyResult));
        }
        database.setEmbeddedPickup(_decoMapPickup);
        database.setFirstDateAgent(new DfFirstDateAgent(() -> {
            // for SchemaHTML's firstDate display
            return prepareCoreSchemaDiffList();
        }));
    }
}
Also used : DfFirstDateAgent(org.dbflute.logic.doc.supplement.firstdate.DfFirstDateAgent) DfSPolicyDisplay(org.dbflute.logic.doc.spolicy.display.DfSPolicyDisplay) Database(org.apache.torque.engine.database.model.Database)

Aggregations

Database (org.apache.torque.engine.database.model.Database)1 DfSPolicyDisplay (org.dbflute.logic.doc.spolicy.display.DfSPolicyDisplay)1 DfFirstDateAgent (org.dbflute.logic.doc.supplement.firstdate.DfFirstDateAgent)1