use of org.dbflute.properties.DfDocumentProperties in project dbflute-core by dbflute.
the class Column method getCommentForSchemaHtml.
public String getCommentForSchemaHtml() {
final DfDocumentProperties prop = getProperties().getDocumentProperties();
final String comment = prop.resolveTextForSchemaHtml(getComment());
return comment != null ? comment : "";
}
use of org.dbflute.properties.DfDocumentProperties in project dbflute-core by dbflute.
the class Column method getIndexTitleForSchemaHtml.
public String getIndexTitleForSchemaHtml() {
if (!hasIndex()) {
return "";
}
final StringBuilder sb = new StringBuilder();
final List<Index> indexList = getTable().getIndexList();
for (Index index : indexList) {
if (!index.hasSameColumn(this)) {
continue;
}
final String indexName = index.getName();
sb.append(sb.length() > 0 ? ", " : "");
if (indexName != null && indexName.trim().length() > 0) {
sb.append(indexName).append("(");
} else {
sb.append("(");
}
final Map<Integer, String> indexColumnMap = index.getIndexColumnMap();
final Set<Entry<Integer, String>> entrySet = indexColumnMap.entrySet();
final StringBuilder oneIndexSb = new StringBuilder();
for (Entry<Integer, String> entry : entrySet) {
final String columnName = entry.getValue();
if (oneIndexSb.length() > 0) {
oneIndexSb.append(", ");
}
oneIndexSb.append(columnName);
}
sb.append(oneIndexSb);
sb.append(")");
}
final DfDocumentProperties prop = getProperties().getDocumentProperties();
final String title = prop.resolveAttributeForSchemaHtml(sb.toString());
return title != null ? " title=\"" + title + "\"" : "";
}
use of org.dbflute.properties.DfDocumentProperties in project dbflute-core by dbflute.
the class Column method getComment.
public String getComment() {
final DfDocumentProperties prop = getProperties().getDocumentProperties();
final String comment = prop.extractCommentFromDbComment(_plainComment);
return comment != null ? comment : "";
}
use of org.dbflute.properties.DfDocumentProperties in project dbflute-core by dbflute.
the class Column method getCommentForSchemaHtmlPre.
public String getCommentForSchemaHtmlPre() {
final DfDocumentProperties prop = getProperties().getDocumentProperties();
final String comment = prop.resolvePreTextForSchemaHtml(getComment());
return comment != null ? comment : "";
}
use of org.dbflute.properties.DfDocumentProperties in project dbflute-core by dbflute.
the class Column method getCommentForDBMetaSettingExpression.
public String getCommentForDBMetaSettingExpression() {
if (!isCommentForDBMetaValid()) {
return "null";
}
final DfDocumentProperties prop = getProperties().getDocumentProperties();
final String comment = prop.resolveTextForDBMeta(getComment());
return comment != null ? "\"" + comment + "\"" : "null";
}
Aggregations