Top Description Interfaces Annotations Classes Enums
[default module]

Package org.hibernate


This package defines the central Hibernate APIs.

Interface Summary

Modifier and TypeInterface and Description
public interface
BasicQueryContract<T extends BasicQueryContract>

Deprecated (since 5.2) use CommonQueryContract instead.
Defines the aspects of query definition that apply to all forms of querying.
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 Session.

public interface
EntityNameResolver

Contract for resolving an entity-name from a given entity instance.

public interface
Filter

Type definition of Filter.

public interface
IdentifierLoadAccess<T>

Loads an entity by its primary identifier.

public interface
Interceptor

Allows user code to inspect and/or change property values.

public interface
LobHelper

A session's helper for creating LOB data.

public interface
public interface
MultiIdentifierLoadAccess<T>

Loads multiple entities at once by identifiers, ultimately via one of the multiLoad methods, using the various options specified (if any)

public interface
NaturalIdLoadAccess<T>

Loads an entity by its natural identifier.

public interface
Query<R>

Deprecated (since 5.2) use org.hibernate.query.Query instead
Represents an HQL/JPQL query or a compiled Criteria query
public interface
ScrollableResults

A result iterator that allows moving around within the results by arbitrary increments.

public interface
Session

Deprecated as a consequence of HibernateEntityManager being deprecated.
The main runtime interface between a Java application and Hibernate.
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 HibernateEntityManagerFactory being deprecated.
The main contract here is the creation of Session instances.
public interface
SessionFactoryObserver

Allows reaction to basic SessionFactory occurrences.

public interface
SharedSessionBuilder<T extends SharedSessionBuilder>

Specialized SessionBuilder with access to stuff from another session.

public interface
SharedSessionContract

Contract methods shared between Session and StatelessSession.

public interface
SimpleNaturalIdLoadAccess<T>

Loads an entity by its natural identifier.

public interface
SQLQuery<T>

Deprecated (since 5.2) use NativeQuery instead.
Represents a "native sql" query.
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 Type instances associated with the SessionFactory.

Annotation Summary

Modifier and TypeAnnotation and Description
public @interface
Incubating

Marks (recursively) certain of Hibernate's packages, types and methods as incubating.

Class Summary

Modifier and TypeClass 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 org.hibernate.classic.Lifecycle and Interceptor callbacks.

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

  • Provides access to the full range of Hibernate built-in types. Type instances may be used to bind values to query parameters.
  • A factory for new Blobs and Clobs.
  • Defines static methods for manipulation of proxies.
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
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

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 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 Session that is in an inappropriate state for the given call (for example, the the session is closed or disconnected).

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.

Enum Summary

Modifier and TypeEnum 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 ORDER BY clause.

public enum
ReplicationMode

Represents a replication strategy.

public enum
ScrollMode

Specifies the type of JDBC scrollable result set to use underneath a ScrollableResults.