本文整理了Java中org.apache.openjpa.kernel.Query.getBroker
方法的一些代码示例,展示了Query.getBroker
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.getBroker
方法的具体详情如下:
包路径:org.apache.openjpa.kernel.Query
类名称:Query
方法名:getBroker
[英]The broker that generated this query.
[中]生成此查询的代理。
代码示例来源:origin: org.apache.openjpa/openjpa-kernel
public Broker getBroker() {
try {
return _query.getBroker();
} catch (RuntimeException re) {
throw translate(re);
}
}
代码示例来源:origin: org.apache.openejb.patch/openjpa-kernel
public Broker getBroker() {
try {
return _query.getBroker();
} catch (RuntimeException re) {
throw translate(re);
}
}
代码示例来源:origin: org.apache.openjpa/openjpa-all
public Broker getBroker() {
try {
return _query.getBroker();
} catch (RuntimeException re) {
throw translate(re);
}
}
代码示例来源:origin: org.apache.openjpa/com.springsource.org.apache.openjpa
public Broker getBroker() {
try {
return _query.getBroker();
} catch (RuntimeException re) {
throw translate(re);
}
}
代码示例来源:origin: org.apache.openejb.patch/openjpa
public Broker getBroker() {
try {
return _query.getBroker();
} catch (RuntimeException re) {
throw translate(re);
}
}
代码示例来源:origin: org.apache.openjpa/openjpa-all
/**
* Record a key-value pair only only if the given key is supported.
*
* @return FALSE if the key is unrecognized.
* null (i.e. MAY BE) if the key is recognized, but not supported.
* TRUE if the key is supported.
*/
protected Boolean record(String hint, Object value) {
if (hint == null)
return Boolean.FALSE;
if (_supportedHints.contains(hint)) {
if (_hints == null)
_hints = new TreeMap<String, Object>();
_hints.put(hint, value);
return Boolean.TRUE;
}
if (isKnownPrefix(hint)) {
Log log = owner.getDelegate().getBroker().getConfiguration().getLog(OpenJPAConfiguration.LOG_RUNTIME);
String possible = StringDistance.getClosestLevenshteinDistance(hint, getSupportedHints());
if (log.isWarnEnabled())
log.warn(_loc.get("bad-query-hint", hint, possible));
return null; // possible but not registered
}
return Boolean.FALSE; // not possible
}
代码示例来源:origin: org.apache.openejb.patch/openjpa-persistence
/**
* Record a key-value pair only only if the given key is supported.
*
* @return FALSE if the key is unrecognized.
* null (i.e. MAY BE) if the key is recognized, but not supported.
* TRUE if the key is supported.
*/
protected Boolean record(String hint, Object value) {
if (hint == null)
return Boolean.FALSE;
if (_supportedHints.contains(hint)) {
if (_hints == null)
_hints = new TreeMap<String, Object>();
_hints.put(hint, value);
return Boolean.TRUE;
}
if (isKnownPrefix(hint)) {
Log log = owner.getDelegate().getBroker().getConfiguration().getLog(OpenJPAConfiguration.LOG_RUNTIME);
String possible = StringDistance.getClosestLevenshteinDistance(hint, getSupportedHints());
if (log.isWarnEnabled())
log.warn(_loc.get("bad-query-hint", hint, possible));
return null; // possible but not registered
}
return Boolean.FALSE; // not possible
}
代码示例来源:origin: org.apache.openejb.patch/openjpa
/**
* Record a key-value pair only only if the given key is supported.
*
* @return FALSE if the key is unrecognized.
* null (i.e. MAY BE) if the key is recognized, but not supported.
* TRUE if the key is supported.
*/
protected Boolean record(String hint, Object value) {
if (hint == null)
return Boolean.FALSE;
if (_supportedHints.contains(hint)) {
if (_hints == null)
_hints = new TreeMap<String, Object>();
_hints.put(hint, value);
return Boolean.TRUE;
}
if (isKnownPrefix(hint)) {
Log log = owner.getDelegate().getBroker().getConfiguration().getLog(OpenJPAConfiguration.LOG_RUNTIME);
String possible = StringDistance.getClosestLevenshteinDistance(hint, getSupportedHints());
if (log.isWarnEnabled())
log.warn(_loc.get("bad-query-hint", hint, possible));
return null; // possible but not registered
}
return Boolean.FALSE; // not possible
}
代码示例来源:origin: org.apache.openjpa/openjpa-persistence
/**
* Record a key-value pair only only if the given key is supported.
*
* @return FALSE if the key is unrecognized.
* null (i.e. MAY BE) if the key is recognized, but not supported.
* TRUE if the key is supported.
*/
protected Boolean record(String hint, Object value) {
if (hint == null)
return Boolean.FALSE;
if (_supportedHints.contains(hint)) {
if (_hints == null)
_hints = new TreeMap<String, Object>();
_hints.put(hint, value);
return Boolean.TRUE;
}
if (isKnownPrefix(hint)) {
Log log = owner.getDelegate().getBroker().getConfiguration().getLog(OpenJPAConfiguration.LOG_RUNTIME);
String possible = StringDistance.getClosestLevenshteinDistance(hint, getSupportedHints());
if (log.isWarnEnabled())
log.warn(_loc.get("bad-query-hint", hint, possible));
return null; // possible but not registered
}
return Boolean.FALSE; // not possible
}
代码示例来源:origin: org.apache.openjpa/openjpa-all
ClassLoader loader = owner.getDelegate().getBroker().getClassLoader();
if (QueryHints.HINT_SUBCLASSES.equals(key)) {
if (value instanceof String)
代码示例来源:origin: org.apache.openejb.patch/openjpa
ClassLoader loader = owner.getDelegate().getBroker().getClassLoader();
if (QueryHints.HINT_SUBCLASSES.equals(key)) {
if (value instanceof String)
代码示例来源:origin: org.apache.openjpa/openjpa-persistence
ClassLoader loader = owner.getDelegate().getBroker().getClassLoader();
if (QueryHints.HINT_SUBCLASSES.equals(key)) {
if (value instanceof String)
代码示例来源:origin: org.apache.openejb.patch/openjpa-persistence
ClassLoader loader = owner.getDelegate().getBroker().getClassLoader();
if (QueryHints.HINT_SUBCLASSES.equals(key)) {
if (value instanceof String)
内容来源于网络,如有侵权,请联系作者删除!