public static enum CopyEntityAttributes.CopyMode extends java.lang.Enum<CopyEntityAttributes.CopyMode>
FROM_ENTITY
: The entity attributes will be copied from the
entity to the copy object.TO_ENTITY
: The entity attributes will be copied from the
copy object to the entity. If the entity doesn't exist a new instance
will be created.TO_NEW_ENTITY
: The entity attributes will be copied from
the copy object to a new entity instance. If the entity parameter
already contains an entity instance it will be overwritten with the
new instance.TO_EXISTING_ENTITY
: The entity attributes will be copied
from the copy object to the entity if it exists. If the entity
parameter doesn't contain an entity no values will be copied.Enum Constant and Description |
---|
FROM_ENTITY |
TO_ENTITY |
TO_EXISTING_ENTITY |
TO_NEW_ENTITY |
Modifier and Type | Method and Description |
---|---|
static CopyEntityAttributes.CopyMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CopyEntityAttributes.CopyMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CopyEntityAttributes.CopyMode FROM_ENTITY
public static final CopyEntityAttributes.CopyMode TO_ENTITY
public static final CopyEntityAttributes.CopyMode TO_NEW_ENTITY
public static final CopyEntityAttributes.CopyMode TO_EXISTING_ENTITY
public static CopyEntityAttributes.CopyMode[] values()
for (CopyEntityAttributes.CopyMode c : CopyEntityAttributes.CopyMode.values()) System.out.println(c);
public static CopyEntityAttributes.CopyMode 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 null