Uniqueing information consists of the entity-name and the identifier value.
EntityUniqueKey
| Modifier and Type | Field and Description |
|---|---|
| private final EntityMode | |
| private final String | |
| private final SessionFactoryImplementor | |
| private final int | |
| private final Serializable | |
| private final Type | |
| private final boolean | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | EntityKey(Serializable id, EntityPersister persister, EntityMode entityMode)
Construct a unique identifier for an entity class instance |
| private | EntityKey(Serializable
The identifier value identifier, String The root entity name rootEntityName, String The specific entity name entityName, Type The type of the identifier value identifierType, boolean Whether represented entity is eligible for batch loading batchLoadable, SessionFactoryImplementor The session factory factory, EntityMode The entity's entity mode entityMode)Used to reconstruct an EntityKey during deserialization. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static EntityKey | Returns: The deserialized EntityEntryThe stream from which to read the entry. ois, SessionImplementor The session being deserialized. session)Custom deserialization routine used during deserialization of a Session/PersistenceContext for increased performance. |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| private int | |
| public String | |
| public Serializable | |
| public int | |
| public boolean | |
| pack-priv void | serialize(ObjectOutputStream
The stream to which we should write the serial data. oos)Custom serialization routine used during serialization of a Session/PersistenceContext for increased performance. |
| public String |
| entityMode | back to summary |
|---|---|
| private final EntityMode entityMode | |
| entityName | back to summary |
|---|---|
| private final String entityName | |
| factory | back to summary |
|---|---|
| private final SessionFactoryImplementor factory | |
| hashCode | back to summary |
|---|---|
| private final int hashCode | |
| identifier | back to summary |
|---|---|
| private final Serializable identifier | |
| identifierType | back to summary |
|---|---|
| private final Type identifierType | |
| isBatchLoadable | back to summary |
|---|---|
| private final boolean isBatchLoadable | |
| rootEntityName | back to summary |
|---|---|
| private final String rootEntityName | |
| EntityKey | back to summary |
|---|---|
| public EntityKey(Serializable id, EntityPersister persister, EntityMode entityMode) Construct a unique identifier for an entity class instance | |
| EntityKey | back to summary |
|---|---|
| private EntityKey(Serializable identifier, String rootEntityName, String entityName, Type identifierType, boolean batchLoadable, SessionFactoryImplementor factory, EntityMode entityMode) Used to reconstruct an EntityKey during deserialization.
| |
| deserialize | back to summary |
|---|---|
| pack-priv static EntityKey deserialize(ObjectInputStream ois, SessionImplementor session) throws IOException, ClassNotFoundException Custom deserialization routine used during deserialization of a Session/PersistenceContext for increased performance.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| generateHashCode | back to summary |
|---|---|
| private int generateHashCode() | |
| getEntityName | back to summary |
|---|---|
| public String getEntityName() | |
| getIdentifier | back to summary |
|---|---|
| public Serializable getIdentifier() Get the user-visible identifier | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isBatchLoadable | back to summary |
|---|---|
| public boolean isBatchLoadable() | |
| serialize | back to summary |
|---|---|
| pack-priv void serialize(ObjectOutputStream oos) throws IOException Custom serialization routine used during serialization of a Session/PersistenceContext for increased performance.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |