程序包 org.hibernate
类 UnresolvableObjectException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.persistence.PersistenceException
-
- org.hibernate.HibernateException
-
- org.hibernate.UnresolvableObjectException
-
- 所有已实现的接口:
Serializable
public class UnresolvableObjectException extends HibernateException
Thrown when Hibernate could not resolve an object by id, especially when loading an association.- 作者:
- Gavin King
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 限定符 构造器 说明 UnresolvableObjectException(Serializable identifier, String entityName)Constructs an UnresolvableObjectException using the specified information.protectedUnresolvableObjectException(String message, Serializable identifier, String clazz)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetEntityName()SerializablegetIdentifier()StringgetMessage()static voidthrowIfNull(Object entity, Serializable identifier, String entityName)Factory method for building and throwing an UnresolvableObjectException if the entity is null.
-
-
-
构造器详细资料
-
UnresolvableObjectException
public UnresolvableObjectException(Serializable identifier, String entityName)
Constructs an UnresolvableObjectException using the specified information.- 参数:
identifier- The identifier of the entity which could not be resolvedentityName- The name of the entity which could not be resolved
-
UnresolvableObjectException
protected UnresolvableObjectException(String message, Serializable identifier, String clazz)
-
-
方法详细资料
-
throwIfNull
public static void throwIfNull(Object entity, Serializable identifier, String entityName) throws UnresolvableObjectException
Factory method for building and throwing an UnresolvableObjectException if the entity is null.- 参数:
entity- The entity to check for nullnessidentifier- The identifier of the entityentityName- The name of the entity- 抛出:
UnresolvableObjectException- Thrown if entity is null
-
getIdentifier
public Serializable getIdentifier()
-
getEntityName
public String getEntityName()
-
getMessage
public String getMessage()
- 覆盖:
getMessage在类中Throwable
-
-