org.datanucleus.metadata
Class IdentityType

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

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

Representation of the values for identity-type.

See Also:
Serialized Form

Field Summary
static IdentityType APPLICATION
          identity-type="application"
static IdentityType DATASTORE
          identity-type="datastore"
static IdentityType NONDURABLE
          identity-type="nondurable"
 
Method Summary
 boolean equals(java.lang.Object o)
          Indicates whether some other object is "equal to" this one.
static IdentityType getIdentityType(java.lang.String value)
          Return IdentityType from String.
 int getType()
          Accessor to the identity type
 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

APPLICATION

public static final IdentityType APPLICATION
identity-type="application"


DATASTORE

public static final IdentityType DATASTORE
identity-type="datastore"


NONDURABLE

public static final IdentityType NONDURABLE
identity-type="nondurable"

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

public int getType()
Accessor to the identity type

Returns:
the type

getIdentityType

public static IdentityType getIdentityType(java.lang.String value)
Return IdentityType from String.

Parameters:
value - identity-type attribute value
Returns:
Instance of IdentityType. If parse failed, return null.


Copyright © 2011. All Rights Reserved.