use of org.dbflute.logic.generate.language.DfLanguageDependency in project dbflute-core by dbflute.
the class DfMailFluteTableLoader method resolvePackageName.
protected String resolvePackageName(String typeName) {
final DfLanguageDependency lang = getBasicProperties().getLanguageDependency();
final DfLanguagePropertyPackageResolver resolver = lang.getLanguagePropertyPackageResolver();
return resolver.resolvePackageName(typeName);
}
use of org.dbflute.logic.generate.language.DfLanguageDependency in project dbflute-core by dbflute.
the class DfColumnListToStringBuilder method getColumnArgsSetupPropertyString.
public static String getColumnArgsSetupPropertyString(String beanName, List<Column> columnList) {
validateColumnList(columnList);
final boolean hasPrefix = beanName != null;
final String beanPrefix = (hasPrefix ? beanName + "." : "");
final DfLanguageDependency lang = getBasicProperties().getLanguageDependency();
final DfLanguageImplStyle implStyle = lang.getLanguageImplStyle();
String result = "";
for (Iterator<Column> ite = columnList.iterator(); ite.hasNext(); ) {
final Column column = (Column) ite.next();
final String javaName = column.getJavaName();
final String variable = column.getUncapitalisedJavaName();
final String cls = column.getClassificationName();
final String basic;
if (column.isForceClassificationSetting()) {
basic = "set" + javaName + "As" + cls + "(" + variable + ")";
} else {
basic = "set" + javaName + "(" + variable + ")";
}
final String adjusted = implStyle.adjustEntitySetPropertyCall(basic, !hasPrefix);
final String setter = beanPrefix + adjusted + ";";
if ("".equals(result)) {
result = setter;
} else {
result = result + setter;
}
}
return result;
}
use of org.dbflute.logic.generate.language.DfLanguageDependency 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.logic.generate.language.DfLanguageDependency in project dbflute-core by dbflute.
the class DfPmFileTableLoader method resolvePackageName.
protected String resolvePackageName(String typeName) {
final DfLanguageDependency lang = getBasicProperties().getLanguageDependency();
final DfLanguagePropertyPackageResolver resolver = lang.getLanguagePropertyPackageResolver();
return resolver.resolvePackageName(typeName);
}
use of org.dbflute.logic.generate.language.DfLanguageDependency in project dbflute-core by dbflute.
the class DfOutsideSqlAnalyzer method resolvePackageName.
protected String resolvePackageName(String typeName) {
// [DBFLUTE-271]
final DfLanguageDependency lang = getBasicProperties().getLanguageDependency();
final DfLanguagePropertyPackageResolver resolver = lang.getLanguagePropertyPackageResolver();
return resolver.resolvePackageName(typeName);
}
Aggregations