use of org.dbflute.logic.doc.schemahtml.DfSchemaHtmlBuilder in project dbflute-core by dbflute.
the class Table method getReferrerTableNameCommaStringWithHtmlHref.
public String getReferrerTableNameCommaStringWithHtmlHref() {
// for SchemaHTML
final StringBuilder sb = new StringBuilder();
final DfDocumentProperties prop = getProperties().getDocumentProperties();
final DfSchemaHtmlBuilder schemaHtmlBuilder = new DfSchemaHtmlBuilder(prop);
final String delimiter = ", ";
final List<ForeignKey> referrerList = getReferrerList();
final int size = referrerList.size();
if (size == 0) {
return " ";
}
for (int i = 0; i < size; i++) {
final ForeignKey fk = referrerList.get(i);
final Table referrerTable = fk.getTable();
sb.append(schemaHtmlBuilder.buildRelatedTableLink(fk, referrerTable, delimiter));
}
sb.delete(0, delimiter.length());
return sb.toString();
}
use of org.dbflute.logic.doc.schemahtml.DfSchemaHtmlBuilder in project dbflute-core by dbflute.
the class Column method getReferrerTableCommaStringWithHtmlHref.
public String getReferrerTableCommaStringWithHtmlHref() {
// mainly for SchemaHTML
if (_referrerList == null) {
_referrerList = new ArrayList<ForeignKey>(5);
}
final DfDocumentProperties prop = getProperties().getDocumentProperties();
final DfSchemaHtmlBuilder schemaHtmlBuilder = new DfSchemaHtmlBuilder(prop);
final String delimiter = ",<br>";
final StringBuffer sb = new StringBuffer();
for (ForeignKey fk : _referrerList) {
final Table referrerTable = fk.getTable();
sb.append(schemaHtmlBuilder.buildRelatedTableLink(fk, referrerTable, delimiter));
}
sb.delete(0, delimiter.length());
return sb.toString();
}
use of org.dbflute.logic.doc.schemahtml.DfSchemaHtmlBuilder in project dbflute-core by dbflute.
the class Table method getForeignTableNameCommaStringWithHtmlHref.
public String getForeignTableNameCommaStringWithHtmlHref() {
// for SchemaHTML
final StringBuilder sb = new StringBuilder();
final DfDocumentProperties prop = getProperties().getDocumentProperties();
final DfSchemaHtmlBuilder schemaHtmlBuilder = new DfSchemaHtmlBuilder(prop);
final String delimiter = ", ";
final List<ForeignKey> foreignKeyList = getForeignKeyList();
final int size = foreignKeyList.size();
if (size == 0) {
return " ";
}
for (int i = 0; i < size; i++) {
final ForeignKey fk = foreignKeyList.get(i);
final Table foreignTable = fk.getForeignTable();
sb.append(schemaHtmlBuilder.buildRelatedTableLink(fk, foreignTable, delimiter));
}
sb.delete(0, delimiter.length());
return sb.toString();
}
use of org.dbflute.logic.doc.schemahtml.DfSchemaHtmlBuilder in project dbflute-core by dbflute.
the class Column method getForeignTableNameCommaStringWithHtmlHref.
public String getForeignTableNameCommaStringWithHtmlHref() {
// mainly for SchemaHTML
final StringBuilder sb = new StringBuilder();
final DfDocumentProperties prop = getProperties().getDocumentProperties();
final DfSchemaHtmlBuilder schemaHtmlBuilder = new DfSchemaHtmlBuilder(prop);
final String delimiter = ",<br>";
final List<ForeignKey> foreignKeyList = getForeignKeyList();
final int size = foreignKeyList.size();
if (size == 0) {
return " ";
}
for (int i = 0; i < size; i++) {
final ForeignKey fk = foreignKeyList.get(i);
final Table foreignTable = fk.getForeignTable();
sb.append(schemaHtmlBuilder.buildRelatedTableLink(fk, foreignTable, delimiter));
}
sb.delete(0, delimiter.length());
return sb.toString();
}
Aggregations