Package org.hibernate
Class StaleObjectStateException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.persistence.PersistenceException
-
- org.hibernate.HibernateException
-
- org.hibernate.StaleStateException
-
- org.hibernate.StaleObjectStateException
-
- All Implemented Interfaces:
Serializable
public class StaleObjectStateException extends StaleStateException
A specialized StaleStateException that carries information about the particular entity instance that was the source of the failure.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StaleObjectStateException(String entityName, Serializable identifier)
Constructs a StaleObjectStateException using the supplied information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getEntityName()
Serializable
getIdentifier()
String
getMessage()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
StaleObjectStateException
public StaleObjectStateException(String entityName, Serializable identifier)
Constructs a StaleObjectStateException using the supplied information.- Parameters:
entityName
- The name of the entityidentifier
- The identifier of the entity
-
-
Method Detail
-
getEntityName
public String getEntityName()
-
getIdentifier
public Serializable getIdentifier()
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
-