org.datanucleus.metadata
Class ClassPersistenceModifier

java.lang.Object
  extended by org.datanucleus.metadata.ClassPersistenceModifier
All Implemented Interfaces:
java.io.Serializable

public class ClassPersistenceModifier
extends java.lang.Object
implements java.io.Serializable

Definition of the options for persistence-modifier of a class.

See Also:
Serialized Form

Field Summary
static ClassPersistenceModifier NON_PERSISTENT
          persistence-modifier="non-persistent"
static ClassPersistenceModifier PERSISTENCE_AWARE
          persistence-modifier="persistence-aware"
static ClassPersistenceModifier PERSISTENCE_CAPABLE
          persistence-modifier="persistence-capable"
 
Method Summary
 boolean equals(java.lang.Object o)
          Indicates whether some other object is "equal to" this one.
static ClassPersistenceModifier getClassPersistenceModifier(java.lang.String value)
          Return ClassPersistenceModifier from String.
protected  int getType()
          Accessor for the Persistence Modifier id.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PERSISTENCE_CAPABLE

public static final ClassPersistenceModifier PERSISTENCE_CAPABLE
persistence-modifier="persistence-capable"


PERSISTENCE_AWARE

public static final ClassPersistenceModifier PERSISTENCE_AWARE
persistence-modifier="persistence-aware"


NON_PERSISTENT

public static final ClassPersistenceModifier NON_PERSISTENT
persistence-modifier="non-persistent"

Method Detail

equals

public boolean equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class java.lang.Object
Parameters:
o - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the object.

getType

protected int getType()
Accessor for the Persistence Modifier id.

Returns:
The id

getClassPersistenceModifier

public static ClassPersistenceModifier getClassPersistenceModifier(java.lang.String value)
Return ClassPersistenceModifier from String.

Parameters:
value - persistence-modifier attribute value
Returns:
Instance of ClassPersistenceModifier. If value invalid, return null.


Copyright © 2011. All Rights Reserved.