use of org.dbflute.helper.jdbc.context.DfSchemaSource in project dbflute-core by dbflute.
the class Table method getSequenceMinimumValue.
public BigDecimal getSequenceMinimumValue() {
if (!isUseSequence()) {
return null;
}
final DfSequenceIdentityProperties prop = getSequenceIdentityProperties();
final DfSchemaSource ds = getDatabase().getDataSource();
BigDecimal value = prop.getSequenceMinimumValueByTableName(ds, getUnifiedSchema(), getTableDbName());
if (value == null) {
final String sequenceName = extractPostgreSQLSerialSequenceName();
if (sequenceName != null && sequenceName.trim().length() > 0) {
value = prop.getSequenceMinimumValueBySequenceName(ds, getUnifiedSchema(), sequenceName);
}
}
return value;
}
use of org.dbflute.helper.jdbc.context.DfSchemaSource in project dbflute-core by dbflute.
the class Table method getSequenceCacheSize.
public Integer getSequenceCacheSize() {
if (!isUseSequence()) {
return null;
}
final DfSequenceIdentityProperties prop = getSequenceIdentityProperties();
final DfSchemaSource ds = getDatabase().getDataSource();
return prop.getSequenceCacheSize(ds, getUnifiedSchema(), getTableDbName());
}
use of org.dbflute.helper.jdbc.context.DfSchemaSource in project dbflute-core by dbflute.
the class DfSchemaHtmlDataProcedure method getAvailableProcedureList.
// ===================================================================================
// Available Procedure
// ===================
public List<DfProcedureMeta> getAvailableProcedureList(Supplier<DfSchemaSource> dataSourceProvider) throws SQLException {
if (_procedureMetaInfoList != null) {
return _procedureMetaInfoList;
}
_log.info(" ");
_log.info("...Setting up procedures for documents");
final DfProcedureExtractor handler = new DfProcedureExtractor();
final DfSchemaSource dataSource = dataSourceProvider.get();
handler.includeProcedureSynonym(dataSource);
handler.includeProcedureToDBLink(dataSource);
if (getDocumentProperties().isShowSchemaHtmlProcedureRegardlessOfGeneration()) {
handler.suppressGenerationRestriction();
}
// ordered by schema
_procedureMetaInfoList = handler.getAvailableProcedureList(dataSource);
return _procedureMetaInfoList;
}
Aggregations