当前位置: 首页>>代码示例>>Java>>正文


Java Context.getEndingDelimiter方法代码示例

本文整理汇总了Java中org.mybatis.generator.config.Context.getEndingDelimiter方法的典型用法代码示例。如果您正苦于以下问题:Java Context.getEndingDelimiter方法的具体用法?Java Context.getEndingDelimiter怎么用?Java Context.getEndingDelimiter使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.mybatis.generator.config.Context的用法示例。


在下文中一共展示了Context.getEndingDelimiter方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: FullyQualifiedTable

import org.mybatis.generator.config.Context; //导入方法依赖的package包/类
/**
 * This object is used to hold information related to the table itself, not the columns in the table.
 *
 * @param introspectedCatalog
 *            the actual catalog of the table as returned from DatabaseMetaData. This value should only be set if
 *            the user configured a catalog. Otherwise the DatabaseMetaData is reporting some database default that
 *            we don't want in the generated code.
 * @param introspectedSchema
 *            the actual schema of the table as returned from DatabaseMetaData. This value should only be set if the
 *            user configured a schema. Otherwise the DatabaseMetaData is reporting some database default that we
 *            don't want in the generated code.
 * @param introspectedTableName
 *            the actual table name as returned from DatabaseMetaData
 * @param domainObjectName
 *            the configured domain object name for this table. If nothing is configured, we'll build the domain
 *            object named based on the tableName or runtimeTableName.
 * @param alias
 *            a configured alias for the table. This alias will be added to the table name in the SQL
 * @param ignoreQualifiersAtRuntime
 *            if true, then the catalog and schema qualifiers will be ignored when composing fully qualified names
 *            in the generated SQL. This is used, for example, when the user needs to specify a specific schema for
 *            generating code but does not want the schema in the generated SQL
 * @param runtimeCatalog
 *            this is used to "rename" the catalog in the generated SQL. This is useful, for example, when
 *            generating code against one catalog that should run with a different catalog.
 * @param runtimeSchema
 *            this is used to "rename" the schema in the generated SQL. This is useful, for example, when generating
 *            code against one schema that should run with a different schema.
 * @param runtimeTableName
 *            this is used to "rename" the table in the generated SQL. This is useful, for example, when generating
 *            code to run with an Oracle synonym. The user would have to specify the actual table name and schema
 *            for generation, but would want to use the synonym name in the generated SQL
 * @param delimitIdentifiers
 *            if true, then the table identifiers will be delimited at runtime. The delimiter characters are
 *            obtained from the Context.
 * @param context
 *            the context
 */
public FullyQualifiedTable(String introspectedCatalog,
        String introspectedSchema, String introspectedTableName,
        String domainObjectName, String alias,
        boolean ignoreQualifiersAtRuntime, String runtimeCatalog,
        String runtimeSchema, String runtimeTableName,
        boolean delimitIdentifiers, Context context) {
    super();
    this.introspectedCatalog = introspectedCatalog;
    this.introspectedSchema = introspectedSchema;
    this.introspectedTableName = introspectedTableName;
    this.ignoreQualifiersAtRuntime = ignoreQualifiersAtRuntime;
    this.runtimeCatalog = runtimeCatalog;
    this.runtimeSchema = runtimeSchema;
    this.runtimeTableName = runtimeTableName;
    
    if (stringHasValue(domainObjectName)) {
        int index = domainObjectName.lastIndexOf('.');
        if (index == -1) {
            this.domainObjectName = domainObjectName;
        } else {
            this.domainObjectName = domainObjectName.substring(index + 1);
            this.domainObjectSubPackage = domainObjectName.substring(0, index);
        }
    }

    if (alias == null) {
        this.alias = null;
    } else {
        this.alias = alias.trim();
    }

    beginningDelimiter = delimitIdentifiers ? context
            .getBeginningDelimiter() : ""; //$NON-NLS-1$
    endingDelimiter = delimitIdentifiers ? context.getEndingDelimiter()
            : ""; //$NON-NLS-1$
}
 
