org.apache.ibatis.executor.Executor.isClosed()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(257)

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

Executor.isClosed介绍

暂无

代码示例

代码示例来源:origin: camunda/camunda-bpm-platform

@Override
public boolean isClosed() {
 return delegate.isClosed();
}

代码示例来源:origin: org.mybatis/mybatis

@Override
public boolean isClosed() {
 return delegate.isClosed();
}

代码示例来源:origin: org.mybatis/mybatis

private <E> List<E> selectList() throws SQLException {
 Executor localExecutor = executor;
 if (Thread.currentThread().getId() != this.creatorThreadId || localExecutor.isClosed()) {
  localExecutor = newExecutor();
 }
 try {
  return localExecutor.<E> query(mappedStatement, parameterObject, RowBounds.DEFAULT, Executor.NO_RESULT_HANDLER, cacheKey, boundSql);
 } finally {
  if (localExecutor != executor) {
   localExecutor.close(false);
  }
 }
}

代码示例来源:origin: camunda/camunda-bpm-platform

private <E> List<E> selectList() throws SQLException {
 Executor localExecutor = executor;
 if (Thread.currentThread().getId() != this.creatorThreadId || localExecutor.isClosed()) {
  localExecutor = newExecutor();
 }
 try {
  return localExecutor.<E> query(mappedStatement, parameterObject, RowBounds.DEFAULT, Executor.NO_RESULT_HANDLER, cacheKey, boundSql);
 } finally {
  if (localExecutor != executor) {
   localExecutor.close(false);
  }
 }
}

代码示例来源:origin: org.apache.ibatis/ibatis-core

public boolean isClosed() {
 return delegate.isClosed();
}

代码示例来源:origin: ldlqdsdcn/eidea4

@Override
public boolean isClosed() {
  return executor.isClosed();
}

代码示例来源:origin: org.apache.ibatis/ibatis-core

private List selectList() throws SQLException {
 Executor localExecutor = executor;
 if (localExecutor.isClosed()) {
  localExecutor = newExecutor();
 }
 try {
  return localExecutor.query(mappedStatement, parameterObject, RowBounds.DEFAULT, Executor.NO_RESULT_HANDLER);
 } finally {
  if (localExecutor != executor) {
   localExecutor.close(false);
  }
 }
}

相关文章