use of org.dbflute.properties.DfLittleAdjustmentProperties in project dbflute-core by dbflute.
the class DfSql2EntityTask method setupControlTemplate.
protected void setupControlTemplate() {
final DfLittleAdjustmentProperties littleProp = getLittleAdjustmentProperties();
final String title;
final String controlPath;
if (littleProp.isAlternateSql2EntityControlValid()) {
title = "alternate control";
controlPath = littleProp.getAlternateSql2EntityControl();
} else {
final DfLanguageDependency lang = getBasicProperties().getLanguageDependency();
title = lang.getLanguageTitle();
controlPath = lang.getSql2EntityControl();
}
_log.info("");
_log.info("...Using " + title + " control: " + controlPath);
setControlTemplate(controlPath);
}
use of org.dbflute.properties.DfLittleAdjustmentProperties in project dbflute-core by dbflute.
the class DfClsTopLiteralArranger method isElementMapSuppressDBAccessClass.
@SuppressWarnings("unchecked")
protected boolean isElementMapSuppressDBAccessClass(Map<?, ?> elementMap) {
final String key = DfClassificationTop.KEY_SUPPRESS_DBACCESS_CLASS;
final DfLittleAdjustmentProperties prop = getLittleAdjustmentProperties();
final boolean defaultValue = prop.isSuppressTableClassificationDBAccessClass();
return isProperty(key, defaultValue, (Map<String, ? extends Object>) elementMap);
}
use of org.dbflute.properties.DfLittleAdjustmentProperties in project dbflute-core by dbflute.
the class DfClsTopLiteralArranger method getElementMapUndefinedHandlingType.
@SuppressWarnings("unchecked")
protected ClassificationUndefinedHandlingType getElementMapUndefinedHandlingType(Map<?, ?> elementMap) {
if (isElementMapCheckImplicitSet(elementMap)) {
return ClassificationUndefinedHandlingType.EXCEPTION;
}
final String key = DfClassificationTop.KEY_UNDEFINED_HANDLING_TYPE;
final DfLittleAdjustmentProperties prop = getLittleAdjustmentProperties();
final ClassificationUndefinedHandlingType defaultType = prop.getClassificationUndefinedHandlingType();
final String defaultValue = defaultType.code();
final String code = getProperty(key, defaultValue, (Map<String, ? extends Object>) elementMap);
final ClassificationUndefinedHandlingType handlingType = ClassificationUndefinedHandlingType.codeOf(code);
if (handlingType == null) {
throwUnknownClassificationUndefinedCodeHandlingTypeException(code);
}
return handlingType;
}
use of org.dbflute.properties.DfLittleAdjustmentProperties in project dbflute-core by dbflute.
the class DfClsTopLiteralArranger method isElementMapSuppressNameCamelizing.
@SuppressWarnings("unchecked")
protected boolean isElementMapSuppressNameCamelizing(Map<?, ?> elementMap) {
final String key = DfClassificationTop.KEY_SUPPRESS_NAME_CAMELIZING;
final DfLittleAdjustmentProperties prop = getLittleAdjustmentProperties();
final boolean defaultValue = prop.isSuppressTableClassificationNameCamelizing();
return isProperty(key, defaultValue, (Map<String, ? extends Object>) elementMap);
}
Aggregations