This package defines the central Hibernate APIs.
| Modifier and Type | Interface and Description |
|---|---|
| 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 | EntityNameResolver
Contract for resolving an entity-name from a given entity instance. |
| public interface | Filter
Type definition of Filter. |
| public interface | Interceptor
Allows user code to inspect and/or change property values. |
| public interface | |
| public interface | Query
An object-oriented representation of a Hibernate query. |
| public interface | ScrollableResults
A result iterator that allows moving around within the results by arbitrary increments. |
| public interface | Session
The main runtime interface between a Java application and Hibernate. |
| public interface | SessionFactory
The main contract here is the creation of |
| public interface | SessionFactoryObserver
Allows reaction to basic |
| public interface | SQLQuery
Represents a "native sql" query and allows the user to define certain aspects about its execution, such as:
|
| public interface | SQLQueryResultMappingBuilder
Allows programmatic access from |
| public interface | StatelessSession
A command-oriented API for performing bulk operations against a database. |
| public interface | Transaction
Allows the application to define units of work, while maintaining abstraction from the underlying transaction implementation (eg. |
| public interface | TypeHelper
Provides access to the various |
| 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 | CacheMode
Controls how the session interacts with the second-level cache and query cache. |
| public class | CallbackException
Should be thrown by persistent objects from Lifecycle or Interceptor callbacks. |
| public class | ConnectionReleaseMode
Defines the various policies by which Hibernate might release its underlying JDBC connection. |
| public class | DuplicateMappingException
Raised whenever a duplicate for a certain type occurs. |
| public class | EmptyInterceptor
An interceptor that does nothing. |
| public class | EntityMode
Defines the representation modes available for entities. |
| public class | FetchMode
Represents an association fetching strategy. |
| public class | FlushMode
Represents a flushing strategy. |
| public class | Hibernate
|
| public class | HibernateException
The base |
| public class | InstantiationException
Thrown if Hibernate can't instantiate an entity or component class at runtime. |
| public class | InvalidMappingException
Thrown when a mapping is found to be invalid. |
| public class | JDBCException
Wraps an SQLException. |
| public class | LazyInitializationException
Indicates access to unfetched data outside of a session context. |
| public class | LockMode
Instances represent a lock mode for a row of a relational database table. |
| public class | LockOptions
Contains locking details (LockMode, Timeout and Scope). |
| public class | MappingException
An exception that usually occurs at configuration time, rather than runtime, as a result of something screwy in the O-R mappings. |
| public class | MappingNotFoundException
Thrown when a resource for a mapping could not be found. |
| 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
Throw when an optimistic locking conflict occurs. |
| 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 CGLIB. |
| public class | PropertyNotFoundException
Indicates that an expected getter or setter method could not be found on a 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 abstract class | ReplicationMode
Represents a replication strategy. |
| public class | ScrollMode
Specifies the type of JDBC scrollable result set to use underneath a ScrollableResults |
| public class | SessionException
Thrown when the user calls a method of a |
| public class | StaleObjectStateException
A StaleStateException that carries information about a 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 | TypeMismatchException
Used when a user provided type does not match the expected one |
| 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 | Version
Information about the Hibernate version. |
| public class | WrongClassException
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. |