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


Java ColumnOverride.isColumnNameDelimited方法代码示例

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


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

示例1: applyColumnOverrides

import org.mybatis.generator.config.ColumnOverride; //导入方法依赖的package包/类
private void applyColumnOverrides(TableConfiguration tc, Map<ActualTableName, List<IntrospectedColumn>> columns) {
    for (Map.Entry<ActualTableName, List<IntrospectedColumn>> entry : columns.entrySet()) {
        for (IntrospectedColumn introspectedColumn : entry.getValue()) {
            ColumnOverride columnOverride = tc.getColumnOverride(introspectedColumn.getActualColumnName());

            if (columnOverride != null) {
                if (stringHasValue(columnOverride.getJavaProperty())) {
                    introspectedColumn.setJavaProperty(columnOverride.getJavaProperty());
                }

                if (stringHasValue(columnOverride.getJavaType())) {
                    introspectedColumn.setFullyQualifiedJavaType(new FullyQualifiedJavaType(columnOverride
                            .getJavaType()));
                }

                if (stringHasValue(columnOverride.getJdbcType())) {
                    introspectedColumn.setJdbcTypeName(columnOverride.getJdbcType());
                }

                if (stringHasValue(columnOverride.getTypeHandler())) {
                    introspectedColumn.setTypeHandler(columnOverride.getTypeHandler());
                }

                if (columnOverride.isColumnNameDelimited()) {
                    introspectedColumn.setColumnNameDelimited(true);
                }

                introspectedColumn.setProperties(columnOverride.getProperties());
            }
        }
    }
}
 
开发者ID:funny5258,项目名称:autocode,代码行数:33,代码来源:DatabaseIntrospector.java

示例2: applyColumnOverrides

import org.mybatis.generator.config.ColumnOverride; //导入方法依赖的package包/类
private void applyColumnOverrides(TableConfiguration tc, Map<ActualTableName, List<IntrospectedColumn>> columns) {
	for (Map.Entry<ActualTableName, List<IntrospectedColumn>> entry : columns.entrySet()) {
		for (IntrospectedColumn introspectedColumn : entry.getValue()) {
			ColumnOverride columnOverride = tc.getColumnOverride(introspectedColumn.getActualColumnName());

			if (columnOverride != null) {
				if (logger.isDebugEnabled()) {
					logger.debug(getString("Tracing.4", //$NON-NLS-1$
							introspectedColumn.getActualColumnName(), entry.getKey().toString()));
				}

				if (stringHasValue(columnOverride.getJavaProperty())) {
					introspectedColumn.setJavaProperty(columnOverride.getJavaProperty());
				}

				if (stringHasValue(columnOverride.getJavaType())) {
					introspectedColumn.setFullyQualifiedJavaType(new FullyQualifiedJavaType(columnOverride
							.getJavaType()));
				}

				if (stringHasValue(columnOverride.getJdbcType())) {
					introspectedColumn.setJdbcTypeName(columnOverride.getJdbcType());
				}

				if (stringHasValue(columnOverride.getTypeHandler())) {
					introspectedColumn.setTypeHandler(columnOverride.getTypeHandler());
				}

				if (columnOverride.isColumnNameDelimited()) {
					introspectedColumn.setColumnNameDelimited(true);
				}

				introspectedColumn.setProperties(columnOverride.getProperties());
			}
		}
	}
}
 
开发者ID:fnyexx,项目名称:mybator,代码行数:38,代码来源:DatabaseIntrospector.java

示例3: applyColumnOverrides

import org.mybatis.generator.config.ColumnOverride; //导入方法依赖的package包/类
/**
 * Apply column overrides.
 *
 * @param tc
 *            the tc
 * @param columns
 *            the columns
 */
private void applyColumnOverrides(TableConfiguration tc,
        Map<ActualTableName, List<IntrospectedColumn>> columns) {
    for (Map.Entry<ActualTableName, List<IntrospectedColumn>> entry : columns
            .entrySet()) {
        for (IntrospectedColumn introspectedColumn : entry.getValue()) {
            ColumnOverride columnOverride = tc
                    .getColumnOverride(introspectedColumn
                            .getActualColumnName());

            if (columnOverride != null) {
                if (logger.isDebugEnabled()) {
                    logger.debug(getString("Tracing.4", //$NON-NLS-1$
                            introspectedColumn.getActualColumnName(), entry
                                    .getKey().toString()));
                }

                if (stringHasValue(columnOverride
                        .getJavaProperty())) {
                    introspectedColumn.setJavaProperty(columnOverride
                            .getJavaProperty());
                }

                if (stringHasValue(columnOverride
                        .getJavaType())) {
                    introspectedColumn
                            .setFullyQualifiedJavaType(new FullyQualifiedJavaType(
                                    columnOverride.getJavaType()));
                }

                if (stringHasValue(columnOverride
                        .getJdbcType())) {
                    introspectedColumn.setJdbcTypeName(columnOverride
                            .getJdbcType());
                }

                if (stringHasValue(columnOverride
                        .getTypeHandler())) {
                    introspectedColumn.setTypeHandler(columnOverride
                            .getTypeHandler());
                }

                if (columnOverride.isColumnNameDelimited()) {
                    introspectedColumn.setColumnNameDelimited(true);
                }
                
                introspectedColumn.setGeneratedAlways(columnOverride.isGeneratedAlways());

                introspectedColumn.setProperties(columnOverride
                        .getProperties());
                
            }
        }
    }
}
 
