程序包 org.hibernate
类 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
-
- 所有已实现的接口:
Serializable
public class StaleObjectStateException extends StaleStateException
A specialized StaleStateException that carries information about the particular entity instance that was the source of the failure.- 作者:
- Gavin King
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 StaleObjectStateException(String entityName, Serializable identifier)Constructs a StaleObjectStateException using the supplied information.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetEntityName()SerializablegetIdentifier()StringgetMessage()
-
-
-
构造器详细资料
-
StaleObjectStateException
public StaleObjectStateException(String entityName, Serializable identifier)
Constructs a StaleObjectStateException using the supplied information.- 参数:
entityName- The name of the entityidentifier- The identifier of the entity
-
-
方法详细资料
-
getEntityName
public String getEntityName()
-
getIdentifier
public Serializable getIdentifier()
-
getMessage
public String getMessage()
- 覆盖:
getMessage在类中Throwable
-
-