类 EntityUniqueKey
- java.lang.Object
-
- org.hibernate.engine.spi.EntityUniqueKey
-
- 所有已实现的接口:
Serializable
public class EntityUniqueKey extends Object implements Serializable
Used to uniquely key an entity instance in relation to a particular session by some unique property reference, as opposed to identifier. Uniqueing information consists of the entity-name, the referenced property name, and the referenced property value.
-
-
构造器概要
构造器 构造器 说明 EntityUniqueKey(String entityName, String uniqueKeyName, Object semiResolvedKey, Type keyType, EntityMode entityMode, SessionFactoryImplementor factory)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static EntityUniqueKeydeserialize(ObjectInputStream ois, SessionImplementor session)Custom deserialization routine used during deserialization of a Session/PersistenceContext for increased performance.booleanequals(Object other)intgenerateHashCode(SessionFactoryImplementor factory)StringgetEntityName()ObjectgetKey()StringgetUniqueKeyName()inthashCode()voidserialize(ObjectOutputStream oos)Custom serialization routine used during serialization of a Session/PersistenceContext for increased performance.StringtoString()
-
-
-
构造器详细资料
-
EntityUniqueKey
public EntityUniqueKey(String entityName, String uniqueKeyName, Object semiResolvedKey, Type keyType, EntityMode entityMode, SessionFactoryImplementor factory)
-
-
方法详细资料
-
getEntityName
public String getEntityName()
-
getKey
public Object getKey()
-
getUniqueKeyName
public String getUniqueKeyName()
-
generateHashCode
public int generateHashCode(SessionFactoryImplementor factory)
-
serialize
public void serialize(ObjectOutputStream oos) throws IOException
Custom serialization routine used during serialization of a Session/PersistenceContext for increased performance.- 参数:
oos- The stream to which we should write the serial data.- 抛出:
IOException
-
deserialize
public static EntityUniqueKey deserialize(ObjectInputStream ois, SessionImplementor session) throws IOException, ClassNotFoundException
Custom deserialization routine used during deserialization of a Session/PersistenceContext for increased performance.- 参数:
ois- The stream from which to read the entry.session- The session being deserialized.- 返回:
- The deserialized EntityEntry
- 抛出:
IOExceptionClassNotFoundException
-
-