Deprecated
as a consequence of AbstractProducedQuery and NativeQueryImplementor being deprecated. See corresponding docs for further information.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final boolean | |
| private Serializable | |
| private final LockOptions | |
| private final QueryParameterBindingsImpl | |
| private List | |
| private List | |
| private Collection | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | NativeQueryImpl(NamedSQLQueryDefinition
The representation of the defined queryDef, SharedSessionContractImplementor The session to which this NativeQuery belongs. session, ParameterMetadata Metadata about parameters found in the query. parameterMetadata)Constructs a NativeQueryImpl given a sql query defined in the mappings. |
| public | NativeQueryImpl(String sqlString, boolean callable, SharedSessionContractImplementor session, ParameterMetadata sqlParameterMetadata)
|
| Modifier and Type | Method and Description |
|---|---|
| public NativeQueryImplementor | addEntity(String
The entity name that is the root return of the query. entityName)Implements org.
Deprecated
as a consequence of
Declare a "root" entity, without specifying an alias.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | addEntity(String
The SQL table alias tableAlias, String The entity name entityName)Implements org.
Deprecated
as a consequence of
Declare a "root" entity.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | addEntity(String
The SQL table alias tableAlias, String The entity name entityName, LockMode The lock mode for this return. lockMode)Implements org.
Deprecated
as a consequence of
Declare a "root" entity, specifying a lock mode.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | addEntity(Class<T>
The java type of the entity to add as a root entityType)Implements org.
Deprecated
as a consequence of
Declare a "root" entity, without specifying an alias.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | addEntity(String
The SQL table alias tableAlias, Class<T> The java type of the entity to add as a root entityClass)Implements org.
Deprecated
as a consequence of
Declare a "root" entity.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | addEntity(String
The SQL table alias tableAlias, Class<T> The entity Class entityClass, LockMode The lock mode for this return. lockMode)Implements org.
Deprecated
as a consequence of
Declare a "root" entity, specifying a lock mode.
NativeQueryImplementor being deprecated.
|
| public SQLQuery. | addFetch(String
The SQL table alias for the data to be mapped to this fetch tableAlias, String Identify the table alias of the owner of this association. Should match the alias of a
previously added root or fetch ownerTableAlias, String The name of the property being join fetched. joinPropertyName)Implements org. |
| public NativeQueryImplementor | addJoin(String
The SQL table alias for the data to be mapped to this fetch tableAlias, String The association path ([owner-alias].[property-name]). path)Implements org.
Deprecated
as a consequence of
Declare a join fetch result.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | addJoin(String
The SQL table alias for the data to be mapped to this fetch tableAlias, String Identify the table alias of the owner of this association. Should match the alias of a
previously added root or fetch ownerTableAlias, String The name of the property being join fetched. joinPropertyName)Implements org.
Deprecated
as a consequence of
Declare a join fetch result.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | addJoin(String
The SQL table alias for the data to be mapped to this fetch tableAlias, String The association path ([owner-alias].[property-name]). path, LockMode The lock mode for this return. lockMode)Implements org.
Deprecated
as a consequence of
Declare a join fetch result, specifying a lock mode.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | addQueryHint(String
The database specific query hint to add. hint)Overrides org. Implements org.
Deprecated
as a consequence of
Add a DB query hint to the SQL.
NativeQueryImplementor being deprecated.
|
| protected void | |
| protected void | |
| protected void | |
| public SQLQuery. | addRoot(String
The SQL table alias to map to this entity tableAlias, String The name of the entity. entityName)Implements org. SQLQuery. to allow further definition.
|
| public SQLQuery. | addRoot(String
The SQL table alias to map to this entity tableAlias, Class<T> The java type of the entity. entityType)Implements org. SQLQuery. to allow further definition.
|
| public NativeQueryImplementor | addScalar(String
The column alias in the result-set to be processed as a scalar result columnAlias)Implements org.
Deprecated
as a consequence of
Declare a scalar query result.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | addScalar(String
The column alias in the result-set to be processed as a scalar result columnAlias, Type The Hibernate type as which to treat the value. type)Implements org.
Deprecated
as a consequence of
Declare a scalar query result.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | addSynchronizedEntityClass(Class<T>
The class of the entity upon whose defined query spaces we should additionally synchronize. entityClass)Implements org.
Deprecated
as a consequence of
Adds an entity for (a) auto-flush checking and (b) query result cache invalidation checking.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | addSynchronizedEntityName(String
The name of the entity upon whose defined query spaces we should additionally synchronize. entityName)Implements org.
Deprecated
as a consequence of
Adds an entity name for (a) auto-flush checking and (b) query result cache invalidation checking.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | addSynchronizedQuerySpace(String
The query space to be auto-flushed for this query. querySpace)Implements org.
Deprecated
as a consequence of
Adds a query space.
NativeQueryImplementor being deprecated.
|
| public SynchronizeableQuery | addSynchronizedQuerySpace(String... querySpaces)
Overrides default org. |
| protected void | applyEntityGraphQueryHint(EntityGraphQueryHint
The entity graph hint object hint)Overrides org. |
| public Query | applyGraph(RootGraph<J>
The graph the apply. graph, GraphSemantic The semantic to use when applying the graph semantic)Overrides org. Implements org.
Deprecated
as a consequence of
Apply the given graph using the given semantic
Query being deprecated.
|
| protected boolean | |
| protected boolean | |
| protected void | |
| protected void | collectHints(Map<String, Object> hints)
Overrides org. |
| private SQLQuery. | |
| protected int | |
| protected List | |
| protected ScrollableResultsImplementor | doScroll(ScrollMode scrollMode)
Overrides org. |
| private NativeSQLQuerySpecification | |
| protected QueryParameterBindings | |
| public QueryParameters | |
| public List | getQueryReturns()
Implements org. |
| public String | getQueryString()
Implements org. |
| public String[] | |
| public Type[] | getReturnTypes()
Implements org. |
| public Collection | getSynchronizedQuerySpaces()
Implements org. |
| public boolean | isCallable()
Overrides org. Implements org. |
| protected boolean | isNativeQuery()
Implements abstract org. |
| public Iterator | iterate()
Overrides org. Implements org. |
| private void | |
| public NativeQueryImplementor | setCacheable(boolean
Should the query results be cacheable? cacheable)Overrides org. Implements org.
Deprecated
as a consequence of
Enable/disable second level query (result) caching for this query.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setCacheMode(CacheMode
The new CacheMode to use. cacheMode)Overrides org. Implements org.
Deprecated
as a consequence of
(Re)set the current CacheMode in effect for this query.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setCacheRegion(String
the name of a query cache region, or cacheRegion)null to indicate that the default region
should be used.Overrides org. Implements org.
Deprecated
as a consequence of
Set the name of the cache region where query results should be cached (if cached at all).
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setCollectionKey(Serializable key)
Implements org.
Deprecated
as a consequence of
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setComment(String
The human-readable comment comment)Overrides org. Implements org.
Deprecated
as a consequence of
Set the comment for this query.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setEntity(int
the position of the parameter in the query
string, numbered from 0. position, Object a non-null instance of a persistent class val)Implements org.
Deprecated
as a consequence of
Bind an instance of a mapped persistent class to a JDBC-style query parameter.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setEntity(String
the name of the parameter name, Object a non-null instance of a persistent class val)Implements org.
Deprecated
as a consequence of
Bind an instance of a mapped persistent class to a named query parameter.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setFetchSize(int
the fetch size hint fetchSize)Overrides org. Implements org.
Deprecated
as a consequence of
Sets a JDBC fetch size hint for the query.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setFirstResult(int
position of the first result,
numbered from 0 startPosition)Overrides org. Implements org.
Deprecated
as a consequence of
Set the position of the first result to retrieve.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setFlushMode(FlushMode
The new FlushMode to use. flushMode)Overrides org. Overrides default org. Implements org.
Deprecated
as a consequence of
(Re)set the current FlushMode in effect for this query.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setFlushMode(FlushModeType
flush mode flushModeType)Overrides org. Implements org.
Deprecated
as a consequence of
Set the flush mode type to be used for the query execution.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setHibernateFlushMode(FlushMode
The new FlushMode to use. flushMode)Overrides org. Implements org.
Deprecated
as a consequence of
(Re)set the current FlushMode in effect for this query.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setHint(String
name of property or hint hintName, Object value for the property or hint value)Overrides org. Implements org.
Deprecated
as a consequence of
Set a query property or hint.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setLockMode(String
a query alias, or alias, LockMode "this" for a collection filterThe lock mode to apply. lockMode)Overrides org. Implements org.
Deprecated
as a consequence of
Set the LockMode to use for specific alias (as defined in the query's FROM clause).
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setLockMode(LockModeType
lock mode lockModeType)Overrides org. Implements org.
Deprecated
as a consequence of
Set the lock mode type to be used for the query execution.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setLockOptions(LockOptions
The lock options to apply to the query. lockOptions)Overrides org. Implements org.
Deprecated
as a consequence of
Set the lock options for the query.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setMaxResults(int
maximum number of results to retrieve maxResult)Overrides org. Implements org.
Deprecated
as a consequence of
Set the maximum number of results to retrieve.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setParameter(QueryParameter<T>
The query parameter memento parameter, Object the possibly-null parameter value value)Overrides org. Implements org.
Deprecated
as a consequence of
Bind a query parameter using its inferred Type.
NativeQueryImplementor being deprecated.
|
| public <P> NativeQueryImplementor | setParameter(Parameter<P>
parameter object parameter, P parameter value value)Overrides org. Implements org.
Deprecated
as a consequence of
Bind the value of a NativeQueryImplementor being deprecated.
Parameter object.
|
| public NativeQueryImplementor | setParameter(String
parameter name name, Object parameter value value)Overrides org. Implements org.
Deprecated
as a consequence of
Bind an argument value to a named parameter.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setParameter(int
position position, Object parameter value value)Overrides org. Implements org.
Deprecated
as a consequence of
Bind an argument value to a positional parameter.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setParameter(QueryParameter<T>
The query parameter memento parameter, Object the possibly-null parameter value value, Type the Hibernate type type)Overrides org. Implements org.
Deprecated
as a consequence of
Bind a query parameter using the supplied Type
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setParameter(String
the name of the parameter name, Object the possibly-null parameter value value, Type the Hibernate type type)Overrides org. Implements org.
Deprecated
as a consequence of
Bind a named query parameter using the supplied Type
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setParameter(int
the position of the parameter in the query
string, numbered from 0. position, Object the possibly-null parameter value value, Type the Hibernate type type)Overrides org. Implements org.
Deprecated
as a consequence of
Bind a value to a JDBC-style query parameter.
NativeQueryImplementor being deprecated.
|
| public <P> NativeQueryImplementor | setParameter(QueryParameter<P>
The query parameter memento parameter, P the possibly-null parameter value value, TemporalType the temporal-type to use in binding the date/time temporalType)Overrides org. Implements org.
Deprecated
as a consequence of
Bind a query parameter as some form of date/time using the indicated
temporal-type.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setParameter(String
the parameter name name, Object the possibly-null parameter value value, TemporalType the temporal-type to use in binding the date/time temporalType)Overrides org. Implements org.
Deprecated
as a consequence of
Bind a named query parameter as some form of date/time using
the indicated temporal-type.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setParameter(int
the position of the parameter in the query
string, numbered from 0. position, Object the possibly-null parameter value value, TemporalType the temporal-type to use in binding the date/time temporalType)Overrides org. Implements org.
Deprecated
as a consequence of
Bind a positional query parameter as some form of date/time using
the indicated temporal-type.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setParameter(Parameter<Instant> param, Instant value, TemporalType temporalType)
Overrides org. Implements org.
Deprecated
as a consequence of
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setParameter(Parameter<LocalDateTime> param, LocalDateTime value, TemporalType temporalType)
Overrides org. Implements org.
Deprecated
as a consequence of
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setParameter(Parameter<ZonedDateTime> param, ZonedDateTime value, TemporalType temporalType)
Overrides org. Implements org.
Deprecated
as a consequence of
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setParameter(Parameter<OffsetDateTime> param, OffsetDateTime value, TemporalType temporalType)
Overrides org. Implements org.
Deprecated
as a consequence of
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setParameter(String
the parameter name name, Instant the possibly-null parameter value value, TemporalType the temporal-type to use in binding the date/time temporalType)Overrides org. Implements org.
Deprecated
as a consequence of
Bind a named query parameter as some form of date/time using
the indicated temporal-type.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setParameter(String
the parameter name name, LocalDateTime the possibly-null parameter value value, TemporalType the temporal-type to use in binding the date/time temporalType)Overrides org. Implements org.
Deprecated
as a consequence of
Bind a named query parameter as some form of date/time using
the indicated temporal-type.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setParameter(String
the parameter name name, ZonedDateTime the possibly-null parameter value value, TemporalType the temporal-type to use in binding the date/time temporalType)Overrides org. Implements org.
Deprecated
as a consequence of
Bind a named query parameter as some form of date/time using
the indicated temporal-type.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setParameter(String
the parameter name name, OffsetDateTime the possibly-null parameter value value, TemporalType the temporal-type to use in binding the date/time temporalType)Overrides org. Implements org.
Deprecated
as a consequence of
Bind a named query parameter as some form of date/time using
the indicated temporal-type.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setParameter(int
the position of the parameter in the query
string, numbered from 0. position, Instant the possibly-null parameter value value, TemporalType the temporal-type to use in binding the date/time temporalType)Overrides org. Implements org.
Deprecated
as a consequence of
Bind a positional query parameter as some form of date/time using
the indicated temporal-type.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setParameter(int
the position of the parameter in the query
string, numbered from 0. position, LocalDateTime the possibly-null parameter value value, TemporalType the temporal-type to use in binding the date/time temporalType)Overrides org. Implements org.
Deprecated
as a consequence of
Bind a positional query parameter as some form of date/time using
the indicated temporal-type.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setParameter(int
the position of the parameter in the query
string, numbered from 0. position, ZonedDateTime the possibly-null parameter value value, TemporalType the temporal-type to use in binding the date/time temporalType)Overrides org. Implements org.
Deprecated
as a consequence of
Bind a positional query parameter as some form of date/time using
the indicated temporal-type.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setParameter(int
the position of the parameter in the query
string, numbered from 0. position, OffsetDateTime the possibly-null parameter value value, TemporalType the temporal-type to use in binding the date/time temporalType)Overrides org. Implements org.
Deprecated
as a consequence of
Bind a positional query parameter as some form of date/time using
the indicated temporal-type.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setParameter(Parameter<T>
parameter object param, Calendar parameter value value, TemporalType temporal type temporalType)Overrides org. Implements org.
Deprecated
as a consequence of
Bind an instance of NativeQueryImplementor being deprecated.
java.util.Calendar to a Parameter object.
|
| public NativeQueryImplementor | setParameter(Parameter<T>
parameter object param, Date parameter value value, TemporalType temporal type temporalType)Overrides org. Implements org.
Deprecated
as a consequence of
Bind an instance of NativeQueryImplementor being deprecated.
java.util.Date to a Parameter object.
|
| public NativeQueryImplementor | setParameter(String
parameter name name, Calendar parameter value value, TemporalType temporal type temporalType)Overrides org. Implements org.
Deprecated
as a consequence of
Bind an instance of NativeQueryImplementor being deprecated.
java.util.Calendar to a named parameter.
|
| public NativeQueryImplementor | setParameter(String
parameter name name, Date parameter value value, TemporalType temporal type temporalType)Overrides org. Implements org.
Deprecated
as a consequence of
Bind an instance of NativeQueryImplementor being deprecated.
java.util.Date to a named parameter.
|
| public NativeQueryImplementor | setParameter(int
position position, Calendar parameter value value, TemporalType temporal type temporalType)Overrides org. Implements org.
Deprecated
as a consequence of
Bind an instance of NativeQueryImplementor being deprecated.
java.util.Calendar to a positional
parameter.
|
| public NativeQueryImplementor | setParameter(int
position position, Date parameter value value, TemporalType temporal type temporalType)Overrides org. Implements org.
Deprecated
as a consequence of
Bind an instance of NativeQueryImplementor being deprecated.
java.util.Date to a positional parameter.
|
| public NativeQueryImplementor | setParameterList(QueryParameter<T>
the parameter memento parameter, Collection<E> a collection of values to list values)Overrides org. Implements org.
Deprecated
as a consequence of
Bind multiple values to a query parameter using its inferred Type.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setParameterList(String
the name of the parameter name, Collection<E> a collection of values to list values)Overrides org. Implements org.
Deprecated
as a consequence of
Bind multiple values to a named query parameter.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setParameterList(String
the name of the parameter name, Collection<E> a collection of values to list values, Type the Hibernate type of the values type)Overrides org. Implements org.
Deprecated
as a consequence of
Bind multiple values to a named query parameter.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setParameterList(String
the name of the parameter name, Object[] a collection of values to list values, Type the Hibernate type of the values type)Overrides org. Implements org.
Deprecated
as a consequence of
Bind multiple values to a named query parameter.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setParameterList(String
the name of the parameter name, Object[] a collection of values to list values)Overrides org. Implements org.
Deprecated
as a consequence of
Bind multiple values to a named query parameter.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setProperties(Map<K, V>
a java.util.Map map)Overrides org. Implements org.
Deprecated
as a consequence of
Bind the values of the given Map for each named parameters of the query,
matching key names with parameter names and mapping value types to
Hibernate types using heuristics.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setProperties(Object
any JavaBean or POJO bean)Overrides org. Implements org.
Deprecated
as a consequence of
Bind the property values of the given bean to named parameters of the query,
matching property names with parameter names and mapping property types to
Hibernate types using heuristics.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setReadOnly(boolean
true indicates that entities and proxies loaded by the query
are to be put in read-only mode; false indicates that entities and proxies
loaded by the query will be put in modifiable modeOverrides org. Implements org.
Deprecated
as a consequence of
Set the read-only/modifiable mode for entities and proxies
loaded by this Query.
NativeQueryImplementor being deprecated.
|
| public NativeQuery | setResultSetMapping(String
The name of the mapping to use. name)Implements org.
Deprecated
as a consequence of
Use a predefined named result-set mapping.
NativeQuery being deprecated.
|
| public NativeQueryImplementor | setResultTransformer(ResultTransformer
The transformer to apply transformer)Overrides org. Implements org.
Deprecated
as a consequence of
Set a strategy for handling the query results.
NativeQueryImplementor being deprecated.
|
| public NativeQueryImplementor | setTimeout(int
the timeout in seconds timeout)Overrides org. Implements org.
Deprecated
as a consequence of
Set the query timeout in seconds.
NativeQueryImplementor being deprecated.
|
| private boolean |