public void setResultMapping(Class scope, String name) { try { _query.setResultMapping(scope, name); } catch (RuntimeException re) { throw translate(re); } }
public void setResultMapping(Class scope, String name) { try { _query.setResultMapping(scope, name); } catch (RuntimeException re) { throw translate(re); } }
public void setResultMapping(Class scope, String name) { try { _query.setResultMapping(scope, name); } catch (RuntimeException re) { throw translate(re); } }
public void setResultMapping(Class scope, String name) { try { _query.setResultMapping(scope, name); } catch (RuntimeException re) { throw translate(re); } }
public void setResultMapping(Class scope, String name) { try { _query.setResultMapping(scope, name); } catch (RuntimeException re) { throw translate(re); } }
/** * Set query template information into the given concrete * query instance. However, the language, query string, and * candidate class are assumed to be declared in the query * instantiation, and hints are not transferred. */ public void setInto(Query query) { if (_candidate != null) query.setCandidateType(_candidate, true); if (!StringUtils.isEmpty(_query)) query.setQuery(_query); if (_res != null) query.setResultType(_res); if (_readOnly != null) query.setReadOnly(_readOnly.booleanValue()); if (_resultSetMappingName != null) query.setResultMapping(null, _resultSetMappingName); }
/** * Set query template information into the given concrete * query instance. However, the language, query string, and * candidate class are assumed to be declared in the query * instantiation, and hints are not transferred. */ public void setInto(Query query) { if (_candidate != null) query.setCandidateType(_candidate, true); if (!StringUtils.isEmpty(_query)) query.setQuery(_query); if (_res != null) query.setResultType(_res); if (_readOnly != null) query.setReadOnly(_readOnly.booleanValue()); if (_resultSetMappingName != null) query.setResultMapping(null, _resultSetMappingName); }
/** * Set query template information into the given concrete * query instance. However, the language, query string, and * candidate class are assumed to be declared in the query * instantiation, and hints are not transferred. */ public void setInto(Query query) { if (_candidate != null) query.setCandidateType(_candidate, true); if (!StringUtils.isEmpty(_query)) query.setQuery(_query); if (_res != null) query.setResultType(_res); if (_readOnly != null) query.setReadOnly(_readOnly.booleanValue()); if (_resultSetMappingName != null) query.setResultMapping(null, _resultSetMappingName); }
public OpenJPAQuery createNativeQuery(String query, String mappingName) { assertNotCloseInvoked(); validateSQL(query); org.apache.openjpa.kernel.Query kernelQuery = _broker.newQuery( QueryLanguages.LANG_SQL, query); kernelQuery.setResultMapping(null, mappingName); return newQueryImpl(kernelQuery, null); }
public OpenJPAQuery createNativeQuery(String query, String mappingName) { assertNotCloseInvoked(); validateSQL(query); org.apache.openjpa.kernel.Query kernelQuery = _broker.newQuery( QueryLanguages.LANG_SQL, query); kernelQuery.setResultMapping(null, mappingName); return newQueryImpl(kernelQuery, null); }
public OpenJPAQuery createNativeQuery(String query, String mappingName) { assertNotCloseInvoked(); validateSQL(query); org.apache.openjpa.kernel.Query kernelQuery = _broker.newQuery( QueryLanguages.LANG_SQL, query); kernelQuery.setResultMapping(null, mappingName); return newQueryImpl(kernelQuery, null); }
public OpenJPAQuery createNativeQuery(String query, String mappingName) { assertNotCloseInvoked(); validateSQL(query); org.apache.openjpa.kernel.Query kernelQuery = _broker.newQuery( QueryLanguages.LANG_SQL, query); kernelQuery.setResultMapping(null, mappingName); return newQueryImpl(kernelQuery, null); }
public OpenJPAQuery createNativeQuery(String query, String mappingName) { assertNotCloseInvoked(); validateSQL(query); org.apache.openjpa.kernel.Query kernelQuery = _broker.newQuery( QueryLanguages.LANG_SQL, query); kernelQuery.setResultMapping(null, mappingName); return new QueryImpl(this, ret, kernelQuery); }
/** * Set query template information into the given concrete * query instance. However, the language, query string, and * candidate class are assumed to be declared in the query * instantiation, and hints are not transferred. */ public void setInto(Query query) { if (_candidate != null) query.setCandidateType(_candidate, true); if (!StringUtil.isEmpty(_query)) query.setQuery(_query); if (_res != null) query.setResultType(_res); if (_readOnly != null) query.setReadOnly(_readOnly.booleanValue()); if (_resultSetMappingName != null) query.setResultMapping(null, _resultSetMappingName); }
/** * Set query template information into the given concrete * query instance. However, the language, query string, and * candidate class are assumed to be declared in the query * instantiation, and hints are not transferred. */ public void setInto(Query query) { if (_candidate != null) query.setCandidateType(_candidate, true); if (!StringUtil.isEmpty(_query)) query.setQuery(_query); if (_res != null) query.setResultType(_res); if (_readOnly != null) query.setReadOnly(_readOnly.booleanValue()); if (_resultSetMappingName != null) query.setResultMapping(null, _resultSetMappingName); }