Package | Description |
---|---|
org.hibernate |
<p>
This package defines the central Hibernate APIs.
|
org.hibernate.engine.spi | |
org.hibernate.jpa.spi | |
org.hibernate.procedure.spi | |
org.hibernate.query | |
org.hibernate.query.spi |
Modifier and Type | Method and Description |
---|---|
Query |
Session.createFilter(Object collection,
String queryString)
Create a
Query instance for the given collection and filter string. |
<T> Query<T> |
Session.createNamedQuery(String name,
Class<T> resultType) |
Query |
Session.createQuery(CriteriaDelete deleteQuery) |
<T> Query<T> |
Session.createQuery(CriteriaQuery<T> criteriaQuery) |
Query |
Session.createQuery(CriteriaUpdate updateQuery) |
Query |
Session.createQuery(String queryString) |
<T> Query<T> |
Session.createQuery(String queryString,
Class<T> resultType) |
Modifier and Type | Method and Description |
---|---|
Query |
SessionDelegatorBaseImpl.createFilter(Object collection,
String queryString) |
Modifier and Type | Method and Description |
---|---|
<T> Query<T> |
HibernateEntityManagerImplementor.createQuery(String jpaqlString,
Class<T> resultClass,
Selection selection,
HibernateEntityManagerImplementor.QueryOptions queryOptions)
Deprecated.
(since 5.2) this method form is used to construct a "compiled" representation of
a JPA Criteria query. However it assumes the old yucky implementation of "compilation" that
converted the Criteria into a HQL/JPQL string. In 6.0 that is re-written from scratch to
compile to SQM, and so this method would not be needed in 6.0
|
Modifier and Type | Interface and Description |
---|---|
interface |
ProcedureCallImplementor<R> |
Modifier and Type | Interface and Description |
---|---|
interface |
NativeQuery<T> |
Modifier and Type | Method and Description |
---|---|
Query<R> |
Query.addQueryHint(String hint) |
Query |
QueryProducer.createNamedQuery(String name)
The JPA-defined named query creation method.
|
<R> Query<R> |
QueryProducer.createNamedQuery(String name,
Class<R> resultClass)
The JPA-defined named, typed query creation method.
|
Query |
QueryProducer.createQuery(String queryString)
Create a
Query instance for the given HQL/JPQL query string. |
<R> Query<R> |
QueryProducer.createQuery(String queryString,
Class<R> resultClass)
Create a typed
Query instance for the given HQL/JPQL query string. |
Query |
QueryProducer.getNamedQuery(String queryName)
Create a
Query instance for the named query. |
default Query<R> |
Query.setBigDecimal(int position,
BigDecimal val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
default Query<R> |
Query.setBigDecimal(String name,
BigDecimal val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
default Query<R> |
Query.setBigInteger(int position,
BigInteger val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
default Query<R> |
Query.setBigInteger(String name,
BigInteger val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
default Query<R> |
Query.setBinary(int position,
byte[] val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
default Query<R> |
Query.setBinary(String name,
byte[] val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
default Query<R> |
Query.setBoolean(int position,
boolean val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
default Query<R> |
Query.setBoolean(String name,
boolean val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
default Query<R> |
Query.setByte(int position,
byte val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
default Query<R> |
Query.setByte(String name,
byte val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
Query<R> |
Query.setCacheable(boolean cacheable) |
Query<R> |
Query.setCacheMode(CacheMode cacheMode) |
Query<R> |
Query.setCacheRegion(String cacheRegion) |
default Query<R> |
Query.setCalendar(int position,
Calendar val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
default Query<R> |
Query.setCalendar(String name,
Calendar value)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
default Query<R> |
Query.setCalendarDate(int position,
Calendar val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
default Query<R> |
Query.setCalendarDate(String name,
Calendar value)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
default Query<R> |
Query.setCharacter(int position,
char val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
default Query<R> |
Query.setCharacter(String name,
char val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
Query<R> |
Query.setComment(String comment) |
default Query<R> |
Query.setDate(int position,
Date val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
default Query<R> |
Query.setDate(String name,
Date val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
default Query<R> |
Query.setDouble(int position,
double val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
default Query<R> |
Query.setDouble(String name,
double val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
Query<R> |
Query.setEntity(int position,
Object val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
Query<R> |
Query.setEntity(String name,
Object val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
Query<R> |
Query.setFetchSize(int fetchSize) |
Query<R> |
Query.setFirstResult(int startPosition) |
default Query<R> |
Query.setFloat(int position,
float val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
default Query<R> |
Query.setFloat(String name,
float val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
default Query<R> |
Query.setFlushMode(FlushMode flushMode)
Deprecated.
(since 5.2) use
setHibernateFlushMode(org.hibernate.FlushMode) instead |
Query<R> |
Query.setFlushMode(FlushModeType flushMode) |
Query<R> |
Query.setHibernateFlushMode(FlushMode flushMode) |
Query<R> |
Query.setHint(String hintName,
Object value) |
default Query<R> |
Query.setInteger(int position,
int val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
default Query<R> |
Query.setInteger(String name,
int val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
default Query<R> |
Query.setLocale(int position,
Locale val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
default Query<R> |
Query.setLocale(String name,
Locale val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
Query<R> |
Query.setLockMode(LockModeType lockMode) |
Query<R> |
Query.setLockMode(String alias,
LockMode lockMode) |
Query<R> |
Query.setLockOptions(LockOptions lockOptions) |
default Query<R> |
Query.setLong(int position,
long val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
default Query<R> |
Query.setLong(String name,
long val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
Query<R> |
Query.setMaxResults(int maxResult) |
Query<R> |
Query.setParameter(int position,
Calendar value,
TemporalType temporalType) |
Query<R> |
Query.setParameter(int position,
Date value,
TemporalType temporalType) |
Query<R> |
Query.setParameter(int position,
Instant value,
TemporalType temporalType) |
Query<R> |
Query.setParameter(int position,
LocalDateTime value,
TemporalType temporalType) |
Query<R> |
Query.setParameter(int position,
Object value) |
Query<R> |
Query.setParameter(int position,
Object val,
Type type) |
Query<R> |
Query.setParameter(int position,
OffsetDateTime value,
TemporalType temporalType) |
<P> Query<R> |
Query.setParameter(int position,
P val,
TemporalType temporalType) |
Query<R> |
Query.setParameter(int position,
ZonedDateTime value,
TemporalType temporalType) |
Query<R> |
Query.setParameter(Parameter<Calendar> param,
Calendar value,
TemporalType temporalType) |
Query<R> |
Query.setParameter(Parameter<Date> param,
Date value,
TemporalType temporalType) |
Query<R> |
Query.setParameter(Parameter<Instant> param,
Instant value,
TemporalType temporalType) |
Query<R> |
Query.setParameter(Parameter<LocalDateTime> param,
LocalDateTime value,
TemporalType temporalType) |
Query<R> |
Query.setParameter(Parameter<OffsetDateTime> param,
OffsetDateTime value,
TemporalType temporalType) |
<T> Query<R> |
Query.setParameter(Parameter<T> param,
T value) |
Query<R> |
Query.setParameter(Parameter<ZonedDateTime> param,
ZonedDateTime value,
TemporalType temporalType) |
<P> Query<R> |
Query.setParameter(QueryParameter<P> parameter,
P val,
TemporalType temporalType) |
<P> Query<R> |
Query.setParameter(QueryParameter<P> parameter,
P val,
Type type) |
<T> Query<R> |
Query.setParameter(QueryParameter<T> parameter,
T val) |
Query<R> |
Query.setParameter(String name,
Calendar value,
TemporalType temporalType) |
Query<R> |
Query.setParameter(String name,
Date value,
TemporalType temporalType) |
Query<R> |
Query.setParameter(String name,
Instant value,
TemporalType temporalType) |
Query<R> |
Query.setParameter(String name,
LocalDateTime value,
TemporalType temporalType) |
Query<R> |
Query.setParameter(String name,
Object value) |
Query<R> |
Query.setParameter(String name,
Object val,
Type type) |
Query<R> |
Query.setParameter(String name,
OffsetDateTime value,
TemporalType temporalType) |
<P> Query<R> |
Query.setParameter(String name,
P val,
TemporalType temporalType) |
Query<R> |
Query.setParameter(String name,
ZonedDateTime value,
TemporalType temporalType) |
<P> Query<R> |
Query.setParameterList(QueryParameter<P> parameter,
Collection<P> values) |
Query<R> |
Query.setParameterList(String name,
Collection values) |
Query<R> |
Query.setParameterList(String name,
Collection values,
Type type) |
Query<R> |
Query.setParameterList(String name,
Object[] values) |
Query<R> |
Query.setParameterList(String name,
Object[] values,
Type type) |
default Query<R> |
Query.setParameters(Object[] values,
Type[] types)
Deprecated.
(since 5.2) Bind values individually
|
Query<R> |
Query.setProperties(Map bean) |
Query<R> |
Query.setProperties(Object bean) |
Query<R> |
Query.setReadOnly(boolean readOnly) |
Query<R> |
Query.setResultTransformer(ResultTransformer transformer)
Deprecated.
(since 5.2)
|
default Query<R> |
Query.setSerializable(int position,
Serializable val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
default Query<R> |
Query.setSerializable(String name,
Serializable val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
default Query<R> |
Query.setShort(int position,
short val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
default Query<R> |
Query.setShort(String name,
short val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
default Query<R> |
Query.setString(int position,
String val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
default Query<R> |
Query.setString(String name,
String val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
default Query<R> |
Query.setText(int position,
String val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
default Query<R> |
Query.setText(String name,
String val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
default Query<R> |
Query.setTime(int position,
Date val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
default Query<R> |
Query.setTime(String name,
Date val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
Query<R> |
Query.setTimeout(int timeout) |
default Query<R> |
Query.setTimestamp(int position,
Date val)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
default Query<R> |
Query.setTimestamp(String name,
Date value)
Deprecated.
(since 5.2) use
setParameter(int, Object) or setParameter(int, Object, Type)
instead |
Modifier and Type | Interface and Description |
---|---|
interface |
NativeQueryImplementor<T> |
interface |
QueryImplementor<R> |
Modifier and Type | Method and Description |
---|---|
Query |
QueryProducerImplementor.createNamedQuery(String name) |
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.