| Modifier and Type | Field and Description |
|---|---|
| private transient EntityKey | |
| private Object[] | |
| private final EntityMode | |
| private final String | |
| private boolean | |
| private final Serializable | |
| private boolean | |
| private Object[] | |
| private boolean | |
| private LockMode | |
| private transient EntityPersister | |
| private Status | |
| private final transient Object | |
| private Status | |
| private Object |
| Access | Constructor and Description |
|---|---|
| pack-priv | EntityEntry(final Status status, final Object[] loadedState, final Object rowId, final Serializable id, final Object version, final LockMode lockMode, final boolean existsInDatabase, final EntityPersister persister, final EntityMode entityMode, final boolean disableVersionIncrement, final boolean lazyPropertiesAreUnfetched)
|
| private | EntityEntry(final SessionFactoryImplementor factory, final String entityName, final Serializable id, final EntityMode entityMode, final Status status, final Status previousStatus, final Object[] loadedState, final Object[] deletedState, final Object version, final LockMode lockMode, final boolean existsInDatabase, final boolean isBeingReplicated, final boolean loadedWithLazyPropertiesUnfetched)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static EntityEntry | 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 void | |
| public Object[] | |
| public EntityKey | |
| public String | |
| public Serializable | |
| public Object[] | |
| public Object | |
| public LockMode | |
| public EntityPersister | |
| public Object | |
| public Status | |
| public Object | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | Returns: true, if the entity is modifiable; false, otherwise,Can the entity be modified? |
| public boolean | |
| public boolean | |
| public void | postDelete()
After actually deleting a row, record the fact that the instance no longer exists in the database |
| public void | postInsert()
After actually inserting a row, record the fact that the instance exists on the database (needed for identity-column key generation) |
| public void | postUpdate(Object
The entity instance entity, Object[] The state calculated after the update (becomes the
new updatedState, Object loaded state.The new version. nextVersion)Handle updating the internal state of the entry after actually performing the database update. |
| 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 void | |
| public void | |
| public void | |
| public void | |
| public String |
| cachedEntityKey | back to summary |
|---|---|
| private transient EntityKey cachedEntityKey | |
| deletedState | back to summary |
|---|---|
| private Object[] deletedState | |
| entityMode | back to summary |
|---|---|
| private final EntityMode entityMode | |
| entityName | back to summary |
|---|---|
| private final String entityName | |
| existsInDatabase | back to summary |
|---|---|
| private boolean existsInDatabase | |
| id | back to summary |
|---|---|
| private final Serializable id | |
| isBeingReplicated | back to summary |
|---|---|
| private boolean isBeingReplicated | |
| loadedState | back to summary |
|---|---|
| private Object[] loadedState | |
| loadedWithLazyPropertiesUnfetched | back to summary |
|---|---|
| private boolean loadedWithLazyPropertiesUnfetched | |
| lockMode | back to summary |
|---|---|
| private LockMode lockMode | |
| persister | back to summary |
|---|---|
| private transient EntityPersister persister | |
| previousStatus | back to summary |
|---|---|
| private Status previousStatus | |
| rowId | back to summary |
|---|---|
| private final transient Object rowId | |
| status | back to summary |
|---|---|
| private Status status | |
| version | back to summary |
|---|---|
| private Object version | |
| EntityEntry | back to summary |
|---|---|
| pack-priv EntityEntry(final Status status, final Object[] loadedState, final Object rowId, final Serializable id, final Object version, final LockMode lockMode, final boolean existsInDatabase, final EntityPersister persister, final EntityMode entityMode, final boolean disableVersionIncrement, final boolean lazyPropertiesAreUnfetched) | |
| EntityEntry | back to summary |
|---|---|
| private EntityEntry(final SessionFactoryImplementor factory, final String entityName, final Serializable id, final EntityMode entityMode, final Status status, final Status previousStatus, final Object[] loadedState, final Object[] deletedState, final Object version, final LockMode lockMode, final boolean existsInDatabase, final boolean isBeingReplicated, final boolean loadedWithLazyPropertiesUnfetched) | |
| deserialize | back to summary |
|---|---|
| pack-priv static EntityEntry deserialize(ObjectInputStream ois, SessionImplementor session) throws IOException, ClassNotFoundException Custom deserialization routine used during deserialization of a Session/PersistenceContext for increased performance.
| |
| forceLocked | back to summary |
|---|---|
| public void forceLocked(Object entity, Object nextVersion) | |
| getDeletedState | back to summary |
|---|---|
| public Object[] getDeletedState() | |
| getEntityKey | back to summary |
|---|---|
| public EntityKey getEntityKey() Get the EntityKey based on this EntityEntry.
| |
| getEntityName | back to summary |
|---|---|
| public String getEntityName() | |
| getId | back to summary |
|---|---|
| public Serializable getId() | |
| getLoadedState | back to summary |
|---|---|
| public Object[] getLoadedState() | |
| getLoadedValue | back to summary |
|---|---|
| public Object getLoadedValue(String propertyName) | |
| getLockMode | back to summary |
|---|---|
| public LockMode getLockMode() | |
| getPersister | back to summary |
|---|---|
| public EntityPersister getPersister() | |
| getRowId | back to summary |
|---|---|
| public Object getRowId() | |
| getStatus | back to summary |
|---|---|
| public Status getStatus() | |
| getVersion | back to summary |
|---|---|
| public Object getVersion() | |
| isBeingReplicated | back to summary |
|---|---|
| public boolean isBeingReplicated() | |
| isExistsInDatabase | back to summary |
|---|---|
| public boolean isExistsInDatabase() | |
| isLoadedWithLazyPropertiesUnfetched | back to summary |
|---|---|
| public boolean isLoadedWithLazyPropertiesUnfetched() | |
| isModifiableEntity | back to summary |
|---|---|
| public boolean isModifiableEntity() Can the entity be modified? The entity is modifiable if all of the following are true:
| |
| isNullifiable | back to summary |
|---|---|
| public boolean isNullifiable(boolean earlyInsert, SessionImplementor session) | |
| isReadOnly | back to summary |
|---|---|
| public boolean isReadOnly() | |
| postDelete | back to summary |
|---|---|
| public void postDelete() After actually deleting a row, record the fact that the instance no longer exists in the database | |
| postInsert | back to summary |
|---|---|
| public void postInsert() After actually inserting a row, record the fact that the instance exists on the database (needed for identity-column key generation) | |
| postUpdate | back to summary |
|---|---|
| public void postUpdate(Object entity, Object[] updatedState, Object nextVersion) Handle updating the internal state of the entry after actually performing the database update. Specifically we update the snapshot information and escalate the lock mode
| |
| requiresDirtyCheck | back to summary |
|---|---|
| public boolean requiresDirtyCheck(Object entity) | |
| 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.
| |
| setDeletedState | back to summary |
|---|---|
| public void setDeletedState(Object[] deletedState) | |
| setLockMode | back to summary |
|---|---|
| public void setLockMode(LockMode lockMode) | |
| setReadOnly | back to summary |
|---|---|
| public void setReadOnly(boolean readOnly, Object entity) | |
| setStatus | back to summary |
|---|---|
| public void setStatus(Status status) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |