org.apache.jdo.model.jdo
Class PersistenceModifier

java.lang.Object
  extended byorg.apache.jdo.model.jdo.PersistenceModifier

public class PersistenceModifier
extends java.lang.Object

This interface provides constants denoting JDO specific modifiers for fields of a persistence-capable class.

Author:
Michael Bouschen

Field Summary
static int NONE
          Constant representing a none field modifier.
static int PERSISTENT
          Constant representing a persistence field modifier.
static int POSSIBLY_PERSISTENT
          Constant representing a possibly persistence field modifier.
static int TRANSACTIONAL
          Constant representing a transactional field modifier.
static int UNSPECIFIED
          Constant representing an unspecified field modifier
 
Constructor Summary
PersistenceModifier()
           
 
Method Summary
static int toPersistenceModifier(java.lang.String persistenceModifier)
          Returns the PersistenceModifier constant for the specified string.
static java.lang.String toString(int persistenceModifier)
          Returns a string representation of the specified persistence modifer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNSPECIFIED

public static final int UNSPECIFIED
Constant representing an unspecified field modifier

See Also:
Constant Field Values

NONE

public static final int NONE
Constant representing a none field modifier.

See Also:
Constant Field Values

TRANSACTIONAL

public static final int TRANSACTIONAL
Constant representing a transactional field modifier.

See Also:
Constant Field Values

PERSISTENT

public static final int PERSISTENT
Constant representing a persistence field modifier.

See Also:
Constant Field Values

POSSIBLY_PERSISTENT

public static final int POSSIBLY_PERSISTENT
Constant representing a possibly persistence field modifier.

See Also:
Constant Field Values
Constructor Detail

PersistenceModifier

public PersistenceModifier()
Method Detail

toString

public static java.lang.String toString(int persistenceModifier)
Returns a string representation of the specified persistence modifer.

Parameters:
persistenceModifier - the persistence modifer, one of UNSPECIFIED, NONE, PERSISTENT, TRANSACTIONAL, or POSSIBLY_PERSISTENT.
Returns:
the string representation of the PersistenceModifer constant

toPersistenceModifier

public static int toPersistenceModifier(java.lang.String persistenceModifier)
Returns the PersistenceModifier constant for the specified string.

Parameters:
persistenceModifier - the string representation of the persistence modifer
Returns:
the persistence modifer, one of UNSPECIFIED, NONE, PERSISTENT or TRANSACTIONAL


Copyright © 2005 Apache Software Foundation. All Rights Reserved.