Implementation Note
Hibernate instantiates very many of instances of this type, and so we need to take care of its impact on memory consumption.
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public Object[] | |
| public EntityKey | |
| public String | |
| public <T extends EntityEntryExtraState> T | |
| public Object | |
| public Object[] | |
| public Object | |
| public LockMode | |
| public EntityPersister | |
| public Object | |
| public Status | |
| public Object | |
| 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 | |
| public void | postDelete()
After actually deleting a row, record the fact that the instance no longer exists in the database. |
| public void | |
| public void | postInsert(Object[] insertedState)
After actually inserting a row, record the fact that the instance exists in 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 | Returns: true indicates that the entity could possibly be dirty
and that the dirty-check should happen;
false indicates there is no way the entity can be dirtyThe entity to test entity)Returns |
| public void | serialize(ObjectOutputStream
The stream to which we should write the serial data. oos)Custom serialization routine used during serialization of a
|
| public void | |
| public void | |
| public void | |
| public void | |
| public String |
| addExtraState | back to summary |
|---|---|
| public void addExtraState(EntityEntryExtraState extraState) | |
| 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
| |
| getEntityName | back to summary |
|---|---|
| public String getEntityName() | |
| getExtraState | back to summary |
|---|---|
| public <T extends EntityEntryExtraState> T getExtraState(Class<T> extraStateType) | |
| getId | back to summary |
|---|---|
| public Object 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() | |
| isModifiableEntity | back to summary |
|---|---|
| public boolean isModifiableEntity() Can the entity be modified? The entity is modifiable if all the following are true:
| |
| isNullifiable | back to summary |
|---|---|
| public boolean isNullifiable(boolean earlyInsert, SharedSessionContractImplementor session) | |
| isReadOnly | back to summary |
|---|---|
| public boolean isReadOnly() | |
| overwriteLoadedStateCollectionValue | back to summary |
|---|---|
| public void overwriteLoadedStateCollectionValue(String propertyName, PersistentCollection<?> collection) | |
| 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(Object version) | |
| postInsert | back to summary |
|---|---|
| public void postInsert(Object[] insertedState) After actually inserting a row, record the fact that the instance exists in 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) Returns
| |
| serialize | back to summary |
|---|---|
| public void serialize(ObjectOutputStream oos) throws IOException Custom serialization routine used during serialization of a
| |
| 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()
| |