|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.speedo.sequence.lib.SpeedoSequence
This class corresponds to the description of the tag sequence in the XML file. A sequence has : - a name - a datastore name (not mandatory) - a factory class (not mandatory) - a strategy - a package name
Field Summary | |
---|---|
java.lang.Integer |
cache
|
static byte |
CONTIGUOUS
|
static java.lang.String |
CONTIGUOUS_STRING
|
java.lang.String |
datastoreName
The name of the sequence in the datastore Can be null or "" |
java.lang.String |
factoryClass
The name of the factory class Can be null or "" |
java.lang.Integer |
increment
|
java.lang.String |
name
The name of the sequence |
static byte |
NON_TRANSACTIONAL
|
static java.lang.String |
NON_TRANSACTIONAL_STRING
|
java.lang.String |
packageName
The name of the package in which the sequence has been defined |
java.lang.Integer |
start
|
byte |
strategy
The strategy of the sequence (NON_TRANSACTIONAL | CONTIGUOUS | NON_CONTIGUOUS) |
static byte |
TRANSACTIONAL
|
static java.lang.String |
TRANSACTIONAL_STRING
|
Constructor Summary | |
---|---|
SpeedoSequence()
|
Method Summary | |
---|---|
void |
allocate(int additional)
Provides a hint to the implementation that the application will need additional sequence value objects in short order. |
java.lang.Object |
current()
Returns the current sequence value object if it is available. |
long |
currentValue()
|
org.objectweb.jorm.facility.naming.generator.LongGen |
getLongGen()
|
java.lang.String |
getName()
Returns the fully qualified name of the Sequence. |
SequenceManager |
getSequenceManager()
|
java.lang.Object |
next()
Returns the next sequence value object. |
long |
nextValue()
|
void |
setLongGen(org.objectweb.jorm.facility.naming.generator.LongGen longGen)
|
void |
setSequenceManager(SequenceManager sequenceManager)
|
static byte |
strategyToByte(java.lang.String s)
Transforms a String into a Byte. |
static java.lang.String |
strategyToString(byte b)
Transforms a byte into a String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final byte NON_TRANSACTIONAL
public static final byte CONTIGUOUS
public static final byte TRANSACTIONAL
public static final java.lang.String NON_TRANSACTIONAL_STRING
public static final java.lang.String CONTIGUOUS_STRING
public static final java.lang.String TRANSACTIONAL_STRING
public java.lang.String name
public java.lang.String datastoreName
public java.lang.String factoryClass
public byte strategy
public java.lang.String packageName
public java.lang.Integer increment
public java.lang.Integer start
public java.lang.Integer cache
Constructor Detail |
public SpeedoSequence()
Method Detail |
public org.objectweb.jorm.facility.naming.generator.LongGen getLongGen()
public void setLongGen(org.objectweb.jorm.facility.naming.generator.LongGen longGen)
public static byte strategyToByte(java.lang.String s)
s
- String to transform.
public static java.lang.String strategyToString(byte b)
b
- the byte to transform.
public SequenceManager getSequenceManager()
public void setSequenceManager(SequenceManager sequenceManager)
public void allocate(int additional)
allocate
in interface javax.jdo.datastore.Sequence
public java.lang.Object current()
current
in interface javax.jdo.datastore.Sequence
public java.lang.String getName()
getName
in interface javax.jdo.datastore.Sequence
public java.lang.Object next()
next
in interface javax.jdo.datastore.Sequence
public long nextValue()
nextValue
in interface javax.jdo.datastore.Sequence
public long currentValue()
currentValue
in interface javax.jdo.datastore.Sequence
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |