Search in sources :

Example 11 with DfLittleAdjustmentProperties

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

Example 12 with DfLittleAdjustmentProperties

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

Example 13 with DfLittleAdjustmentProperties

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

Example 14 with DfLittleAdjustmentProperties

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;
}
Also used : DfClassificationTop(org.dbflute.properties.assistant.classification.DfClassificationTop) DfLittleAdjustmentProperties(org.dbflute.properties.DfLittleAdjustmentProperties)

Example 15 with DfLittleAdjustmentProperties

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

Aggregations

DfLittleAdjustmentProperties (org.dbflute.properties.DfLittleAdjustmentProperties)24 DfLanguageDependency (org.dbflute.logic.generate.language.DfLanguageDependency)2 Set (java.util.Set)1 StringTokenizer (java.util.StringTokenizer)1 Column (org.apache.torque.engine.database.model.Column)1 ForeignKey (org.apache.torque.engine.database.model.ForeignKey)1 Table (org.apache.torque.engine.database.model.Table)1 ClassificationUndefinedHandlingType (org.dbflute.jdbc.ClassificationUndefinedHandlingType)1 DfBasicProperties (org.dbflute.properties.DfBasicProperties)1 DfClassificationTop (org.dbflute.properties.assistant.classification.DfClassificationTop)1