com.wideplay.warp.persist.internal
Enum PersistenceFlavor
java.lang.Object
java.lang.Enum<PersistenceFlavor>
com.wideplay.warp.persist.internal.PersistenceFlavor
- All Implemented Interfaces:
- HasPersistenceStrategy, Serializable, Comparable<PersistenceFlavor>
public enum PersistenceFlavor
- extends Enum<PersistenceFlavor>
- implements HasPersistenceStrategy
Enumerates the persistence engines we support out-of-the-box.
HIBERNATE
public static final PersistenceFlavor HIBERNATE
JPA
public static final PersistenceFlavor JPA
DB4O
public static final PersistenceFlavor DB4O
values
public static final PersistenceFlavor[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(PersistenceFlavor c : PersistenceFlavor.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static PersistenceFlavor valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name