Uses of Interface
org.hibernate.query.NativeQuery
Packages that useNativeQuery
Package
Description
This package defines some central internal SPI abstractions used throughout the implementation of Hibernate.
Everything related to HQL/JPQL, native SQL, and criteria queries.
Implementation of the SPIs for native SQL query support.
SPIs for native SQL query support.
Uses ofNativeQuery inorg.hibernate.engine.spi
Methods inorg.hibernate.engine.spi that returnNativeQueryModifier and TypeMethodDescriptionSessionLazyDelegator.createNativeQuery(String sqlString) Deprecated.SessionLazyDelegator.createNativeQuery(String sqlString,Class resultClass) <R> NativeQuery<R>SessionLazyDelegator.createNativeQuery(String sqlString,Class<R> resultClass,String tableAlias) SessionLazyDelegator.createNativeQuery(String sqlString,String resultSetMappingName) Deprecated.<R> NativeQuery<R>SessionLazyDelegator.createNativeQuery(String sqlString,String resultSetMappingName,Class<R> resultClass) SessionLazyDelegator.getNamedNativeQuery(String name) Deprecated.SessionLazyDelegator.getNamedNativeQuery(String name,String resultSetMapping) Deprecated.Uses ofNativeQuery inorg.hibernate.query
Methods inorg.hibernate.query that returnNativeQueryModifier and TypeMethodDescriptionNativeQuery.addAttributeResult(String columnAlias,SingularAttribute attribute) Defines a result based on a specified attribute.NativeQuery.addAttributeResult(String columnAlias,Class entityJavaType,String attributePath) Defines a result based on a specified attribute.NativeQuery.addAttributeResult(String columnAlias,String entityName,String attributePath) Defines a result based on a specified attribute.Declare a "root" entity, without specifying an alias.Declare a "root" entity, without specifying an alias.Declare a "root" entity.Declare a "root" entity, specifying a lock mode.Declare a "root" entity.Declare a "root" entity, specifying a lock mode.Declare a join fetch result.Declare a join fetch result.Declare a join fetch result, specifying a lock mode.NativeQuery.addQueryHint(String hint) Declare a scalar query result.Declare a scalar query result using the specified result type.<C> NativeQuery<T>NativeQuery.addScalar(String columnAlias,Class<C> relationalJavaType,AttributeConverter<?, C> converter) Declare a scalar query result with an explicit conversion.<C> NativeQuery<T>NativeQuery.addScalar(String columnAlias,Class<C> relationalJavaType,Class<? extendsAttributeConverter<?, C>> converter) Declare a scalar query result with an explicit conversion.<O,R> NativeQuery<T> NativeQuery.addScalar(String columnAlias,Class<O> domainJavaType,Class<R> jdbcJavaType,AttributeConverter<O, R> converter) Declare a scalar query result with an explicit conversion.<O,R> NativeQuery<T> NativeQuery.addScalar(String columnAlias,Class<O> domainJavaType,Class<R> jdbcJavaType,Class<? extendsAttributeConverter<O, R>> converter) Declare a scalar query result with an explicit conversion.NativeQuery.addScalar(String columnAlias,BasicDomainType type) Declare a scalar query result.NativeQuery.addScalar(String columnAlias,BasicTypeReference type) Declare a scalar query result.NativeQuery.addSynchronizedEntityClass(Class entityClass) NativeQuery.addSynchronizedEntityName(String entityName) NativeQuery.addSynchronizedQuerySpace(String querySpace) QueryProducer.createNativeQuery(String sqlString) Deprecated.<R> NativeQuery<R>QueryProducer.createNativeQuery(String sqlString,Class<R> resultClass) Create aNativeQueryinstance for the given native SQL query using an implicit mapping to the specified Java type.<R> NativeQuery<R>QueryProducer.createNativeQuery(String sqlString,Class<R> resultClass,String tableAlias) Create aNativeQueryinstance for the given native SQL query using an implicit mapping to the specified Java entity type.QueryProducer.createNativeQuery(String sqlString,String resultSetMappingName) Deprecated.<R> NativeQuery<R>QueryProducer.createNativeQuery(String sqlString,String resultSetMappingName,Class<R> resultClass) Create aNativeQueryinstance for the given native SQL query using an explicit mapping to the specified Java type.QueryProducer.getNamedNativeQuery(String name) Deprecated.QueryProducer.getNamedNativeQuery(String name,String resultSetMapping) Deprecated.NativeQuery.setCacheable(boolean cacheable) NativeQuery.setCacheMode(CacheMode cacheMode) NativeQuery.setCacheRegion(String cacheRegion) NativeQuery.setCacheRetrieveMode(CacheRetrieveMode cacheRetrieveMode) NativeQuery.setCacheStoreMode(CacheStoreMode cacheStoreMode) NativeQuery.setComment(String comment) NativeQuery.setFetchSize(int fetchSize) NativeQuery.setFirstResult(int startPosition) NativeQuery.setFlushMode(FlushModeType flushMode) Deprecated.NativeQuery.setHibernateFlushMode(FlushMode flushMode) Deprecated.NativeQuery.setHibernateLockMode(LockMode lockMode) NativeQuery.setLockMode(LockModeType lockMode) Not applicable to native SQL queries, due to an unfortunate requirement of the JPA specification.NativeQuery.setLockMode(String alias,LockMode lockMode) Not applicable to native SQL queries.NativeQuery.setLockOptions(LockOptions lockOptions) Deprecated, for removal: This API element is subject to removal in a future version.NativeQuery.setLockScope(PessimisticLockScope lockScope) Apply a scope to any pessimistic locking applied to the query.NativeQuery.setMaxResults(int maxResults) NativeQuery.setParameter(int position,Object value) NativeQuery.setParameter(int position,Instant value,TemporalType temporalType) Deprecated.NativeQuery.setParameter(int position,Calendar value,TemporalType temporalType) Deprecated.NativeQuery.setParameter(int position,Date value,TemporalType temporalType) Deprecated.<P> NativeQuery<T>NativeQuery.setParameter(int position, P val,Type<P> type) <P> NativeQuery<T>NativeQuery.setParameter(int position, P val,Class<P> type) NativeQuery.setParameter(Parameter<Calendar> param,Calendar value,TemporalType temporalType) Deprecated.NativeQuery.setParameter(Parameter<Date> param,Date value,TemporalType temporalType) Deprecated.<P> NativeQuery<T>NativeQuery.setParameter(Parameter<P> param, P value) NativeQuery.setParameter(String name,Object value) NativeQuery.setParameter(String name,Instant value,TemporalType temporalType) Deprecated.NativeQuery.setParameter(String name,Calendar value,TemporalType temporalType) Deprecated.NativeQuery.setParameter(String name,Date value,TemporalType temporalType) Deprecated.<P> NativeQuery<T>NativeQuery.setParameter(String name, P val,Type<P> type) <P> NativeQuery<T>NativeQuery.setParameter(String name, P val,Class<P> type) <P> NativeQuery<T>NativeQuery.setParameter(QueryParameter<P> parameter, P val) <P> NativeQuery<T>NativeQuery.setParameter(QueryParameter<P> parameter, P val,Type<P> type) <P> NativeQuery<T>NativeQuery.setParameter(QueryParameter<P> parameter, P val,Class<P> type) NativeQuery.setParameterList(int position,Object[] values) NativeQuery.setParameterList(int position,Collection values) <P> NativeQuery<T>NativeQuery.setParameterList(int position,Collection<? extends P> values,Type<P> javaType) <P> NativeQuery<T>NativeQuery.setParameterList(int position,Collection<? extends P> values,Class<P> type) <P> NativeQuery<T>NativeQuery.setParameterList(int position, P[] values,Type<P> javaType) <P> NativeQuery<T>NativeQuery.setParameterList(int position, P[] values,Class<P> javaType) NativeQuery.setParameterList(String name,Object[] values) NativeQuery.setParameterList(String name,Collection values) <P> NativeQuery<T>NativeQuery.setParameterList(String name,Collection<? extends P> values,Type<P> type) <P> NativeQuery<T>NativeQuery.setParameterList(String name,Collection<? extends P> values,Class<P> type) <P> NativeQuery<T>NativeQuery.setParameterList(String name, P[] values,Type<P> type) <P> NativeQuery<T>NativeQuery.setParameterList(String name, P[] values,Class<P> type) <P> NativeQuery<T>NativeQuery.setParameterList(QueryParameter<P> parameter,Collection<? extends P> values) <P> NativeQuery<T>NativeQuery.setParameterList(QueryParameter<P> parameter,Collection<? extends P> values,Type<P> type) <P> NativeQuery<T>NativeQuery.setParameterList(QueryParameter<P> parameter,Collection<? extends P> values,Class<P> javaType) <P> NativeQuery<T>NativeQuery.setParameterList(QueryParameter<P> parameter, P[] values) <P> NativeQuery<T>NativeQuery.setParameterList(QueryParameter<P> parameter, P[] values,Type<P> type) <P> NativeQuery<T>NativeQuery.setParameterList(QueryParameter<P> parameter, P[] values,Class<P> javaType) NativeQuery.setProperties(Object bean) NativeQuery.setProperties(Map bean) NativeQuery.setQueryFlushMode(QueryFlushMode queryFlushMode) NativeQuery.setReadOnly(boolean readOnly) NativeQuery.setResultListTransformer(ResultListTransformer<T> transformer) <S> NativeQuery<S>NativeQuery.setResultTransformer(ResultTransformer<S> transformer) Deprecated.NativeQuery.setTimeout(int timeout) NativeQuery.setTimeout(Timeout timeout) Apply a timeout to the corresponding database query.<R> NativeQuery<R>NativeQuery.setTupleTransformer(TupleTransformer<R> transformer) Uses ofNativeQuery inorg.hibernate.query.sql.internal
Classes inorg.hibernate.query.sql.internal that implementNativeQueryMethods inorg.hibernate.query.sql.internal that returnNativeQueryModifier and TypeMethodDescriptionNativeQueryImpl.addScalar(String columnAlias,BasicTypeReference type) Uses ofNativeQuery inorg.hibernate.query.sql.spi
Subinterfaces ofNativeQuery inorg.hibernate.query.sql.spi