org.apache.openjpa.kernel.QueryImpl.compilationFromCache()方法的使用及代码示例

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

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

QueryImpl.compilationFromCache介绍

[英]Find the cached compilation for the current query, creating one if it does not exist.
[中]查找当前查询的缓存编译,如果不存在,则创建一个。

代码示例

代码示例来源:origin: org.apache.openjpa/openjpa-kernel

/**
 * Compile query properties.
 */
private Compilation compileForCompilation() {
  if (_compiled != null || _compiling)
    return _compiled;
  assertNotSerialized();
  assertOpen();
  boolean readOnly = _readOnly;
  _readOnly = false;
  _compiling = true;
  try {
    _compiled = compilationFromCache();
    return _compiled;
  } catch (OpenJPAException ke) {
    throw ke;
  } catch (RuntimeException re) {
    throw new GeneralException(re);
  } finally {
    _compiling = false;
    _readOnly = readOnly;
  }
}

代码示例来源:origin: org.apache.openjpa/openjpa-all

/**
 * Compile query properties.
 */
private Compilation compileForCompilation() {
  if (_compiled != null || _compiling)
    return _compiled;
  assertNotSerialized();
  assertOpen();
  boolean readOnly = _readOnly;
  _readOnly = false;
  _compiling = true;
  try {
    _compiled = compilationFromCache();
    return _compiled;
  } catch (OpenJPAException ke) {
    throw ke;
  } catch (RuntimeException re) {
    throw new GeneralException(re);
  } finally {
    _compiling = false;
    _readOnly = readOnly;
  }
}

代码示例来源:origin: org.apache.openjpa/com.springsource.org.apache.openjpa

/**
 * Compile query properties.
 */
private Compilation compileForCompilation() {
  if (_compiled != null || _compiling)
    return _compiled;
  assertNotSerialized();
  assertOpen();
  boolean readOnly = _readOnly;
  _readOnly = false;
  _compiling = true;
  try {
    _compiled = compilationFromCache();
    return _compiled;
  } catch (OpenJPAException ke) {
    throw ke;
  } catch (RuntimeException re) {
    throw new GeneralException(re);
  } finally {
    _compiling = false;
    _readOnly = readOnly;
  }
}

代码示例来源:origin: org.apache.openejb.patch/openjpa-kernel

/**
 * Compile query properties.
 */
private Compilation compileForCompilation() {
  if (_compiled != null || _compiling)
    return _compiled;
  assertNotSerialized();
  assertOpen();
  boolean readOnly = _readOnly;
  _readOnly = false;
  _compiling = true;
  try {
    _compiled = compilationFromCache();
    return _compiled;
  } catch (OpenJPAException ke) {
    throw ke;
  } catch (RuntimeException re) {
    throw new GeneralException(re);
  } finally {
    _compiling = false;
    _readOnly = readOnly;
  }
}

代码示例来源:origin: org.apache.openejb.patch/openjpa

/**
 * Compile query properties.
 */
private Compilation compileForCompilation() {
  if (_compiled != null || _compiling)
    return _compiled;
  assertNotSerialized();
  assertOpen();
  boolean readOnly = _readOnly;
  _readOnly = false;
  _compiling = true;
  try {
    _compiled = compilationFromCache();
    return _compiled;
  } catch (OpenJPAException ke) {
    throw ke;
  } catch (RuntimeException re) {
    throw new GeneralException(re);
  } finally {
    _compiling = false;
    _readOnly = readOnly;
  }
}

相关文章

微信公众号

最新文章

更多