This package defines the central Hibernate APIs.
| Modifier and Type | Interface and Description |
|---|---|
| public interface | BasicQueryContract<T extends BasicQueryContract>
Deprecated
(since 5.2) use Defines the aspects of query definition that apply to all forms of querying.
CommonQueryContract instead.
|
| public interface | Cache
Provides an API for querying/managing the second level cache regions. |
| public interface | Criteria
Criteria is a simplified API for retrieving entities by composing Criterion objects. |
| public interface | CustomEntityDirtinessStrategy
During a flush cycle, Hibernate needs to determine which of the entities associated with a |
| public interface | EntityNameResolver
Contract for resolving an entity-name from a given entity instance. |
| public interface | Filter
Type definition of Filter. |
| public interface | |
| public interface | Interceptor
Allows user code to inspect and/or change property values. |
| public interface | |
| public interface | |
| public interface | MultiIdentifierLoadAccess<T>
Loads multiple entities at once by identifiers, ultimately via one of the
|
| public interface | |
| public interface | Query<R>
Deprecated
(since 5.2) use Represents an HQL/JPQL query or a compiled Criteria query
org. instead
|
| public interface | ScrollableResults
A result iterator that allows moving around within the results by arbitrary increments. |
| public interface | Session
Deprecated
as a consequence of The main runtime interface between a Java application and Hibernate.
HibernateEntityManager being deprecated.
|
| public interface | SessionBuilder<T extends SessionBuilder>
Represents a consolidation of all session creation options into a builder style delegate. |
| public interface | SessionEventListener
NOTE : Consider this an incubating API, likely to change as wider usage indicates changes that need to be made |
| public interface | SessionFactory
Deprecated
as a consequence of The main contract here is the creation of HibernateEntityManagerFactory being deprecated.
Session instances.
|
| public interface | SessionFactoryObserver
Allows reaction to basic |
| public interface | SharedSessionBuilder<T extends SharedSessionBuilder>
Specialized |
| public interface | SharedSessionContract
Contract methods shared between |
| public interface | |
| public interface | |
| public interface | StatelessSession
A command-oriented API for performing bulk operations against a database. |
| public interface | StatelessSessionBuilder<T extends StatelessSessionBuilder>
Represents a consolidation of all stateless session creation options into a builder style delegate. |
| public interface | SynchronizeableQuery<T>
A unifying interface for queries which can define tables (query spaces) to synchronize on. |
| public interface | Transaction
Defines the contract for abstracting applications from the configured underlying means of transaction management. |
| public interface | TypeHelper
Provides access to the various |
| Modifier and Type | Annotation and Description |
|---|---|
| public @interface | Incubating
Marks (recursively) certain of Hibernate's packages, types and methods as incubating. |
| Modifier and Type | Class and Description |
|---|---|
| public class | AnnotationException
Annotation related exception. |
| public class | AssertionFailure
Indicates failure of an assertion: a possible bug in Hibernate. |
| public class | BaseSessionEventListener
A no-op implementation of SessionEventListener. |
| public class | CallbackException
Intended to be thrown from |
| public class | DuplicateMappingException
Raised whenever a duplicate for a certain type occurs. |
| public class | EmptyInterceptor
An interceptor that does nothing. |
| public class | |
| public class | Hibernate
|
| public class | HibernateError
Marks a group of exceptions that generally indicate an internal Hibernate error or bug. |
| public class | HibernateException
The base exception type for Hibernate exceptions. |
| public class | InstantiationException
Thrown if Hibernate can't instantiate a class at runtime. |
| public class | InvalidMappingException
Thrown when a mapping is found to be invalid. |
| public class | JDBCException
Wraps a |
| public class | LazyInitializationException
Indicates an attempt to access not-yet-fetched data outside of a session context. |
| public class | LockOptions
Contains locking details (LockMode, Timeout and Scope). |
| public class | MappingException
An exception that occurs while reading mapping sources (xml/annotations), usually as a result of something screwy in the O-R mappings. |
| public class | MappingNotFoundException
Deprecated
Use Thrown when a resource for a mapping could not be found.
org. instead.
|
| public class | NonUniqueObjectException
This exception is thrown when an operation would break session-scoped identity. |
| public class | NonUniqueResultException
Thrown when the application calls Query.uniqueResult() and the query returned more than one result. |
| public class | ObjectDeletedException
Thrown when the user tries to do something illegal with a deleted object. |
| public class | ObjectNotFoundException
Thrown when Session.load() fails to select a row with the given primary key (identifier value). |
| public class | OptimisticLockException
Deprecated
Use Throw when an optimistic locking conflict occurs.
org. instead
|
| public class | PersistentObjectException
Thrown when the user passes a persistent instance to a Session method that expects a transient instance. |
| public class | PessimisticLockException
Thrown when a pessimistic locking conflict occurs. |
| public class | PropertyAccessException
A problem occurred accessing a property of an instance of a persistent class by reflection, or via enhanced entities. |
| public class | PropertyNotFoundException
Indicates that an expected getter or setter method could not be found on a class. |
| public class | |
| public class | PropertyValueException
Thrown when the (illegal) value of a property can not be persisted. |
| public class | QueryException
A problem occurred translating a Hibernate query to SQL due to invalid query syntax, etc. |
| public class | QueryParameterException
Parameter invalid or not found in the query. |
| public class | QueryTimeoutException
Thrown when a database query timeout occurs. |
| public class | ResourceClosedException
Indicates an attempt was made to use a closed resource (Session, SessionFactory, etc). |
| public class | SessionException
Thrown when the user calls a method of a |
| public class | StaleObjectStateException
A specialized StaleStateException that carries information about the particular entity instance that was the source of the failure. |
| public class | StaleStateException
Thrown when a version number or timestamp check failed, indicating that the Session contained stale data (when using long transactions with versioning). |
| public class | TransactionException
Indicates that a transaction could not be begun, committed or rolled back. |
| public class | TransientObjectException
Thrown when the user passes a transient instance to a Session method that expects a persistent instance. |
| public class | TransientPropertyValueException
Thrown when a property cannot be persisted because it is an association with a transient unsaved entity instance. |
| public class | TypeMismatchException
Used when a user provided type does not match the expected one. |
| public class | UnknownEntityTypeException
Indicates an attempt was made to refer to an unknown entity name/class. |
| public class | UnknownProfileException
Used to indicate a request against an unknown profile name. |
| public class | UnresolvableObjectException
Thrown when Hibernate could not resolve an object by id, especially when loading an association. |
| public class | UnsupportedLockAttemptException
This exception is thrown when an invalid LockMode is selected for an entity. |
| public class | Version
Information about the Hibernate version. |
| public class | WrongClassException
Thrown when loading an entity (by identifier) results in a value that cannot be treated as the subclass type requested by the caller. |
| Modifier and Type | Enum and Description |
|---|---|
| public enum | CacheMode
Controls how the session interacts with the second-level cache and query cache. |
| public enum | ConnectionAcquisitionMode
Indicates the manner in which JDBC Connections should be acquired. |
| public enum | ConnectionReleaseMode
Defines the various policies by which Hibernate might release its underlying JDBC connection. |
| public enum | EntityMode
Defines the representation modes available for entities. |
| public enum | FetchMode
Represents an association fetching strategy. |
| public enum | FlushMode
Represents a flushing strategy. |
| public enum | LockMode
Instances represent a lock mode for a row of a relational database table. |
| public enum | MultiTenancyStrategy
Describes the methods for multi-tenancy understood by Hibernate. |
| public enum | NullPrecedence
Defines precedence of null values within |
| public enum | ReplicationMode
Represents a replication strategy. |
| public enum | ScrollMode
Specifies the type of JDBC scrollable result set to use underneath a |