public enum EntityState extends java.lang.Enum<EntityState>
Enum Constant and Description |
---|
P_DELETED |
P_DELETING |
P_NON_TRANSACTIONAL |
P_PERSISTED |
P_PERSISTING |
P_TRANSACTIONAL |
TRANSIENT |
Modifier and Type | Method and Description |
---|---|
boolean |
isDeleting() |
boolean |
isManaged() |
boolean |
isNonTransactional() |
boolean |
isPersist() |
boolean |
isTransactional() |
static EntityState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EntityState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EntityState TRANSIENT
public static final EntityState P_NON_TRANSACTIONAL
public static final EntityState P_PERSISTING
public static final EntityState P_PERSISTED
public static final EntityState P_TRANSACTIONAL
public static final EntityState P_DELETING
public static final EntityState P_DELETED
public static EntityState[] values()
for (EntityState c : EntityState.values()) System.out.println(c);
public static EntityState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final boolean isManaged()
public final boolean isNonTransactional()
public final boolean isPersist()
public final boolean isTransactional()
public final boolean isDeleting()