开发者ID:bandaotixi,项目名称:generator_mybatis,代码行数:63,代码来源:DatabaseIntrospector.java

示例4: applyColumnOverrides

import org.mybatis.generator.config.ColumnOverride; //导入方法依赖的package包/类
/**
 * Apply column overrides.
 *
 * @param tc
 *            the tc
 * @param columns
 *            the columns
 */
private void applyColumnOverrides(TableConfiguration tc,
        Map<ActualTableName, List<IntrospectedColumn>> columns) {
    for (Map.Entry<ActualTableName, List<IntrospectedColumn>> entry : columns
            .entrySet()) {
        for (IntrospectedColumn introspectedColumn : entry.getValue()) {
            ColumnOverride columnOverride = tc
                    .getColumnOverride(introspectedColumn
                            .getActualColumnName());

            if (columnOverride != null) {
                if (logger.isDebugEnabled()) {
                    logger.debug(getString("Tracing.4", //$NON-NLS-1$
                            introspectedColumn.getActualColumnName(), entry
                                    .getKey().toString()));
                }

                if (stringHasValue(columnOverride
                        .getJavaProperty())) {
                    introspectedColumn.setJavaProperty(columnOverride
                            .getJavaProperty());
                }

                if (stringHasValue(columnOverride
                        .getJavaType())) {
                    introspectedColumn
                            .setFullyQualifiedJavaType(new FullyQualifiedJavaType(
                                    columnOverride.getJavaType()));
                }

                if (stringHasValue(columnOverride
                        .getJdbcType())) {
                    introspectedColumn.setJdbcTypeName(columnOverride
                            .getJdbcType());
                }

                if (stringHasValue(columnOverride
                        .getTypeHandler())) {
                    introspectedColumn.setTypeHandler(columnOverride
                            .getTypeHandler());
                }

                if (columnOverride.isColumnNameDelimited()) {
                    introspectedColumn.setColumnNameDelimited(true);
                }

                introspectedColumn.setProperties(columnOverride
                        .getProperties());
            }
        }
    }
}
 
开发者ID:backkoms,项目名称:mybatis-generator-comments,代码行数:60,代码来源:DatabaseIntrospector.java

示例5: applyColumnOverrides

import org.mybatis.generator.config.ColumnOverride; //导入方法依赖的package包/类
private void applyColumnOverrides(TableConfiguration tc,
        Map<ActualTableName, List<IntrospectedColumn>> columns) {
    for (Map.Entry<ActualTableName, List<IntrospectedColumn>> entry : columns
            .entrySet()) {
        for (IntrospectedColumn introspectedColumn : entry.getValue()) {
            ColumnOverride columnOverride = tc
                    .getColumnOverride(introspectedColumn
                            .getActualColumnName());

            if (columnOverride != null) {
                if (logger.isDebugEnabled()) {
                    logger.debug(getString("Tracing.4", //$NON-NLS-1$
                            introspectedColumn.getActualColumnName(), entry
                                    .getKey().toString()));
                }

                if (stringHasValue(columnOverride
                        .getJavaProperty())) {
                    introspectedColumn.setJavaProperty(columnOverride
                            .getJavaProperty());
                }

                if (stringHasValue(columnOverride
                        .getJavaType())) {
                    introspectedColumn
                            .setFullyQualifiedJavaType(new FullyQualifiedJavaType(
                                    columnOverride.getJavaType()));
                }

                if (stringHasValue(columnOverride
                        .getJdbcType())) {
                    introspectedColumn.setJdbcTypeName(columnOverride
                            .getJdbcType());
                }

                if (stringHasValue(columnOverride
                        .getTypeHandler())) {
                    introspectedColumn.setTypeHandler(columnOverride
                            .getTypeHandler());
                }

                if (columnOverride.isColumnNameDelimited()) {
                    introspectedColumn.setColumnNameDelimited(true);
                }

                introspectedColumn.setProperties(columnOverride
                        .getProperties());
            }
        }
    }
}
 
开发者ID:handosme,项目名称:mybatis-generator-plus,代码行数:52,代码来源:DatabaseIntrospector.java


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