| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.dao.DataAccessException
org.springframework.dao.DataRetrievalFailureException
org.springframework.orm.ObjectRetrievalFailureException
Exception thrown if a mapped object could not be retrieved via its identifier. Provides information about the persistent class and the identifier.
| Field Summary | 
| Fields inherited from class java.lang.RuntimeException | 
 | 
| Constructor Summary | |
ObjectRetrievalFailureException(Class persistentClass,
                                Object identifier)
Create a new ObjectRetrievalFailureException for the given object, with the default "not found" message.  | 
|
ObjectRetrievalFailureException(Class persistentClass,
                                Object identifier,
                                String msg,
                                Throwable ex)
Create a new ObjectRetrievalFailureException for the given object, with the given explicit message and exception.  | 
|
ObjectRetrievalFailureException(String persistentClassName,
                                Object identifier)
Create a new ObjectRetrievalFailureException for the given object, with the default "not found" message.  | 
|
ObjectRetrievalFailureException(String persistentClassName,
                                Object identifier,
                                String msg,
                                Throwable ex)
Create a new ObjectRetrievalFailureException for the given object, with the given explicit message and exception.  | 
|
| Method Summary | |
 Object | 
getIdentifier()
Return the identifier of the object that was not found.  | 
 Class | 
getPersistentClass()
Return the persistent class of the object that was not found.  | 
 String | 
getPersistentClassName()
Return the name of the persistent class of the object that was not found.  | 
| Methods inherited from class org.springframework.core.NestedRuntimeException | 
contains, getCause, getMessage, printStackTrace, printStackTrace | 
| Methods inherited from class java.lang.Throwable | 
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
public ObjectRetrievalFailureException(Class persistentClass,
                                       Object identifier)
persistentClass - the persistent classidentifier - the ID of the object that should have been retrieved
public ObjectRetrievalFailureException(Class persistentClass,
                                       Object identifier,
                                       String msg,
                                       Throwable ex)
persistentClass - the persistent classidentifier - the ID of the object that should have been retrievedmsg - exception messageex - source exception
public ObjectRetrievalFailureException(String persistentClassName,
                                       Object identifier)
persistentClassName - the name of the persistent classidentifier - the ID of the object that should have been retrieved
public ObjectRetrievalFailureException(String persistentClassName,
                                       Object identifier,
                                       String msg,
                                       Throwable ex)
persistentClassName - the name of the persistent classidentifier - the ID of the object that should have been retrievedmsg - exception messageex - source exception| Method Detail | 
public Class getPersistentClass()
public String getPersistentClassName()
public Object getIdentifier()
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||