本文整理了Java中org.apache.openjpa.kernel.Query.getLanguage
方法的一些代码示例,展示了Query.getLanguage
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.getLanguage
方法的具体详情如下:
包路径:org.apache.openjpa.kernel.Query
类名称:Query
方法名:getLanguage
暂无
代码示例来源:origin: org.apache.openjpa/openjpa-kernel
public String getLanguage() {
try {
return _query.getLanguage();
} catch (RuntimeException re) {
throw translate(re);
}
}
代码示例来源:origin: org.apache.openjpa/com.springsource.org.apache.openjpa
public String getLanguage() {
try {
return _query.getLanguage();
} catch (RuntimeException re) {
throw translate(re);
}
}
代码示例来源:origin: org.apache.openejb.patch/openjpa
public String getLanguage() {
try {
return _query.getLanguage();
} catch (RuntimeException re) {
throw translate(re);
}
}
代码示例来源:origin: org.apache.openjpa/openjpa-all
public String getLanguage() {
try {
return _query.getLanguage();
} catch (RuntimeException re) {
throw translate(re);
}
}
代码示例来源:origin: org.apache.openejb.patch/openjpa-kernel
public String getLanguage() {
try {
return _query.getLanguage();
} catch (RuntimeException re) {
throw translate(re);
}
}
代码示例来源:origin: org.apache.openjpa/openjpa-jdbc
public Boolean register(String id, Query query, FetchConfiguration hints) {
if (id == null
|| query == null
|| QueryLanguages.LANG_SQL.equals(query.getLanguage())
|| QueryLanguages.LANG_METHODQL.equals(query.getLanguage())
|| isHinted(hints, QueryHints.HINT_IGNORE_PREPARED_QUERY)
|| isHinted(hints, QueryHints.HINT_INVALIDATE_PREPARED_QUERY))
return Boolean.FALSE;
if (Boolean.FALSE.equals(isCachable(id)))
return Boolean.FALSE;
PreparedQuery cached = get(id);
if (cached != null)
return null; // implies that it is already cached
PreparedQuery newEntry = new PreparedQueryImpl(id, query);
return cache(newEntry);
}
代码示例来源:origin: org.apache.openjpa/openjpa-all
public Boolean register(String id, Query query, FetchConfiguration hints) {
if (id == null
|| query == null
|| QueryLanguages.LANG_SQL.equals(query.getLanguage())
|| QueryLanguages.LANG_METHODQL.equals(query.getLanguage())
|| isHinted(hints, QueryHints.HINT_IGNORE_PREPARED_QUERY)
|| isHinted(hints, QueryHints.HINT_INVALIDATE_PREPARED_QUERY))
return Boolean.FALSE;
if (Boolean.FALSE.equals(isCachable(id)))
return Boolean.FALSE;
PreparedQuery cached = get(id);
if (cached != null)
return null; // implies that it is already cached
PreparedQuery newEntry = new PreparedQueryImpl(id, query);
return cache(newEntry);
}
代码示例来源:origin: org.apache.openejb.patch/openjpa
public Boolean register(String id, Query query, FetchConfiguration hints) {
if (id == null
|| query == null
|| QueryLanguages.LANG_SQL.equals(query.getLanguage())
|| QueryLanguages.LANG_METHODQL.equals(query.getLanguage())
|| isHinted(hints, QueryHints.HINT_IGNORE_PREPARED_QUERY)
|| isHinted(hints, QueryHints.HINT_INVALIDATE_PREPARED_QUERY))
return Boolean.FALSE;
if (Boolean.FALSE.equals(isCachable(id)))
return Boolean.FALSE;
PreparedQuery cached = get(id);
if (cached != null)
return null; // implies that it is already cached
PreparedQuery newEntry = new PreparedQueryImpl(id, query);
return cache(newEntry);
}
代码示例来源:origin: org.apache.openejb.patch/openjpa-jdbc
public Boolean register(String id, Query query, FetchConfiguration hints) {
if (id == null
|| query == null
|| QueryLanguages.LANG_SQL.equals(query.getLanguage())
|| QueryLanguages.LANG_METHODQL.equals(query.getLanguage())
|| isHinted(hints, QueryHints.HINT_IGNORE_PREPARED_QUERY)
|| isHinted(hints, QueryHints.HINT_INVALIDATE_PREPARED_QUERY))
return Boolean.FALSE;
if (Boolean.FALSE.equals(isCachable(id)))
return Boolean.FALSE;
PreparedQuery cached = get(id);
if (cached != null)
return null; // implies that it is already cached
PreparedQuery newEntry = new PreparedQueryImpl(id, query);
return cache(newEntry);
}
代码示例来源:origin: org.apache.openjpa/openjpa-all
/**
* Initialize this instance from the values held in the
* specified {@link Query}.
*/
public void setFrom(Query query) {
_language = query.getLanguage();
_candidate = query.getCandidateType();
_res = query.getResultType();
_query = query.getQueryString();
}
代码示例来源:origin: org.apache.openjpa/openjpa-kernel
/**
* Initialize this instance from the values held in the
* specified {@link Query}.
*/
public void setFrom(Query query) {
_language = query.getLanguage();
_candidate = query.getCandidateType();
_res = query.getResultType();
_query = query.getQueryString();
}
代码示例来源:origin: org.apache.openejb.patch/openjpa-kernel
/**
* Initialize this instance from the values held in the
* specified {@link Query}.
*/
public void setFrom(Query query) {
_language = query.getLanguage();
_candidate = query.getCandidateType();
_res = query.getResultType();
_query = query.getQueryString();
}
代码示例来源:origin: org.apache.openjpa/com.springsource.org.apache.openjpa
/**
* Initialize this instance from the values held in the
* specified {@link Query}.
*/
public void setFrom(Query query) {
_language = query.getLanguage();
_candidate = query.getCandidateType();
_res = query.getResultType();
_query = query.getQueryString();
}
代码示例来源:origin: org.apache.openejb.patch/openjpa
/**
* Initialize this instance from the values held in the
* specified {@link Query}.
*/
public void setFrom(Query query) {
_language = query.getLanguage();
_candidate = query.getCandidateType();
_res = query.getResultType();
_query = query.getQueryString();
}
代码示例来源:origin: org.apache.openjpa/openjpa-all
public OpenJPAQuery createQuery(Query query) {
if (query == null)
return createQuery((String) null);
assertNotCloseInvoked();
org.apache.openjpa.kernel.Query q = ((QueryImpl) query).getDelegate();
return newQueryImpl(_broker.newQuery(q.getLanguage(), q), null);
}
代码示例来源:origin: org.apache.openejb.patch/openjpa
public OpenJPAQuery createQuery(Query query) {
if (query == null)
return createQuery((String) null);
assertNotCloseInvoked();
org.apache.openjpa.kernel.Query q = ((QueryImpl) query).getDelegate();
return newQueryImpl(_broker.newQuery(q.getLanguage(), q), null);
}
代码示例来源:origin: org.apache.openejb.patch/openjpa
/**
* Constructor; supply factory exception translator and delegate.
*
* @param em The EntityManager which created this query
* @param ret Exception translator for this query
* @param query The underlying "kernel" query.
*/
public QueryImpl(EntityManagerImpl em, RuntimeExceptionTranslator ret, org.apache.openjpa.kernel.Query query,
QueryMetaData qmd) {
super(qmd, em);
_query = new DelegatingQuery(query, ret);
_lock = new ReentrantLock();
if(query.getLanguage() == QueryLanguages.LANG_SQL) {
_convertPositionalParams = false;
}
else {
Compatibility compat = query.getStoreContext().getConfiguration().getCompatibilityInstance();
_convertPositionalParams = compat.getConvertPositionalParametersToNamed();
}
}
代码示例来源:origin: org.apache.openjpa/com.springsource.org.apache.openjpa
public OpenJPAQuery createQuery(Query query) {
if (query == null)
return createQuery((String) null);
assertNotCloseInvoked();
org.apache.openjpa.kernel.Query q = ((QueryImpl) query).getDelegate();
return new QueryImpl(this, ret, _broker.newQuery(q.getLanguage(),
q));
}
代码示例来源:origin: org.apache.openjpa/openjpa-persistence
public OpenJPAQuery createQuery(Query query) {
if (query == null)
return createQuery((String) null);
assertNotCloseInvoked();
org.apache.openjpa.kernel.Query q = ((QueryImpl) query).getDelegate();
return newQueryImpl(_broker.newQuery(q.getLanguage(), q), null);
}
代码示例来源:origin: org.apache.openejb.patch/openjpa-persistence
public OpenJPAQuery createQuery(Query query) {
if (query == null)
return createQuery((String) null);
assertNotCloseInvoked();
org.apache.openjpa.kernel.Query q = ((QueryImpl) query).getDelegate();
return newQueryImpl(_broker.newQuery(q.getLanguage(), q), null);
}
内容来源于网络,如有侵权,请联系作者删除!