java.lang.Object | |
↳ | org.hibernate.engine.EntityEntry |
We need an entry to tell us all about the current state of an object with respect to its persistent state
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get the EntityKey based on this EntityEntry.
| |||||||||||
Can the entity be modified?
The entity is modifiable if all of the following are true:
| |||||||||||
After actually deleting a row, record the fact that the instance no longer
exists in the database
| |||||||||||
After actually inserting a row, record the fact that the instance exists on the
database (needed for identity-column key generation)
| |||||||||||
Handle updating the internal state of the entry after actually performing
the database update.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Get the EntityKey based on this EntityEntry.
IllegalStateException | if getId() is null |
---|
Can the entity be modified? The entity is modifiable if all of the following are true:
After actually deleting a row, record the fact that the instance no longer exists in the database
After actually inserting a row, record the fact that the instance exists on the database (needed for identity-column key generation)
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
entity | The entity instance |
---|---|
updatedState | The state calculated after the update (becomes the
new loaded state . |
nextVersion | The new version. |