org.datanucleus.metadata
Class SequenceStrategy

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

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

Representation of strategy of a Sequence.

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

Field Summary
static SequenceStrategy CONTIGUOUS
          language="continguous"
static SequenceStrategy NONCONTIGUOUS
          language="noncontiguous"
static SequenceStrategy NONTRANSACTIONAL
          language="nontransactional"
 
Method Summary
 boolean equals(java.lang.Object o)
          Indicates whether some other object is "equal to" this one.
static SequenceStrategy getStrategy(java.lang.String value)
          Return Sequence strategy from String.
 int getType()
          Accessor to the sequence strategy 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

NONTRANSACTIONAL

public static final SequenceStrategy NONTRANSACTIONAL
language="nontransactional"


CONTIGUOUS

public static final SequenceStrategy CONTIGUOUS
language="continguous"


NONCONTIGUOUS

public static final SequenceStrategy NONCONTIGUOUS
language="noncontiguous"

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 sequence strategy type

Returns:
the type

getStrategy

public static SequenceStrategy getStrategy(java.lang.String value)
Return Sequence strategy from String.

Parameters:
value - sequence strategy
Returns:
Instance of SequenceStrategy. If parse failed, return null.


Copyright © 2009. All Rights Reserved.