Uniqueing information consists of the entity-name, the referenced property name, and the referenced property value.
EntityKey
| Modifier and Type | Field and Description |
|---|---|
| private final EntityMode | |
| private final String | |
| private final int | |
| private final Object | |
| private final Type | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | EntityUniqueKey(final String entityName, final String uniqueKeyName, final Object semiResolvedKey, final Type keyType, final EntityMode entityMode, final SessionFactoryImplementor factory)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| pack-priv static EntityUniqueKey | 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. |
| public int | |
| public String | |
| public Object | |
| public String | |
| public int | |
| 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 | |
| private void |
| entityMode | back to summary |
|---|---|
| private final EntityMode entityMode | |
| entityName | back to summary |
|---|---|
| private final String entityName | |
| hashCode | back to summary |
|---|---|
| private final int hashCode | |
| key | back to summary |
|---|---|
| private final Object key | |
| keyType | back to summary |
|---|---|
| private final Type keyType | |
| uniqueKeyName | back to summary |
|---|---|
| private final String uniqueKeyName | |
| EntityUniqueKey | back to summary |
|---|---|
| public EntityUniqueKey(final String entityName, final String uniqueKeyName, final Object semiResolvedKey, final Type keyType, final EntityMode entityMode, final SessionFactoryImplementor factory) | |
| checkAbilityToSerialize | back to summary |
|---|---|
| private void checkAbilityToSerialize() | |
| deserialize | back to summary |
|---|---|
| pack-priv static EntityUniqueKey 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 |
|---|---|
| public int generateHashCode(SessionFactoryImplementor factory) | |
| getEntityName | back to summary |
|---|---|
| public String getEntityName() | |
| getKey | back to summary |
|---|---|
| public Object getKey() | |
| getUniqueKeyName | back to summary |
|---|---|
| public String getUniqueKeyName() | |
| 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
| |
| 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.
| |
| writeObject | back to summary |
|---|---|
| private void writeObject(ObjectOutputStream oos) throws IOException | |