Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hibernate
Class ObjectNotFoundException  view ObjectNotFoundException download ObjectNotFoundException.java

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.hibernate.exception.NestableRuntimeException
                  extended byorg.hibernate.HibernateException
                      extended byorg.hibernate.UnresolvableObjectException
                          extended byorg.hibernate.ObjectNotFoundException
All Implemented Interfaces:
org.hibernate.exception.Nestable, java.io.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.


Nested Class Summary
 
Nested classes inherited from class java.lang.Throwable
 
Field Summary
 
Fields inherited from class org.hibernate.UnresolvableObjectException
 
Fields inherited from class org.hibernate.exception.NestableRuntimeException
delegate
 
Fields inherited from class java.lang.RuntimeException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
ObjectNotFoundException(java.io.Serializable identifier, java.lang.String clazz)
           
 
Methods inherited from class org.hibernate.UnresolvableObjectException
getEntityName, getIdentifier, getMessage, throwIfNull
 
Methods inherited from class org.hibernate.exception.NestableRuntimeException
getCause, getMessage, getMessages, getThrowable, getThrowableCount, getThrowables, indexOfThrowable, indexOfThrowable, printPartialStackTrace, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectNotFoundException

public ObjectNotFoundException(java.io.Serializable identifier,
                               java.lang.String clazz)