com.wideplay.warp.persist.internal
Enum PersistenceFlavor

java.lang.Object
  extended by java.lang.Enum<PersistenceFlavor>
      extended by 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.


Enum Constant Summary
DB4O
           
HIBERNATE
           
JPA
           
 
Method Summary
static PersistenceFlavor valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PersistenceFlavor[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.wideplay.warp.persist.internal.HasPersistenceStrategy
getPersistenceStrategy
 

Enum Constant Detail

HIBERNATE

public static final PersistenceFlavor HIBERNATE

JPA

public static final PersistenceFlavor JPA

DB4O

public static final PersistenceFlavor DB4O
Method Detail

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