public enum DbEntityState extends Enum<DbEntityState>
Enum Constant and Description |
---|
DELETED_MERGED
A
MERGED object which may exists in the database and is set to be deleted by the current session. |
DELETED_PERSISTENT
A persistent object which has been loaded into this session and will be deleted with the next flush.
|
DELETED_TRANSIENT
A transient object which does not exist in the database but has been created and deleted in the current session.
|
MERGED
A persistent object which may exist in the database but which has not been loaded into the current session
form the database.
|
PERSISTENT
A persistent object has been loaded from the database by the current session.
|
TRANSIENT
A transient object does not exist in the database and has been created by the current session.
|
Modifier and Type | Method and Description |
---|---|
static DbEntityState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DbEntityState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DbEntityState TRANSIENT
PERSISTENT
with the next flush.public static final DbEntityState PERSISTENT
public static final DbEntityState MERGED
PERSISTENT
.public static final DbEntityState DELETED_TRANSIENT
public static final DbEntityState DELETED_PERSISTENT
public static final DbEntityState DELETED_MERGED
MERGED
object which may exists in the database and is set to be deleted by the current session.
It will be removed from the cache at the next flush.public static DbEntityState[] values()
for (DbEntityState c : DbEntityState.values()) System.out.println(c);
public static DbEntityState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2018. All rights reserved.