本文整理汇总了Java中org.mybatis.generator.api.IntrospectedTable.TargetRuntime类的典型用法代码示例。如果您正苦于以下问题:Java TargetRuntime类的具体用法?Java TargetRuntime怎么用?Java TargetRuntime使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TargetRuntime类属于org.mybatis.generator.api.IntrospectedTable包,在下文中一共展示了TargetRuntime类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: generateSQLExampleWhereClause
import org.mybatis.generator.api.IntrospectedTable.TargetRuntime; //导入依赖的package包/类
/**
* 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;
}
开发者ID:bandaotixi,项目名称:generator_mybatis,代码行数:27,代码来源:BaseRules.java
示例2: generateSQLExampleWhereClause
import org.mybatis.generator.api.IntrospectedTable.TargetRuntime; //导入依赖的package包/类
/**
* 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
*/
@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;
}
开发者ID:nextyu,项目名称:summer-mybatis-generator,代码行数:28,代码来源:BaseRules.java
示例3: clientSelectByExampleWithBLOBsMethodGenerated
import org.mybatis.generator.api.IntrospectedTable.TargetRuntime; //导入依赖的package包/类
@Override
public boolean clientSelectByExampleWithBLOBsMethodGenerated(Method method,
Interface interfaze, IntrospectedTable introspectedTable) {
if (introspectedTable.getTargetRuntime() == TargetRuntime.MYBATIS3) {
copyAndAddMethod(method, interfaze);
}
return true;
}
开发者ID:bandaotixi,项目名称:generator_mybatis,代码行数:9,代码来源:RowBoundsPlugin.java
示例4: clientSelectByExampleWithoutBLOBsMethodGenerated
import org.mybatis.generator.api.IntrospectedTable.TargetRuntime; //导入依赖的package包/类
@Override
public boolean clientSelectByExampleWithoutBLOBsMethodGenerated(
Method method, Interface interfaze,
IntrospectedTable introspectedTable) {
if (introspectedTable.getTargetRuntime() == TargetRuntime.MYBATIS3) {
copyAndAddMethod(method, interfaze);
}
return true;
}
开发者ID:bandaotixi,项目名称:generator_mybatis,代码行数:10,代码来源:RowBoundsPlugin.java
示例5: sqlMapSelectByExampleWithoutBLOBsElementGenerated
import org.mybatis.generator.api.IntrospectedTable.TargetRuntime; //导入依赖的package包/类
@Override
public boolean sqlMapSelectByExampleWithoutBLOBsElementGenerated(
XmlElement element, IntrospectedTable introspectedTable) {
if (introspectedTable.getTargetRuntime() == TargetRuntime.MYBATIS3) {
copyAndSaveElement(element, introspectedTable.getFullyQualifiedTable());
}
return true;
}
开发者ID:bandaotixi,项目名称:generator_mybatis,代码行数:9,代码来源:RowBoundsPlugin.java
示例6: sqlMapSelectByExampleWithBLOBsElementGenerated
import org.mybatis.generator.api.IntrospectedTable.TargetRuntime; //导入依赖的package包/类
@Override
public boolean sqlMapSelectByExampleWithBLOBsElementGenerated(
XmlElement element, IntrospectedTable introspectedTable) {
if (introspectedTable.getTargetRuntime() == TargetRuntime.MYBATIS3) {
copyAndSaveElement(element, introspectedTable.getFullyQualifiedTable());
}
return true;
}
开发者ID:bandaotixi,项目名称:generator_mybatis,代码行数:9,代码来源:RowBoundsPlugin.java
注:本文中的org.mybatis.generator.api.IntrospectedTable.TargetRuntime类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论