Package | Description |
---|---|
javax.persistence | |
org.hibernate.jpa |
Defines Hibernate implementation of Java Persistence specification.
|
org.hibernate.jpa.criteria.compile | |
org.hibernate.jpa.internal | |
org.hibernate.jpa.spi | |
org.hibernate.search.jpa |
Modifier and Type | Interface and Description |
---|---|
interface |
StoredProcedureQuery
Interface used to control stored procedure query execution.
|
interface |
TypedQuery<X>
Interface used to control the execution of typed queries.
|
Modifier and Type | Method and Description |
---|---|
Query |
EntityManager.createNamedQuery(String name)
Create an instance of
Query for executing a named query
(in the Java Persistence query language or in native SQL). |
Query |
EntityManager.createNativeQuery(String sqlString)
Create an instance of
Query for executing
a native SQL statement, e.g., for update or delete. |
Query |
EntityManager.createNativeQuery(String sqlString,
Class resultClass)
Create an instance of
Query for executing
a native SQL query. |
Query |
EntityManager.createNativeQuery(String sqlString,
String resultSetMapping)
Create an instance of
Query for executing
a native SQL query. |
Query |
EntityManager.createQuery(CriteriaDelete deleteQuery)
Create an instance of Query for executing a criteria
delete query.
|
Query |
EntityManager.createQuery(CriteriaUpdate updateQuery)
Create an instance of Query for executing a criteria
update query.
|
Query |
EntityManager.createQuery(String qlString)
Create an instance of
Query for executing a
Java Persistence query language statement. |
Query |
QueryTimeoutException.getQuery()
Returns the query that caused this exception.
|
Query |
Query.setFirstResult(int startPosition)
Set the position of the first result to retrieve.
|
Query |
Query.setFlushMode(FlushModeType flushMode)
Set the flush mode type to be used for the query execution.
|
Query |
Query.setHint(String hintName,
Object value)
Set a query property or hint.
|
Query |
Query.setLockMode(LockModeType lockMode)
Set the lock mode type to be used for the query execution.
|
Query |
Query.setMaxResults(int maxResult)
Set the maximum number of results to retrieve.
|
Query |
Query.setParameter(int position,
Calendar value,
TemporalType temporalType)
Bind an instance of
java.util.Calendar to a positional
parameter. |
Query |
Query.setParameter(int position,
Date value,
TemporalType temporalType)
Bind an instance of
java.util.Date to a positional parameter. |
Query |
Query.setParameter(int position,
Object value)
Bind an argument to a positional parameter.
|
Query |
Query.setParameter(Parameter<Calendar> param,
Calendar value,
TemporalType temporalType)
Bind an instance of
java.util.Calendar to a Parameter object. |
Query |
Query.setParameter(Parameter<Date> param,
Date value,
TemporalType temporalType)
Bind an instance of
java.util.Date to a Parameter object. |
<T> Query |
Query.setParameter(Parameter<T> param,
T value)
Bind the value of a
Parameter object. |
Query |
Query.setParameter(String name,
Calendar value,
TemporalType temporalType)
Bind an instance of
java.util.Calendar to a named parameter. |
Query |
Query.setParameter(String name,
Date value,
TemporalType temporalType)
Bind an instance of
java.util.Date to a named parameter. |
Query |
Query.setParameter(String name,
Object value)
Bind an argument to a named parameter.
|
Modifier and Type | Method and Description |
---|---|
void |
EntityManagerFactory.addNamedQuery(String name,
Query query)
Define the query, typed query, or stored procedure query as
a named query such that future query objects can be created
from it using the createNamedQuery methods.
|
Constructor and Description |
---|
QueryTimeoutException(Query query)
Constructs a new
QueryTimeoutException exception
with the specified query. |
QueryTimeoutException(String message,
Throwable cause,
Query query)
Constructs a new
QueryTimeoutException exception
with the specified detail message, cause, and query. |
Modifier and Type | Interface and Description |
---|---|
interface |
HibernateQuery
Marker interface for Hibernate generated JPA queries so that we can access the underlying Hibernate query objects.
|
Modifier and Type | Class and Description |
---|---|
class |
CriteriaQueryTypeQueryAdapter<X> |
Modifier and Type | Method and Description |
---|---|
Query |
CriteriaInterpretation.buildCompiledQuery(HibernateEntityManagerImplementor entityManager,
InterpretedParameterMetadata interpretedParameterMetadata)
Generate a
Query instance given the interpreted criteria compiled against the
passed EntityManager. |
Query |
CriteriaCompiler.compile(CompilableCriteria criteria) |
Modifier and Type | Class and Description |
---|---|
class |
QueryImpl<X>
Hibernate implementation of both the
Query and TypedQuery contracts. |
class |
StoredProcedureQueryImpl |
Modifier and Type | Method and Description |
---|---|
Query |
StoredProcedureQueryImpl.setLockMode(LockModeType lockMode) |
Modifier and Type | Method and Description |
---|---|
void |
EntityManagerFactoryImpl.addNamedQuery(String name,
Query query) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractQueryImpl<X>
Base class for implementing both
Query and TypedQuery , including
query references built from criteria queries. |
class |
BaseQueryImpl
Intended as the base class for all
Query implementations, including
TypedQuery and StoredProcedureQuery . |
Modifier and Type | Method and Description |
---|---|
Query |
AbstractEntityManagerImpl.createNamedQuery(String name) |
Query |
AbstractEntityManagerImpl.createNativeQuery(String sqlString) |
Query |
AbstractEntityManagerImpl.createNativeQuery(String sqlString,
Class resultClass) |
Query |
AbstractEntityManagerImpl.createNativeQuery(String sqlString,
String resultSetMapping) |
Query |
AbstractEntityManagerImpl.createQuery(CriteriaDelete criteriaDelete) |
Query |
AbstractEntityManagerImpl.createQuery(CriteriaUpdate criteriaUpdate) |
Query |
AbstractEntityManagerImpl.createQuery(String jpaqlString) |
Query |
ParameterRegistration.getQuery()
Access to the query that this parameter belongs to.
|
Modifier and Type | Interface and Description |
---|---|
interface |
FullTextQuery
The base interface for lucene powered searches.
|
Copyright © 2017 JBoss by Red Hat. All rights reserved.