本文整理了Java中org.apache.openjpa.kernel.QueryImpl.compilationFromCache
方法的一些代码示例,展示了QueryImpl.compilationFromCache
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。QueryImpl.compilationFromCache
方法的具体详情如下:
包路径:org.apache.openjpa.kernel.QueryImpl
类名称: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;
}
}
内容来源于网络,如有侵权,请联系作者删除!