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();
}));
}
}
Aggregations