org.mybatis.generator.config.TableConfiguration.isInsertStatementEnabled()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(4.1k)|赞(0)|评价(0)|浏览(72)

本文整理了Java中org.mybatis.generator.config.TableConfiguration.isInsertStatementEnabled()方法的一些代码示例,展示了TableConfiguration.isInsertStatementEnabled()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableConfiguration.isInsertStatementEnabled()方法的具体详情如下:
包路径:org.mybatis.generator.config.TableConfiguration
类名称:TableConfiguration
方法名:isInsertStatementEnabled

TableConfiguration.isInsertStatementEnabled介绍

暂无

代码示例

代码示例来源:origin: cxjava/mybatis-generator-core

/**
 * Implements the rule for generating the insert selective SQL Map element
 * and DAO method. If the insert statement is allowed, then generate the
 * element and method.
 * 
 * @return true if the element and method should be generated
 */
public boolean generateInsertSelective() {
  return tableConfiguration.isInsertStatementEnabled();
}

代码示例来源:origin: roncoo/roncoo-mybatis-generator

/**
 * Implements the rule for generating the insert selective SQL Map element
 * and DAO method. If the insert statement is allowed, then generate the
 * element and method.
 * 
 * @return true if the element and method should be generated
 */
public boolean generateInsertSelective() {
  if (isModelOnly) {
    return false;
  }
  
  return tableConfiguration.isInsertStatementEnabled();
}

代码示例来源:origin: handosme/mybatis-generator-plus

/**
 * Implements the rule for generating the insert selective SQL Map element
 * and DAO method. If the insert statement is allowed, then generate the
 * element and method.
 * 
 * @return true if the element and method should be generated
 */
public boolean generateInsertSelective() {
  if (isModelOnly) {
    return false;
  }
  
  return tableConfiguration.isInsertStatementEnabled();
}

代码示例来源:origin: cxjava/mybatis-generator-core

/**
 * Implements the rule for generating the insert SQL Map element and DAO
 * method. If the insert statement is allowed, then generate the element and
 * method.
 * 
 * @return true if the element and method should be generated
 */
public boolean generateInsert() {
  return tableConfiguration.isInsertStatementEnabled();
}

代码示例来源:origin: handosme/mybatis-generator-plus

/**
 * Implements the rule for generating the insert SQL Map element and DAO
 * method. If the insert statement is allowed, then generate the element and
 * method.
 * 
 * @return true if the element and method should be generated
 */
public boolean generateInsert() {
  if (isModelOnly) {
    return false;
  }
  
  return tableConfiguration.isInsertStatementEnabled();
}

代码示例来源:origin: org.mybatis.generator/mybatis-generator-core

/**
 * Implements the rule for generating the insert selective SQL Map element
 * and DAO method. If the insert statement is allowed, then generate the
 * element and method.
 * 
 * @return true if the element and method should be generated
 */
@Override
public boolean generateInsertSelective() {
  if (isModelOnly) {
    return false;
  }
  return tableConfiguration.isInsertStatementEnabled();
}

代码示例来源:origin: roncoo/roncoo-mybatis-generator

/**
 * Implements the rule for generating the insert SQL Map element and DAO
 * method. If the insert statement is allowed, then generate the element and
 * method.
 * 
 * @return true if the element and method should be generated
 */
public boolean generateInsert() {
  if (isModelOnly) {
    return false;
  }
  
  return tableConfiguration.isInsertStatementEnabled();
}

代码示例来源:origin: org.mybatis.generator/mybatis-generator-core

/**
 * Implements the rule for generating the insert SQL Map element and DAO
 * method. If the insert statement is allowed, then generate the element and
 * method.
 * 
 * @return true if the element and method should be generated
 */
@Override
public boolean generateInsert() {
  if (isModelOnly) {
    return false;
  }
  return tableConfiguration.isInsertStatementEnabled();
}

代码示例来源:origin: com.github.hongframework/hframe-webgenerator

@Override
public boolean sqlMapCountByExampleElementGenerated(XmlElement element, IntrospectedTable introspectedTable) {
  if(!introspectedTable.getTableConfiguration().isInsertStatementEnabled()) {
    if(!viewInfos.containsKey(introspectedTable.getFullyQualifiedTableNameAtRuntime())) {
      init(introspectedTable);
    }
    TextElement fromElement = new TextElement("select count(*) from " +
        viewInfos.get(introspectedTable.getFullyQualifiedTableNameAtRuntime())[0]); //$NON-NLS-1$
    element.getElements().set(0,fromElement);
  }
  return super.sqlMapCountByExampleElementGenerated(element, introspectedTable);
}

代码示例来源:origin: com.github.hongframework/hframe-webgenerator

if(!introspectedTable.getTableConfiguration().isInsertStatementEnabled()) {
  if(!viewInfos.containsKey(introspectedTable.getFullyQualifiedTableNameAtRuntime())) {
    init(introspectedTable);

相关文章

微信公众号

最新文章

更多

TableConfiguration类方法