本文整理了Java中org.mybatis.generator.config.TableConfiguration.isSelectByExampleStatementEnabled()
方法的一些代码示例,展示了TableConfiguration.isSelectByExampleStatementEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableConfiguration.isSelectByExampleStatementEnabled()
方法的具体详情如下:
包路径:org.mybatis.generator.config.TableConfiguration
类名称:TableConfiguration
方法名:isSelectByExampleStatementEnabled
暂无
代码示例来源:origin: cxjava/mybatis-generator-core
/**
* Implements the rule for generating the select by example without BLOBs
* SQL Map element and DAO method. If the selectByExample statement is
* allowed, then generate the element and method.
*
* @return true if the element and method should be generated
*/
public boolean generateSelectByExampleWithoutBLOBs() {
return tableConfiguration.isSelectByExampleStatementEnabled();
}
代码示例来源:origin: roncoo/roncoo-mybatis-generator
/**
* Implements the rule for generating the select by example without BLOBs
* SQL Map element and DAO method. If the selectByExample statement is
* allowed, then generate the element and method.
*
* @return true if the element and method should be generated
*/
public boolean generateSelectByExampleWithoutBLOBs() {
if (isModelOnly) {
return false;
}
return tableConfiguration.isSelectByExampleStatementEnabled();
}
代码示例来源:origin: org.mybatis.generator/mybatis-generator-core
/**
* Implements the rule for generating the select by example without BLOBs
* SQL Map element and DAO method. If the selectByExample statement is
* allowed, then generate the element and method.
*
* @return true if the element and method should be generated
*/
@Override
public boolean generateSelectByExampleWithoutBLOBs() {
if (isModelOnly) {
return false;
}
return tableConfiguration.isSelectByExampleStatementEnabled();
}
代码示例来源:origin: handosme/mybatis-generator-plus
/**
* Implements the rule for generating the select by example without BLOBs
* SQL Map element and DAO method. If the selectByExample statement is
* allowed, then generate the element and method.
*
* @return true if the element and method should be generated
*/
public boolean generateSelectByExampleWithoutBLOBs() {
if (isModelOnly) {
return false;
}
return tableConfiguration.isSelectByExampleStatementEnabled();
}
代码示例来源: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: cxjava/mybatis-generator-core
/**
* Implements the rule for generating the select by example with BLOBs SQL
* Map element and DAO method. If the table has BLOB fields and the
* selectByExample statement is allowed, then generate the element and
* method.
*
* @return true if the element and method should be generated
*/
public boolean generateSelectByExampleWithBLOBs() {
boolean rc = tableConfiguration.isSelectByExampleStatementEnabled() && introspectedTable.hasBLOBColumns();
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: 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: roncoo/roncoo-mybatis-generator
/**
* Implements the rule for generating the select by example with BLOBs SQL
* Map element and DAO method. If the table has BLOB fields and the
* selectByExample statement is allowed, then generate the element and
* method.
*
* @return true if the element and method should be generated
*/
public boolean generateSelectByExampleWithBLOBs() {
if (isModelOnly) {
return false;
}
boolean rc = tableConfiguration.isSelectByExampleStatementEnabled()
&& introspectedTable.hasBLOBColumns();
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
/**
* Implements the rule for generating the select by example with BLOBs SQL
* Map element and DAO method. If the table has BLOB fields and the
* selectByExample statement is allowed, then generate the element and
* method.
*
* @return true if the element and method should be generated
*/
public boolean generateSelectByExampleWithBLOBs() {
if (isModelOnly) {
return false;
}
boolean rc = tableConfiguration.isSelectByExampleStatementEnabled()
&& introspectedTable.hasBLOBColumns();
return rc;
}
代码示例来源:origin: org.mybatis.generator/mybatis-generator-core
/**
* Implements the rule for generating the select by example with BLOBs SQL
* Map element and DAO method. If the table has BLOB fields and the
* selectByExample statement is allowed, then generate the element and
* method.
*
* @return true if the element and method should be generated
*/
@Override
public boolean generateSelectByExampleWithBLOBs() {
if (isModelOnly) {
return false;
}
boolean rc = tableConfiguration.isSelectByExampleStatementEnabled()
&& introspectedTable.hasBLOBColumns();
return rc;
}
代码示例来源:origin: roncoo/roncoo-mybatis-generator
public boolean generateBlobColumnList() {
if (isModelOnly) {
return false;
}
return introspectedTable.hasBLOBColumns()
&& (tableConfiguration.isSelectByExampleStatementEnabled() || tableConfiguration
.isSelectByPrimaryKeyStatementEnabled());
}
代码示例来源: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: 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: cxjava/mybatis-generator-core
/**
* Implements the rule for generating an example class. The class should be
* generated if the selectByExample or deleteByExample or countByExample
* methods are allowed.
*
* @return true if the example class should be generated
*/
public boolean generateExampleClass() {
boolean rc = tableConfiguration.isSelectByExampleStatementEnabled()
|| tableConfiguration.isDeleteByExampleStatementEnabled()
|| tableConfiguration.isCountByExampleStatementEnabled()
|| tableConfiguration.isUpdateByExampleStatementEnabled();
return rc;
}
代码示例来源:origin: cxjava/mybatis-generator-core
/**
* Implements the rule for generating the SQL example where clause element.
*
* In iBATIS2, generate the element if the selectByExample, deleteByExample,
* updateByExample, or countByExample statements are allowed.
*
* In MyBatis3, generate the element if the selectByExample,
* deleteByExample, or countByExample statements are allowed.
*
* @return true if the SQL where clause element should be generated
*/
public boolean generateSQLExampleWhereClause() {
boolean rc = tableConfiguration.isSelectByExampleStatementEnabled()
|| tableConfiguration.isDeleteByExampleStatementEnabled()
|| tableConfiguration.isCountByExampleStatementEnabled();
if (introspectedTable.getTargetRuntime() == TargetRuntime.IBATIS2) {
rc |= tableConfiguration.isUpdateByExampleStatementEnabled();
}
return rc;
}
内容来源于网络,如有侵权,请联系作者删除!