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