Classes

  ClassDescription
ADOException
Wraps exceptions that occur during ADO.NET calls.
AssertionFailure
Indicates failure of an assertion: a possible bug in NHibernate
CallbackException
CriteriaUtil
Contains static declarations from Criteria interface in Hibernate.
DuplicateMappingException
EmptyInterceptor
HibernateException
Any exception that occurs in the O-R persistence layer.
IdentityHashCodeProvider
InstantiationException
Thrown if Hibernate can't instantiate an entity or component class at runtime.
InvalidProxyTypeException
Thrown when an invalid type is specified as a proxy for a class. The exception is also thrown when a class is specified as lazy, but cannot be used as a proxy for itself.
LazyInitializationException
A problem occurred trying to lazily initialize a collection or proxy (for example the session was closed) or iterate query results.
LockMode
Instances represent a lock mode for a row of a relational database table.
MappingException
An exception that usually occurs at configuration time, rather than runtime, as a result of something screwy in the O-R mappings
NHibernateUtil
Provides access to the full range of NHibernate built-in types. IType instances may be used to bind values to query parameters. Also a factory for new Blobs and Clobs.
NonUniqueObjectException
This exception is thrown when an operation would break session-scoped identity. This occurs if the user tries to associate two different instances of the same class with a particular identifier, in the scope of a single ISession.
NonUniqueResultException
Thrown when the application calls IQuery.UniqueResult() and the query returned more than one result. Unlike all other NHibernate exceptions, this one is recoverable!
ObjectDeletedException
Thrown when the user tries to pass a deleted object to the ISession.
ObjectNotFoundException
Thrown when ISession.Load() fails to select a row with the given primary key (identifier value). This exception might not be thrown when Load() is called, even if there was no row on the database, because Load() returns a proxy if possible. Applications should use ISession.Get() to test if a row exists in the database.
PersistentObjectException
Thrown when the user passes a persistent instance to a ISession method that expects a transient instance
PropertyAccessException
A problem occurred accessing a property of an instance of a persistent class by reflection
PropertyNotFoundException
Indicates that an expected getter or setter method could not be found on a class
PropertyValueException
QueryException
A problem occurred translating a Hibernate query to SQL due to invalid query syntax, etc.
ReplicationMode
Represents a replication strategy
StaleObjectStateException
Thrown when a version number check failed, indicating that the ISession contained stale data (when using long transactions with versioning).
StaleStateException
TransactionException
Indicated that a transaction could not be begun, committed, or rolled back
TransientObjectException
Throw when the user passes a transient instance to a ISession method that expects a persistent instance
UnresolvableObjectException
Thrown when Hibernate could not resolve an object by id, especially when loading an association.
WrongClassException
Thrown when ISession.Load() selects a row with the given primary key (identifier value) but the row's discriminator value specifies a different subclass from the one requested

Interfaces

  InterfaceDescription
ICriteria
Criteria is a simplified API for retrieving entities by composing NHibernate.Expression objects.
IDatabinder
Provides XML marshalling for classes registered with a SessionFactory
IFilter
Type definition of Filter. Filter defines the user's view into enabled dynamic filters, allowing them to set filter parameter values.
IInterceptor
Allows user code to inspect and/or change property values before they are written and after they are read from the database
IMultiQuery
Combines sevaral queries into a single database call
IQuery
An object-oriented representation of a NHibernate query.
ISession
The main runtime interface between a Java application and Hibernate. This is the central API class abstracting the notion of a persistence service.
ISessionFactory
Creates ISessions.
ISQLQuery
ITransaction
Allows the application to define units of work, while maintaining abstraction from the underlying transaction implementation

Enumerations

  EnumerationDescription
ConnectionReleaseMode
FetchMode
Represents a fetching strategy.
FlushMode
Represents a flushing strategy.