Search in sources :

Example 26 with DfDocumentProperties

use of org.dbflute.properties.DfDocumentProperties in project dbflute-core by dbflute.

the class Table method getCommentForSchemaHtmlPre.

public String getCommentForSchemaHtmlPre() {
    final DfDocumentProperties prop = getProperties().getDocumentProperties();
    final String comment = prop.resolvePreTextForSchemaHtml(getComment());
    return comment != null ? comment : "";
}
Also used : DfDocumentProperties(org.dbflute.properties.DfDocumentProperties)

Example 27 with DfDocumentProperties

use of org.dbflute.properties.DfDocumentProperties in project dbflute-core by dbflute.

the class Table method getCommentForDBMeta.

public String getCommentForDBMeta() {
    final DfDocumentProperties prop = getProperties().getDocumentProperties();
    final String comment = prop.resolveTextForDBMeta(getComment());
    return comment != null ? comment : "";
}
Also used : DfDocumentProperties(org.dbflute.properties.DfDocumentProperties)

Example 28 with DfDocumentProperties

use of org.dbflute.properties.DfDocumentProperties in project dbflute-core by dbflute.

the class Table method getAlias.

/**
 * Get the alias of the table.
 * @return The table alias as String. (NotNull, EmptyAllowed: when no alias)
 */
public String getAlias() {
    final DfDocumentProperties prop = getProperties().getDocumentProperties();
    final String comment = _plainComment;
    if (comment != null) {
        final String alias = prop.extractAliasFromDbComment(comment);
        if (alias != null) {
            return alias;
        }
    }
    return "";
}
Also used : DfDocumentProperties(org.dbflute.properties.DfDocumentProperties)

Example 29 with DfDocumentProperties

use of org.dbflute.properties.DfDocumentProperties in project dbflute-core by dbflute.

the class Table method getComment.

public String getComment() {
    final DfDocumentProperties prop = getProperties().getDocumentProperties();
    final String comment = prop.extractCommentFromDbComment(_plainComment);
    return comment != null ? comment : "";
}
Also used : DfDocumentProperties(org.dbflute.properties.DfDocumentProperties)

Example 30 with DfDocumentProperties

use of org.dbflute.properties.DfDocumentProperties in project dbflute-core by dbflute.

the class Column method getCommentForJavaDoc.

public String getCommentForJavaDoc() {
    final DfDocumentProperties prop = getProperties().getDocumentProperties();
    final String comment = prop.resolveTextForJavaDoc(getComment(), "    ");
    return comment != null ? comment : "";
}
Also used : DfDocumentProperties(org.dbflute.properties.DfDocumentProperties)

Aggregations

DfDocumentProperties (org.dbflute.properties.DfDocumentProperties)34 DfSchemaHtmlBuilder (org.dbflute.logic.doc.schemahtml.DfSchemaHtmlBuilder)4 Map (java.util.Map)3 DfColumnListToStringBuilder (org.dbflute.logic.generate.column.DfColumnListToStringBuilder)3 Entry (java.util.Map.Entry)2 BufferedReader (java.io.BufferedReader)1 BufferedWriter (java.io.BufferedWriter)1 FileInputStream (java.io.FileInputStream)1 FileNotFoundException (java.io.FileNotFoundException)1 FileOutputStream (java.io.FileOutputStream)1 IOException (java.io.IOException)1 InputStreamReader (java.io.InputStreamReader)1 OutputStreamWriter (java.io.OutputStreamWriter)1 UnsupportedEncodingException (java.io.UnsupportedEncodingException)1 BigDecimal (java.math.BigDecimal)1 DfBuildProperties (org.dbflute.DfBuildProperties)1 JavaPropertiesProperty (org.dbflute.helper.jprop.JavaPropertiesProperty)1 DfLanguageDependency (org.dbflute.logic.generate.language.DfLanguageDependency)1 DfLanguageGrammar (org.dbflute.logic.generate.language.grammar.DfLanguageGrammar)1 DfBasicProperties (org.dbflute.properties.DfBasicProperties)1