org.apache.openjpa.persistence
Enum PersistenceStrategy
java.lang.Object
java.lang.Enum<PersistenceStrategy>
org.apache.openjpa.persistence.PersistenceStrategy
- All Implemented Interfaces:
- Serializable, Comparable<PersistenceStrategy>
public enum PersistenceStrategy
- extends Enum<PersistenceStrategy>
Set of field persistence strategies used in JPA.
- Author:
- Abe White
BASIC
public static final PersistenceStrategy BASIC
MANY_ONE
public static final PersistenceStrategy MANY_ONE
ONE_MANY
public static final PersistenceStrategy ONE_MANY
ONE_ONE
public static final PersistenceStrategy ONE_ONE
MANY_MANY
public static final PersistenceStrategy MANY_MANY
EMBEDDED
public static final PersistenceStrategy EMBEDDED
TRANSIENT
public static final PersistenceStrategy TRANSIENT
PERS
public static final PersistenceStrategy PERS
PERS_COLL
public static final PersistenceStrategy PERS_COLL
PERS_MAP
public static final PersistenceStrategy PERS_MAP
values
public static final PersistenceStrategy[] 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(PersistenceStrategy c : PersistenceStrategy.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static PersistenceStrategy 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
Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.