Package org.hibernate

Class StaleObjectStateException

  • All Implemented Interfaces:
    java.io.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​(java.lang.String entityName, java.io.Serializable identifier)
      Constructs a StaleObjectStateException using the supplied information.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getEntityName()  
      java.io.Serializable getIdentifier()  
      java.lang.String getMessage()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • StaleObjectStateException

        public StaleObjectStateException​(java.lang.String entityName,
                                         java.io.Serializable identifier)
        Constructs a StaleObjectStateException using the supplied information.
        Parameters:
        entityName - The name of the entity
        identifier - The identifier of the entity
    • Method Detail

      • getEntityName

        public java.lang.String getEntityName()
      • getIdentifier

        public java.io.Serializable getIdentifier()
      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable