public enum Persistability extends Enum<Persistability>
| Enum Constant and Description |
|---|
PROGRAM_PERSISTABLE
Marks a class as being persistable, but only by under application program
control.
|
TRANSIENT
Marks a class as transient - such an object cannot be persisted.
|
USER_PERSISTABLE
Marks a class as being persistable by the user (or under application
program control).
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isPersistable() |
String |
toString() |
static Persistability |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Persistability[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Persistability PROGRAM_PERSISTABLE
public static final Persistability TRANSIENT
public static final Persistability USER_PERSISTABLE
public static Persistability[] values()
for (Persistability c : Persistability.values()) System.out.println(c);
public static Persistability 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 boolean isPersistable()
public String toString()
toString in class Enum<Persistability>Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.