Package org.hibernate
package org.hibernate
This package defines the central Hibernate APIs.
-
ClassDescriptionAnnotation related exception.Indicates failure of an assertion: a possible bug in Hibernate.Provides an API for querying/managing the second level cache regions.Controls how the session interacts with the second-level cache and query cache.Should be thrown by persistent objects from Lifecycle or Interceptor callbacks.Defines the various policies by which Hibernate might release its underlying JDBC connection.Criteria is a simplified API for retrieving entities by composing Criterion objects.Raised whenever a duplicate for a certain type occurs.An interceptor that does nothing.Defines the representation modes available for entities.Contract for resolving an entity-name from a given entity instance.Represents an association fetching strategy.Type definition of Filter.Represents a flushing strategy.Provides access to the full range of Hibernate built-in types.The base
Throwabletype for Hibernate.Thrown if Hibernate can't instantiate an entity or component class at runtime.Allows user code to inspect and/or change property values.Thrown when a mapping is found to be invalid.Wraps an SQLException.Indicates access to unfetched data outside of a session context.Asession'shelper for creating LOB dataInstances represent a lock mode for a row of a relational database table.Contains locking details (LockMode, Timeout and Scope).An exception that usually occurs at configuration time, rather than runtime, as a result of something screwy in the O-R mappings.Thrown when a resource for a mapping could not be found.This exception is thrown when an operation would break session-scoped identity.Thrown when the application calls Query.uniqueResult() and the query returned more than one result.Thrown when the user tries to do something illegal with a deleted object.Thrown when Session.load() fails to select a row with the given primary key (identifier value).Throw when an optimistic locking conflict occurs.Thrown when the user passes a persistent instance to a Session method that expects a transient instance.Thrown when a pessimistic locking conflict occurs.A problem occurred accessing a property of an instance of a persistent class by reflection, or via CGLIB.Indicates that an expected getter or setter method could not be found on a class.Thrown when the (illegal) value of a property can not be persisted.An object-oriented representation of a Hibernate query.A problem occurred translating a Hibernate query to SQL due to invalid query syntax, etc.Parameter invalid or not found in the queryThrown when a database query timeout occurs.Represents a replication strategy.A result iterator that allows moving around within the results by arbitrary increments.Specifies the type of JDBC scrollable result set to use underneath a ScrollableResultsThe main runtime interface between a Java application and Hibernate.Contains locking details (LockMode, Timeout and Scope).Thrown when the user calls a method of aSessionthat is in an inappropropriate state for the given call (for example, the the session is closed or disconnected).The main contract here is the creation ofSessioninstances.Allows reaction to basicSessionFactoryoccurrences.Represents a "native sql" query and allows the user to define certain aspects about its execution, such as: result-set value mapping (see below) Tables used viaSQLQuery.addSynchronizedQuerySpace(java.lang.String),SQLQuery.addSynchronizedEntityName(java.lang.String)andSQLQuery.addSynchronizedEntityClass(java.lang.Class).Allows access to further control how join fetch returns are mapped back from result setsAllows access to further control how properties within a root or join fetch are mapped back from the result set.Allows access to further control how root returns are mapped back from result setsA StaleStateException that carries information about a particular entity instance that was the source of the failure.Thrown when a version number or timestamp check failed, indicating that the Session contained stale data (when using long transactions with versioning).A command-oriented API for performing bulk operations against a database.Allows the application to define units of work, while maintaining abstraction from the underlying transaction implementation (eg.Indicates that a transaction could not be begun, committed or rolled back.Thrown when the user passes a transient instance to a Session method that expects a persistent instance.Provides access to the variousTypeinstances associated with theSessionFactory.Used when a user provided type does not match the expected oneUsed to indicate a request against an unknown profile name.Thrown when Hibernate could not resolve an object by id, especially when loading an association.Information about the Hibernate version.Thrown when Session.load() selects a row with the given primary key (identifier value) but the row's discriminator value specifies a subclass that is not assignable to the class requested by the user.