The important interfaces org.,
org., org.,
and org. provide an API for executing
queries. Instances of these interfaces may be obtained from a
org., that is, from any
org. or org..
Hibernate's extensions to the JPA criteria query API are defined in the
subpackage org., with
org. as the
entry point.
Other subpackages contain SPIs and internal implementation details, including the HQL parser and translator.
| Modifier and Type | Interface and Description |
|---|---|
| public interface | |
| public interface | CommonQueryContract
Defines the aspects of query execution and parameter binding that apply to all forms of querying: HQL/JPQL queries, native SQL queries, criteria queries, and stored procedure calls. |
| public interface | |
| public interface | MutationQuery
Within the context of an active session,
an instance of this type represents an executable mutation query, that is,
an |
| public interface | NativeQuery<T>
Within the context of an active session, an instance of this type represents an executable query written in the native SQL dialect of the underlying database. |
| public interface | OutputableType<J>
Specialization of |
| public interface | ParameterMetadata
Access to known information about the parameters for a query. |
| public interface | Query<
The result type, for typed queries, or R>Object for untyped queriesWithin the context of an active session, an instance of this type represents an executable query, either:
|
| public interface | |
| public interface | |
| public interface | QueryProducer
Contract for things that can produce instances of |
| public interface | ResultListTransformer<T>
Defines some processing performed on the overall result |
| public interface | |
| public interface | SelectionQuery<R>
Within the context of an active session,
an instance of this type represents an executable selection query, that is,
a |
| public interface | SynchronizeableQuery
Represents the abstract notion of a query whose results are affected by the data stored in a given set of named query spaces. |
| public interface | TupleTransformer<T>
Defines some transformation applied to each result of a |
| public interface |
| Modifier and Type | Class and Description |
|---|---|
| public class | IllegalMutationQueryException
Indicates an attempt to call |
| public class | IllegalNamedQueryOptionsException
Indicates a named-query has specified options that are not legal |
| public class | IllegalQueryOperationException
Indicates an attempt to perform some operation on a Query that is illegal
based on its state, e.g., attempt to call |
| public class | IllegalSelectQueryException
Indicates an attempt to call |
| public class | NamedQueryValidationException
Indicates that validation and translation of one or more named queries failed at initialization time. |
| public class | NotIndexedCollectionException
Indicates an attempt to use a non-indexed collection as indexed. |
| public class | |
| public class | Page
Identifies a page of query results by page size and page number. |
| public class | ParameterLabelException
Indicates a problem with the labelling of query parameters. |
| public class | PathException
Indicates a problem with a path expression in HQL/JPQL. |
| public class | QueryArgumentException
An error that occurs binding an argument to a query parameter. |
| public class | QueryTypeMismatchException
Indicates a mismatch between the expected and actual result types of a query. |
| public class | SemanticException
Represents an error in the semantics (meaning) of a HQL/JPQL query. |
| public class | SyntaxException
Represents a syntax error in a HQL/JPQL query. |
| public class | |
| public class | UnknownNamedQueryException
Occurs when a named query is requested, and there is no known HQL or native SQL query registered under the given name. |
| public class | UnknownParameterException
Indicates an attempt to find an unknown query parameter or an attempt to bind a value to an unknown query parameter |
| public class | UnknownSqlResultSetMappingException
Indicates a request for named ResultSet mapping which could not be found |
| Modifier and Type | Enum and Description |
|---|---|
| public enum | ImmutableEntityUpdateQueryHandlingMode
This enum defines how |
| public enum | NullPrecedence
Enumerates the possibilities for the precedence of null values within
query result sets sorted by an |
| public enum | SortDirection
Enumerates the directions in which query results may be sorted. |