当前页面:
在线文档首页 >
Hibernate 3.2.4 正式版 API 英文文档
ObjectNotFoundException (Hibernate API Documentation) - Hibernate 3.2.4 正式版 API 英文文档
org.hibernate
Class ObjectNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.hibernate.exception.NestableRuntimeException
org.hibernate.HibernateException
org.hibernate.UnresolvableObjectException
org.hibernate.ObjectNotFoundException
- All Implemented Interfaces:
- Nestable, Serializable
- public class ObjectNotFoundException
- extends UnresolvableObjectException
Thrown when Session.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 Session.get() to test if
a row exists in the database.
Like all Hibernate exceptions, this exception is considered
unrecoverable.
- Author:
- Gavin King
- See Also:
- Serialized Form
Methods inherited from class org.hibernate.exception.NestableRuntimeException |
getCause, getMessage, getMessages, getThrowable, getThrowableCount, getThrowables, indexOfThrowable, indexOfThrowable, printPartialStackTrace, printStackTrace, printStackTrace, printStackTrace |
ObjectNotFoundException
public ObjectNotFoundException(Serializable identifier,
String clazz)