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

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

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

TableConfiguration.isSelectByPrimaryKeyStatementEnabled介绍

暂无

代码示例

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

/**
 * Implements the rule for generating the result map without BLOBs. If
 * either select method is allowed, then generate the result map.
 * 
 * @return true if the result map should be generated
 */
public boolean generateBaseResultMap() {
  if (isModelOnly) {
    return true;
  }
  
  boolean rc = tableConfiguration.isSelectByExampleStatementEnabled()
      || tableConfiguration.isSelectByPrimaryKeyStatementEnabled();
  return rc;
}

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

/**
 * Implements the rule for generating the result map without BLOBs. If
 * either select method is allowed, then generate the result map.
 * 
 * @return true if the result map should be generated
 */
public boolean generateBaseResultMap() {
  boolean rc = tableConfiguration.isSelectByExampleStatementEnabled()
      || tableConfiguration.isSelectByPrimaryKeyStatementEnabled();
  return rc;
}

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

/**
 * Implements the rule for generating the result map without BLOBs. If
 * either select method is allowed, then generate the result map.
 * 
 * @return true if the result map should be generated
 */
public boolean generateBaseResultMap() {
  if (isModelOnly) {
    return true;
  }
  
  boolean rc = tableConfiguration.isSelectByExampleStatementEnabled()
      || tableConfiguration.isSelectByPrimaryKeyStatementEnabled();
  return rc;
}

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

/**
 * Implements the rule for generating the result map without BLOBs. If
 * either select method is allowed, then generate the result map.
 * 
 * @return true if the result map should be generated
 */
@Override
public boolean generateBaseResultMap() {
  if (isModelOnly) {
    return true;
  }
  boolean rc = tableConfiguration.isSelectByExampleStatementEnabled()
      || tableConfiguration.isSelectByPrimaryKeyStatementEnabled();
  return rc;
}

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

public boolean generateBlobColumnList() {
  if (isModelOnly) {
    return false;
  }
  
  return introspectedTable.hasBLOBColumns()
      && (tableConfiguration.isSelectByExampleStatementEnabled() || tableConfiguration
          .isSelectByPrimaryKeyStatementEnabled());
}

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

public boolean generateBlobColumnList() {
    return introspectedTable.hasBLOBColumns()
        && (tableConfiguration.isSelectByExampleStatementEnabled() || tableConfiguration
            .isSelectByPrimaryKeyStatementEnabled());
  }
}

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

public boolean generateBlobColumnList() {
  if (isModelOnly) {
    return false;
  }
  
  return introspectedTable.hasBLOBColumns()
      && (tableConfiguration.isSelectByExampleStatementEnabled() || tableConfiguration
          .isSelectByPrimaryKeyStatementEnabled());
}

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

@Override
public boolean generateBlobColumnList() {
  if (isModelOnly) {
    return false;
  }
  
  return introspectedTable.hasBLOBColumns()
      && (tableConfiguration.isSelectByExampleStatementEnabled() || tableConfiguration
          .isSelectByPrimaryKeyStatementEnabled());
}

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

/**
 * Implements the rule for generating the result map with BLOBs. If the
 * table has BLOB columns, and either select method is allowed, then
 * generate the result map.
 * 
 * @return true if the result map should be generated
 */
public boolean generateResultMapWithBLOBs() {
  boolean rc = (tableConfiguration.isSelectByExampleStatementEnabled() || tableConfiguration
      .isSelectByPrimaryKeyStatementEnabled()) && introspectedTable.hasBLOBColumns();
  return rc;
}

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

/**
 * Implements the rule for generating the result map with BLOBs. If the
 * table has BLOB columns, and either select method is allowed, then
 * generate the result map.
 * 
 * @return true if the result map should be generated
 */
@Override
public boolean generateResultMapWithBLOBs() {
  boolean rc;
  if (introspectedTable.hasBLOBColumns()) {
    if (isModelOnly) {
      rc = true;
    } else {
      rc = tableConfiguration.isSelectByExampleStatementEnabled()
          || tableConfiguration.isSelectByPrimaryKeyStatementEnabled();
    }
  } else {
    rc = false;
  }
  return rc;
}

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

