org.apache.ibatis.session.Configuration.getMappedStatementNames()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(122)

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

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;
}

相关文章

微信公众号

最新文章

更多

Configuration类方法