use of org.dbflute.properties.DfLittleAdjustmentProperties in project dbflute-core by dbflute.
the class DfClsTopLiteralArranger method isElementMapCheckClassificationCode.
// -----------------------------------------------------
// Undefined Handling
// ------------------
// user public since 1.1 (implemented when 1.0.5K)
protected boolean isElementMapCheckClassificationCode(Map<?, ?> elementMap) {
final boolean checked = getElementMapUndefinedHandlingType(elementMap).isChecked();
if (hasElementMapUndefinedHandlingTypeProperty(elementMap)) {
// e.g. explicitly undefinedHandlingType=[something]
return checked;
}
if (hasElementMapCheckImplicitSetProperty(elementMap) && !isElementMapCheckImplicitSet(elementMap)) {
// explicitly isCheckImplicitSet=false
return false;
}
final DfLittleAdjustmentProperties prop = getLittleAdjustmentProperties();
if (prop.isSuppressDefaultCheckClassificationCode()) {
return false;
}
return checked;
}
use of org.dbflute.properties.DfLittleAdjustmentProperties in project dbflute-core by dbflute.
the class DfClassificationResourceAnalyzer method setupClassificationTopOption.
protected void setupClassificationTopOption(DfClassificationTop classificationTop) {
final DfLittleAdjustmentProperties prop = getLittleAdjustmentProperties();
classificationTop.setCheckClassificationCode(prop.isPlainCheckClassificationCode());
classificationTop.setUndefinedHandlingType(prop.getClassificationUndefinedHandlingType());
// analyzed after
// classificationTop.setCheckImplicitSet(false);
classificationTop.setCheckSelectedClassification(prop.isCheckSelectedClassification());
classificationTop.setForceClassificationSetting(prop.isForceClassificationSetting());
}
use of org.dbflute.properties.DfLittleAdjustmentProperties in project dbflute-core by dbflute.
the class DfLReverseOutputHandler method deriveSheetName.
protected String deriveSheetName(Table table) {
// if schema-driven, output with table name with schema as sheet name
// it depends on ReplaceSchema specification whether the data file can be loaded or not
final String tableDbName = table.getTableDbName();
// sheet name's case is depends on table display name's case
// because sheet name (as table name) is also display name
final DfLittleAdjustmentProperties prop = getLittleAdjustmentProperties();
return prop.isTableDispNameUpperCase() ? tableDbName.toUpperCase() : tableDbName;
}
use of org.dbflute.properties.DfLittleAdjustmentProperties in project dbflute-core by dbflute.
the class DfClsTableAllInOneArranger method createAllInOneTableClassificationTop.
protected DfClassificationTop createAllInOneTableClassificationTop(final String classificationName) {
final DfClassificationTop tmpTop = new DfClassificationTop(classificationName);
final DfLittleAdjustmentProperties prop = getLittleAdjustmentProperties();
tmpTop.setCheckClassificationCode(prop.isPlainCheckClassificationCode());
tmpTop.setUndefinedHandlingType(prop.getClassificationUndefinedHandlingType());
// unsupported
tmpTop.setCheckImplicitSet(false);
tmpTop.setCheckSelectedClassification(prop.isCheckSelectedClassification());
tmpTop.setForceClassificationSetting(prop.isForceClassificationSetting());
return tmpTop;
}
use of org.dbflute.properties.DfLittleAdjustmentProperties in project dbflute-core by dbflute.
the class DfForeignKeyMeta method getLocalTableSqlName.
public String getLocalTableSqlName() {
if (_localSchema == null) {
return _localTablePureName;
}
final DfLittleAdjustmentProperties prop = DfBuildProperties.getInstance().getLittleAdjustmentProperties();
final String quotedName = prop.quoteTableNameIfNeedsDirectUse(_localTablePureName);
// driven is resolved here so it uses pure name here
return _localSchema.buildSqlName(quotedName);
}
Aggregations