org.apache.jdo.model.jdo
Class JDOIdentityType

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

public class JDOIdentityType
extends java.lang.Object

This interface provides constants denoting the identity type of a persistence-capable class.

Author:
Michael Bouschen

Field Summary
static int APPLICATION
          Constant representing jdo identity managed by the application.
static int DATASTORE
          Constant representing jdo identity managed by the database.
static int NONDURABLE
          Constant representing unmanaged jdo identity.
static int UNSPECIFIED
          Constant representing an unspecified jdo identity
 
Constructor Summary
JDOIdentityType()
           
 
Method Summary
static int toJDOIdentityType(java.lang.String jdoIdentityType)
          Returns the JDOIdentityType constant, one of APPLICATION, DATASTORE, or NONDURABLE for the specified string.
static java.lang.String toString(int jdoIdentityType)
          Returns a string representation of the specified identity type constant.
 
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 jdo identity

See Also:
Constant Field Values

DATASTORE

public static final int DATASTORE
Constant representing jdo identity managed by the database.

See Also:
Constant Field Values

APPLICATION

public static final int APPLICATION
Constant representing jdo identity managed by the application.

See Also:
Constant Field Values

NONDURABLE

public static final int NONDURABLE
Constant representing unmanaged jdo identity.

See Also:
Constant Field Values
Constructor Detail

JDOIdentityType

public JDOIdentityType()
Method Detail

toString

public static java.lang.String toString(int jdoIdentityType)
Returns a string representation of the specified identity type constant.

Parameters:
jdoIdentityType - the JDO identity type, one of APPLICATION, DATASTORE, or NONDURABLE
Returns:
the string representation of the JDOIdentityType constant

toJDOIdentityType

public static int toJDOIdentityType(java.lang.String jdoIdentityType)
Returns the JDOIdentityType constant, one of APPLICATION, DATASTORE, or NONDURABLE for the specified string.

Parameters:
jdoIdentityType - the string representation of the JDO identity type
Returns:
the JDO identity type


Copyright © 2005 Apache Software Foundation. All Rights Reserved.