A transient object does not exist in the database and has been created by the current session.
It will be INSERTed to the database and marked PERSISTENT with the next flush.
A persistent object has been loaded from the database by the current session.
At the next flush, the session will perform dirty checking and flush an update if the object's persistent state changed.
It will remain persistent after the next flush.
A persistent object which may exist in the database but which has not been loaded into the current session
form the database. A detached copy of the object has been modified offline and merged back into the session.
At the next flush an update with optimistic locking check will be performed and after that, the object will be marked
PERSISTENT.
A transient object which does not exist in the database but has been created and deleted in the current session.
It will not be flushed to the database and will be removed from the cache at the next flush.
A persistent object which has been loaded into this session and will be deleted with the next flush.
After the flush it will be removed from the cache.
Returns the enum constant of this class with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this class. (Extraneous whitespace characters are
not permitted.)
Parameters:
name - the name of the enum constant to be returned.