|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.amazon.carbonado.sequence.AbstractSequenceValueProducer
public abstract class AbstractSequenceValueProducer
| Constructor Summary | |
|---|---|
protected |
AbstractSequenceValueProducer()
|
| Method Summary | |
|---|---|
String |
nextDecimalValue()
Returns the next decimal string value from the sequence, which remains positive. |
int |
nextIntValue()
Returns the next value from the sequence, which may wrap negative if all positive values are exhausted. |
String |
nextNumericalValue(int radix,
int minLength)
Returns the next numerical string value from the sequence, which remains positive. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.amazon.carbonado.sequence.SequenceValueProducer |
|---|
nextLongValue, returnReservedValues |
| Constructor Detail |
|---|
protected AbstractSequenceValueProducer()
| Method Detail |
|---|
public int nextIntValue()
throws PersistException
SequenceValueProducerNote: this method throws PersistException even for fetch failures since this method is called by insert operations. Insert operations can only throw a PersistException.
nextIntValue in interface SequenceValueProducerPersistException - for fetch/persist failure or if sequence is
exhausted for int values.
public String nextDecimalValue()
throws PersistException
SequenceValueProducerNote: this method throws PersistException even for fetch failures since this method is called by insert operations. Insert operations can only throw a PersistException.
nextDecimalValue in interface SequenceValueProducerPersistException - for fetch/persist failure or if sequence is exhausted.
public String nextNumericalValue(int radix,
int minLength)
throws PersistException
SequenceValueProducerNote: this method throws PersistException even for fetch failures since this method is called by insert operations. Insert operations can only throw a PersistException.
nextNumericalValue in interface SequenceValueProducerradix - use 2 for binary, 10 for decimal, 16 for hex. Max is 36.minLength - ensure string is at least this long (padded with zeros if
necessary) to ensure proper string sort
PersistException - for fetch/persist failure or if sequence is exhausted.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||