开发者ID:bandaotixi,项目名称:generator_mybatis,代码行数:75,代码来源:FullyQualifiedTable.java

示例2: FullyQualifiedTable

import org.mybatis.generator.config.Context; //导入方法依赖的package包/类
/**
 * This object is used to hold information related to the table itself, not the columns in the
 * table.
 *
 * @param introspectedCatalog
 *            the actual catalog of the table as returned from DatabaseMetaData. This value
 *            should only be set if the user configured a catalog. Otherwise the
 *            DatabaseMetaData is reporting some database default that we don't want in the
 *            generated code.
 * @param introspectedSchema
 *            the actual schema of the table as returned from DatabaseMetaData. This value
 *            should only be set if the user configured a schema. Otherwise the
 *            DatabaseMetaData is reporting some database default that we don't want in the
 *            generated code.
 * @param introspectedTableName
 *            the actual table name as returned from DatabaseMetaData
 * @param domainObjectName
 *            the configured domain object name for this table. If nothing is configured, we'll build the domain
 *            object named based on the tableName or runtimeTableName.
 * @param alias
 *            a configured alias for the table. This alias will be added to the table name in the SQL
 * @param ignoreQualifiersAtRuntime
 *            if true, then the catalog and schema qualifiers will be ignored when composing fully qualified names
 *            in the generated SQL. This is used, for example, when the user needs to specify a specific schema for
 *            generating code but does not want the schema in the generated SQL
 * @param runtimeCatalog
 *            this is used to "rename" the catalog in the generated SQL. This is useful, for example, when
 *            generating code against one catalog that should run with a different catalog.
 * @param runtimeSchema
 *            this is used to "rename" the schema in the generated SQL. This is useful, for example, when generating
 *            code against one schema that should run with a different schema.
 * @param runtimeTableName
 *            this is used to "rename" the table in the generated SQL. This is useful, for example, when generating
 *            code to run with an Oracle synonym. The user would have to specify the actual table name and schema
 *            for generation, but would want to use the synonym name in the generated SQL
 * @param delimitIdentifiers
 *            if true, then the table identifiers will be delimited at runtime. The delimiter characters are
 *            obtained from the Context.
 * @param context
 *            the context
 */
public FullyQualifiedTable(String introspectedCatalog,
        String introspectedSchema, String introspectedTableName,
        String domainObjectName, String alias,
        boolean ignoreQualifiersAtRuntime, String runtimeCatalog,
        String runtimeSchema, String runtimeTableName,
        boolean delimitIdentifiers, Context context) {
    super();
    this.introspectedCatalog = introspectedCatalog;
    this.introspectedSchema = introspectedSchema;
    this.introspectedTableName = introspectedTableName;
    this.ignoreQualifiersAtRuntime = ignoreQualifiersAtRuntime;
    this.runtimeCatalog = runtimeCatalog;
    this.runtimeSchema = runtimeSchema;
    this.runtimeTableName = runtimeTableName;
    
    if (stringHasValue(domainObjectName)) {
        int index = domainObjectName.lastIndexOf('.');
        if (index == -1) {
            this.domainObjectName = domainObjectName;
        } else {
            this.domainObjectName = domainObjectName.substring(index + 1);
            this.domainObjectSubPackage = domainObjectName.substring(0, index);
        }
    }

    if (alias == null) {
        this.alias = null;
    } else {
        this.alias = alias.trim();
    }

    beginningDelimiter = delimitIdentifiers ? context
            .getBeginningDelimiter() : ""; //$NON-NLS-1$
    endingDelimiter = delimitIdentifiers ? context.getEndingDelimiter()
            : ""; //$NON-NLS-1$
}
 
开发者ID:nextyu,项目名称:summer-mybatis-generator,代码行数:78,代码来源:FullyQualifiedTable.java


注:本文中的org.mybatis.generator.config.Context.getEndingDelimiter方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。