org.datanucleus.metadata
Class FieldPersistenceModifier

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

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

Class defining the possibilities for persistence, in terms of the type of persistence, and the types that are capable to be supported.

See Also:
Serialized Form

Field Summary
static FieldPersistenceModifier DEFAULT
          default persistence modifier
static FieldPersistenceModifier NONE
          persistence-modifier="none"
static FieldPersistenceModifier PERSISTENT
          persistence-modifier="persistent"
static FieldPersistenceModifier TRANSACTIONAL
          persistence-modifier="transactional"
 
Method Summary
 boolean equals(java.lang.Object o)
          Indicates whether some other object is "equal to" this one.
static FieldPersistenceModifier getFieldPersistenceModifier(java.lang.String value)
          Return FieldPersistenceModifier from String.
protected  int getType()
           
 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

PERSISTENT

public static final FieldPersistenceModifier PERSISTENT
persistence-modifier="persistent"


TRANSACTIONAL

public static final FieldPersistenceModifier TRANSACTIONAL
persistence-modifier="transactional"


NONE

public static final FieldPersistenceModifier NONE
persistence-modifier="none"


DEFAULT

public static final FieldPersistenceModifier DEFAULT
default persistence modifier

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()

getFieldPersistenceModifier

public static FieldPersistenceModifier getFieldPersistenceModifier(java.lang.String value)
Return FieldPersistenceModifier from String.

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


Copyright © 2010. All Rights Reserved.