org.datanucleus.metadata
Class DiscriminatorStrategy

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

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

Representation of the values for discriminator "strategy".

Since:
1.1
Version:
$Revision: 1.4 $
See Also:
Serialized Form

Field Summary
static DiscriminatorStrategy CLASS_NAME
          strategy="class-name"
static DiscriminatorStrategy NONE
          strategy="none"
static DiscriminatorStrategy VALUE_MAP
          strategy="value-map"
 
Method Summary
 boolean equals(java.lang.Object o)
          Indicates whether some other object is "equal to" this one.
static DiscriminatorStrategy getDiscriminatorStrategy(java.lang.String value)
          Accessor for the strategy
 int getType()
          Accessor for the 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

NONE

public static final DiscriminatorStrategy NONE
strategy="none"


VALUE_MAP

public static final DiscriminatorStrategy VALUE_MAP
strategy="value-map"


CLASS_NAME

public static final DiscriminatorStrategy CLASS_NAME
strategy="class-name"

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 for the type.

Returns:
Type

getDiscriminatorStrategy

public static DiscriminatorStrategy getDiscriminatorStrategy(java.lang.String value)
Accessor for the strategy

Parameters:
value - The string form
Returns:
The strategy


Copyright © 2009. All Rights Reserved.