Uses of Interface
org.hibernate.query.NativeQuery
Packages that use NativeQuery
Package
Description
This package defines the central Hibernate APIs, beginning with
SessionFactory, which represents an instance of
Hibernate at runtime and is the source of new instances of
Session and StatelessSession,
the most important APIs exposing persistence-related operations for
entities.This package defines some central internal SPI abstractions
used throughout the implementation of Hibernate.
Everything related to HQL/JPQL, native SQL, and criteria queries.
SPIs for native SQL query support.
-
Uses of NativeQuery in org.hibernate
Methods in org.hibernate that return NativeQueryModifier and TypeMethodDescription<R> NativeQuery<R> SharedSessionContract.createNamedQuery(String name, String resultSetMappingName) <R> NativeQuery<R> SharedSessionContract.createNamedQuery(String name, String resultSetMappingName, Class<R> resultClass) Session.createNativeQuery(String queryString) Deprecated.NativeQuery<?> SharedSessionContract.createNativeQuery(String sqlString) Create aNativeQueryinstance for the given native SQL query.<R> NativeQuery<R> SharedSessionContract.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> SharedSessionContract.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.NativeQuery<?> SharedSessionContract.createNativeQuery(String sql, String resultSetMapping) <R> NativeQuery<R> SharedSessionContract.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.Session.getNamedNativeQuery(String name) Deprecated.(since 8.0) Use #createNamedQuery instead. -
Uses of NativeQuery in org.hibernate.engine.spi
Methods in org.hibernate.engine.spi that return NativeQueryModifier and TypeMethodDescription<R> NativeQuery<R> SessionLazyDelegator.createNamedQuery(String name, String resultSetMappingName) <R> NativeQuery<R> SessionLazyDelegator.createNamedQuery(String name, String resultSetMappingName, Class<R> resultClass) SessionLazyDelegator.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) SessionDelegatorBaseImpl.getNamedNativeQuery(String name) SessionLazyDelegator.getNamedNativeQuery(String name) -
Uses of NativeQuery in org.hibernate.query
Methods in org.hibernate.query that return NativeQueryModifier and TypeMethodDescriptionNativeQuery.addAttributeResult(String columnAlias, SingularAttribute attribute) Deprecated.Use ResultSetMapping, or similar approach pending the outcome of this Jakarta Persistence request.NativeQuery.addAttributeResult(String columnAlias, Class entityJavaType, String attributePath) Deprecated.Use ResultSetMapping, or similar approach pending the outcome of this Jakarta Persistence request.NativeQuery.addAttributeResult(String columnAlias, String entityName, String attributePath) Deprecated.Use ResultSetMapping, or similar approach pending the outcome of this Jakarta Persistence request.Deprecated.Use ResultSetMapping, or similar approach pending the outcome of this Jakarta Persistence request.Deprecated.Use ResultSetMapping, or similar approach pending the outcome of this Jakarta Persistence request.Deprecated.Use ResultSetMapping, or similar approach pending the outcome of this Jakarta Persistence request.Deprecated.Use ResultSetMapping, or similar approach pending the outcome of this Jakarta Persistence request.Deprecated.Use ResultSetMapping, or similar approach pending the outcome of this Jakarta Persistence request.Deprecated.Use ResultSetMapping, or similar approach pending the outcome of this Jakarta Persistence request.Deprecated.Use ResultSetMapping, or similar approach pending the outcome of this Jakarta Persistence request.Deprecated.Use ResultSetMapping, or similar approach pending the outcome of this Jakarta Persistence request.Deprecated.Use ResultSetMapping, or similar approach pending the outcome of this Jakarta Persistence request.NativeQuery.addQueryHint(String hint) Deprecated.Use ResultSetMapping, or similar approach pending the outcome of this Jakarta Persistence request.Deprecated.Use ResultSetMapping, or similar approach pending the outcome of this Jakarta Persistence request.<C> NativeQuery<T> NativeQuery.addScalar(String columnAlias, Class<C> relationalJavaType, AttributeConverter<?, C> converter) Deprecated.Use ResultSetMapping, or similar approach pending the outcome of this Jakarta Persistence request.<C> NativeQuery<T> NativeQuery.addScalar(String columnAlias, Class<C> relationalJavaType, Class<? extends AttributeConverter<?, C>> converter) Deprecated.Use ResultSetMapping, or similar approach pending the outcome of this Jakarta Persistence request.<O,R> NativeQuery <T> NativeQuery.addScalar(String columnAlias, Class<O> domainJavaType, Class<R> jdbcJavaType, AttributeConverter<O, R> converter) Deprecated.Use ResultSetMapping, or similar approach pending the outcome of this Jakarta Persistence request.<O,R> NativeQuery <T> NativeQuery.addScalar(String columnAlias, Class<O> domainJavaType, Class<R> jdbcJavaType, Class<? extends AttributeConverter<O, R>> converter) Deprecated.Use ResultSetMapping, or similar approach pending the outcome of this Jakarta Persistence request.NativeQuery.addScalar(String columnAlias, BasicDomainType type) Deprecated.Use ResultSetMapping, or similar approach pending the outcome of this Jakarta Persistence request.NativeQuery.addScalar(String columnAlias, BasicTypeReference type) Deprecated.Use ResultSetMapping, or similar approach pending the outcome of this Jakarta Persistence request.NativeQuery.addSynchronizedEntityClass(Class entityClass) NativeQuery.addSynchronizedEntityName(String entityName) NativeQuery.addSynchronizedQuerySpace(String querySpace) NativeQuery.setComment(String comment) <P> NativeQuery<T> NativeQuery.setConvertedParameter(int position, P value, Class<? extends AttributeConverter<P, ?>> converter) <P> NativeQuery<T> NativeQuery.setConvertedParameter(String name, P value, Class<? extends AttributeConverter<P, ?>> converter) NativeQuery.setFlushMode(FlushModeType flushMode) Deprecated.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.setQueryPlanCacheable(boolean queryPlanCacheable) NativeQuery.setTimeout(int timeout) NativeQuery.setTimeout(Timeout timeout) Apply a timeout to the corresponding database query.NativeQuery.setTimeout(Integer timeout) -
Uses of NativeQuery in org.hibernate.query.sql.spi
Subinterfaces of NativeQuery in org.hibernate.query.sql.spi