本文整理了Java中org.apache.ibatis.session.Configuration.getMappedStatementNames()
方法的一些代码示例,展示了Configuration.getMappedStatementNames()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Configuration.getMappedStatementNames()
方法的具体详情如下:
包路径:org.apache.ibatis.session.Configuration
类名称:Configuration
方法名:getMappedStatementNames
暂无
代码示例来源:origin: baomidou/mybatis-plus
/**
* {@inheritDoc}
*/
@Override
public void onApplicationEvent(ApplicationEvent event) {
if (failFast && event instanceof ContextRefreshedEvent) {
// fail-fast -> check all statements are completed
this.sqlSessionFactory.getConfiguration().getMappedStatementNames();
}
}
}
代码示例来源:origin: org.alfresco/alfresco-repository
/**
* {@inheritDoc}
*/
public void onApplicationEvent(ApplicationEvent event) {
if (failFast && event instanceof ContextRefreshedEvent) {
// fail-fast -> check all statements are completed
this.sqlSessionFactory.getConfiguration().getMappedStatementNames();
}
}
}
代码示例来源:origin: com.baomidou/mybatis-plus-extension
/**
* {@inheritDoc}
*/
@Override
public void onApplicationEvent(ApplicationEvent event) {
if (failFast && event instanceof ContextRefreshedEvent) {
// fail-fast -> check all statements are completed
this.sqlSessionFactory.getConfiguration().getMappedStatementNames();
}
}
}
代码示例来源:origin: chanedi/QuickProject
/**
* {@inheritDoc}
*/
public void onApplicationEvent(ApplicationEvent event) {
if (failFast && event instanceof ContextRefreshedEvent) {
// fail-fast -> check all statements are completed
this.sqlSessionFactory.getConfiguration().getMappedStatementNames();
}
}
代码示例来源:origin: Alfresco/alfresco-repository
/**
* {@inheritDoc}
*/
public void onApplicationEvent(ApplicationEvent event) {
if (failFast && event instanceof ContextRefreshedEvent) {
// fail-fast -> check all statements are completed
this.sqlSessionFactory.getConfiguration().getMappedStatementNames();
}
}
}
代码示例来源:origin: deas/alfresco
/**
* {@inheritDoc}
*/
public void onApplicationEvent(ApplicationEvent event) {
if (failFast && event instanceof ContextRefreshedEvent) {
// fail-fast -> check all statements are completed
this.sqlSessionFactory.getConfiguration().getMappedStatementNames();
}
}
}
代码示例来源:origin: makersoft/mybatis-shards
@Override
public Collection<String> getMappedStatementNames() {
return getConfiguration().getMappedStatementNames();
}
代码示例来源:origin: makersoft/mybatis-shards
@Override
public boolean hasStatement(String statementName, boolean validateIncompleteStatements) {
if (validateIncompleteStatements) {
buildAllStatements();
}
for (SqlSessionFactory sqlSessionFactory : getSqlSessionFactories()) {
try {
boolean has = sqlSessionFactory.getConfiguration().getMappedStatementNames().contains(statementName);
if(has) {
return true;
}
} catch (Exception e) {
// ignore exception
}
}
return false;
}
内容来源于网络,如有侵权,请联系作者删除!