It defines these query creation methods in the signature defined by EntityManager. In a way it defines a subset of the EntityManager contract to be reused by both Session and StatelessSession.
| Modifier and Type | Method and Description |
|---|---|
| public Query | Returns: The Query instance for manipulation and executionthe name of a pre-defined, named query name)
Deprecated
as a consequence of
The JPA-defined named query creation method.
Query being deprecated.
|
| public <R> Query | Returns: The Query instance for manipulation and executionthe name of a query defined in metadata name, Class<R> the type of the query result resultClass)
Deprecated
as a consequence of
The JPA-defined named, typed query creation method.
Query being deprecated.
|
| public NativeQuery | Returns: The NativeQuery instance for manipulation and executiona native SQL query string sqlString)
Deprecated
as a consequence of
Create a NativeQuery instance for the given native (SQL) query
NativeQuery being deprecated.
|
| public <R> NativeQuery | Returns: The NativeQuery instance for manipulation and executionNative (SQL) query string sqlString, Class<R> The Java entity type to map results to resultClass)
Deprecated
as a consequence of
Create a NativeQuery instance for the given native (SQL) query using
implicit mapping to the specified Java type.
NativeQuery being deprecated.
|
| public NativeQuery | Returns: The NativeQuery instance for manipulation and executionNative (SQL) query string sqlString, String The explicit (named) result mapping resultSetMapping)
Deprecated
as a consequence of
Create a NativeQuery instance for the given native (SQL) query using
implicit mapping to the specified Java type.
NativeQuery being deprecated.
|
| public Query | Returns: The Query instance for manipulation and executionThe HQL/JPQL query queryString)
Deprecated
as a consequence of
Create a Query being deprecated.
Query instance for the given HQL/JPQL query string.
|
| public <R> Query | Returns: The Query instance for manipulation and executionThe HQL/JPQL query queryString, Class<R> The type of the query result resultClass)
Deprecated
as a consequence of
Create a typed Query being deprecated.
Query instance for the given HQL/JPQL query string.
|
| public <T> Query | |
| public Query | |
| public Query | |
| public default SQLQuery | Returns: The query instance for manipulation and executionThe SQL query queryString)
Deprecated
(since 5.2) use
Create a createNativeQuery(String) instead
NativeQuery instance for the given SQL query string.
|
| public NativeQuery | Returns: The NativeQuery instance for manipulation and executionThe name of the pre-defined query name)
Deprecated
as a consequence of
Get a NativeQuery instance for a named native SQL query
NativeQuery being deprecated.
|
| public Query | Returns: The Query instance for manipulation and executionthe name of a pre-defined, named query queryName)
Deprecated
as a consequence of
Create a Query being deprecated.
Query instance for the named query.
|
| public default Query | Returns: The NativeQuery instance for manipulation and executionThe name of the pre-defined query name)
Deprecated
(since 5.2) use
Get a NativeQuery instance for a named native SQL query
getNamedNativeQuery(String) instead
|
| createNamedQuery | back to summary |
|---|---|
| public Query Deprecated as a consequence of The JPA-defined named query creation method. This form can represent an HQL/JPQL query or a native query.
| |
| createNamedQuery | back to summary |
|---|---|
| public <R> Query Deprecated as a consequence of The JPA-defined named, typed query creation method. This form can only represent an HQL/JPQL query (not a native query).
| |
| createNativeQuery | back to summary |
|---|---|
| public NativeQuery Deprecated as a consequence of Create a NativeQuery instance for the given native (SQL) query
| |
| createNativeQuery | back to summary |
|---|---|
| public <R> NativeQuery Deprecated as a consequence of Create a NativeQuery instance for the given native (SQL) query using implicit mapping to the specified Java type.
| |
| createNativeQuery | back to summary |
|---|---|
| public NativeQuery Deprecated as a consequence of Create a NativeQuery instance for the given native (SQL) query using implicit mapping to the specified Java type.
| |
| createQuery | back to summary |
|---|---|
| public Query Deprecated as a consequence of Create a
| |
| createQuery | back to summary |
|---|---|
| public <R> Query Deprecated as a consequence of Create a typed
| |
| createQuery | back to summary |
|---|---|
| public <T> Query Deprecated as a consequence of | |
| createQuery | back to summary |
|---|---|
| public Query Deprecated as a consequence of | |
| createQuery | back to summary |
|---|---|
| public Query Deprecated as a consequence of | |
| createSQLQuery | back to summary |
|---|---|
| public default SQLQuery Deprecated (since 5.2) use Create a | |
| getNamedNativeQuery | back to summary |
|---|---|
| public NativeQuery Deprecated as a consequence of Get a NativeQuery instance for a named native SQL query
| |
| getNamedQuery | back to summary |
|---|---|
| public Query Deprecated as a consequence of Create a
| |
| getNamedSQLQuery | back to summary |
|---|---|
| public default Query Deprecated (since 5.2) use Get a NativeQuery instance for a named native SQL query | |