/**
 * Implements the rule for generating the result map with BLOBs. If the
 * table has BLOB columns, and either select method is allowed, then
 * generate the result map.
 * 
 * @return true if the result map should be generated
 */
public boolean generateResultMapWithBLOBs() {
  boolean rc;
  
  if (introspectedTable.hasBLOBColumns()) {
    if (isModelOnly) {
      rc = true;
    } else {
      rc = tableConfiguration.isSelectByExampleStatementEnabled() 
          || tableConfiguration.isSelectByPrimaryKeyStatementEnabled();
    }
  } else {
    rc = false;
  }
  
  return rc;
}

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

/**
 * Implements the rule for generating the result map with BLOBs. If the
 * table has BLOB columns, and either select method is allowed, then
 * generate the result map.
 * 
 * @return true if the result map should be generated
 */
public boolean generateResultMapWithBLOBs() {
  boolean rc;
  
  if (introspectedTable.hasBLOBColumns()) {
    if (isModelOnly) {
      rc = true;
    } else {
      rc = tableConfiguration.isSelectByExampleStatementEnabled() 
          || tableConfiguration.isSelectByPrimaryKeyStatementEnabled();
    }
  } else {
    rc = false;
  }
  
  return rc;
}

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

/**
 * Implements the rule for generating the select by primary key SQL Map
 * element and DAO method. If the table has a primary key as well as other
 * fields, and the selectByPrimaryKey statement is allowed, then generate
 * the element and method.
 * 
 * @return true if the element and method should be generated
 */
public boolean generateSelectByPrimaryKey() {
  boolean rc = tableConfiguration.isSelectByPrimaryKeyStatementEnabled()
      && introspectedTable.hasPrimaryKeyColumns()
      && (introspectedTable.hasBaseColumns() || introspectedTable.hasBLOBColumns());
  return rc;
}

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

/**
 * Implements the rule for generating the select by primary key SQL Map
 * element and DAO method. If the table has a primary key as well as other
 * fields, and the selectByPrimaryKey statement is allowed, then generate
 * the element and method.
 * 
 * @return true if the element and method should be generated
 */
public boolean generateSelectByPrimaryKey() {
  if (isModelOnly) {
    return false;
  }
  
  boolean rc = tableConfiguration.isSelectByPrimaryKeyStatementEnabled()
      && introspectedTable.hasPrimaryKeyColumns()
      && (introspectedTable.hasBaseColumns() || introspectedTable
          .hasBLOBColumns());
  return rc;
}

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

/**
 * Implements the rule for generating the select by primary key SQL Map
 * element and DAO method. If the table has a primary key as well as other
 * fields, and the selectByPrimaryKey statement is allowed, then generate
 * the element and method.
 * 
 * @return true if the element and method should be generated
 */
public boolean generateSelectByPrimaryKey() {
  if (isModelOnly) {
    return false;
  }
  
  boolean rc = tableConfiguration.isSelectByPrimaryKeyStatementEnabled()
      && introspectedTable.hasPrimaryKeyColumns()
      && (introspectedTable.hasBaseColumns() || introspectedTable
          .hasBLOBColumns());
  return rc;
}

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

/**
 * Implements the rule for generating the select by primary key SQL Map
 * element and DAO method. If the table has a primary key as well as other
 * fields, and the selectByPrimaryKey statement is allowed, then generate
 * the element and method.
 * 
 * @return true if the element and method should be generated
 */
@Override
public boolean generateSelectByPrimaryKey() {
  if (isModelOnly) {
    return false;
  }
  boolean rc = tableConfiguration.isSelectByPrimaryKeyStatementEnabled()
      && introspectedTable.hasPrimaryKeyColumns()
      && (introspectedTable.hasBaseColumns() || introspectedTable
          .hasBLOBColumns());
  return rc;
}

相关文章

微信公众号

最新文章

更多

TableConfiguration类方法