类 CollectionKey
- java.lang.Object
-
- org.hibernate.engine.spi.CollectionKey
-
- 所有已实现的接口:
Serializable
public final class CollectionKey extends Object implements Serializable
Uniquely identifies a collection instance in a particular session.- 作者:
- Gavin King
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 CollectionKey(CollectionPersister persister, Serializable key)CollectionKey(CollectionPersister persister, Serializable key, EntityMode em)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static CollectionKeydeserialize(ObjectInputStream ois, SessionImplementor session)Custom deserialization routine used during deserialization of a Session/PersistenceContext for increased performance.booleanequals(Object other)SerializablegetKey()StringgetRole()inthashCode()voidserialize(ObjectOutputStream oos)Custom serialization routine used during serialization of a Session/PersistenceContext for increased performance.StringtoString()
-
-
-
构造器详细资料
-
CollectionKey
public CollectionKey(CollectionPersister persister, Serializable key)
-
CollectionKey
@Deprecated public CollectionKey(CollectionPersister persister, Serializable key, EntityMode em)
The EntityMode parameter is now ignored. Use the other constructor.
-
-
方法详细资料
-
getRole
public String getRole()
-
getKey
public Serializable getKey()
-
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 CollectionKey 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 CollectionKey
- 抛出:
IOExceptionClassNotFoundException
-
-