public enum MergeDirection extends Enum<MergeDirection>
Enum Constant and Description |
---|
TO_DB
TO_DB Token means that changes was made in object model and should be reflected at DB
|
TO_MODEL
TO_MODEL Token represent database changes that should be allayed to object model
|
Modifier and Type | Method and Description |
---|---|
String |
getName() |
boolean |
isToDb() |
boolean |
isToModel() |
MergeDirection |
reverseDirection() |
String |
toString() |
static MergeDirection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MergeDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MergeDirection TO_DB
public static final MergeDirection TO_MODEL
public static MergeDirection[] values()
for (MergeDirection c : MergeDirection.values()) System.out.println(c);
public static MergeDirection 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 nullpublic String getName()
public boolean isToDb()
public boolean isToModel()
public String toString()
toString
in class Enum<MergeDirection>
public MergeDirection reverseDirection()
Copyright © 2001–2015 Apache Cayenne. All rights reserved.