Package com.mckoi.database
Class SequenceManager.SequenceGenerator
- java.lang.Object
-
- com.mckoi.database.SequenceManager.SequenceGenerator
-
- Enclosing class:
- SequenceManager
private static class SequenceManager.SequenceGenerator extends java.lang.ObjectAn object that encapsulates information about the sequence key.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) longcacheHow many values we cache.(package private) longcurrent_valThe current value of this sequence generator.(package private) booleancycleTrue if the sequence key is cycled.(package private) longidThe id value of this sequence key.(package private) longincrement_byThe number we increment the sequence key by.(package private) longlast_valueThe last value of this sequence key.(package private) longmax_valueThe maximum value of the sequence key.(package private) longmin_valueThe minimum value of the sequence key.(package private) TableNamenameThe name of this sequence key.(package private) longstartThe start value of the sequence generator.(package private) inttypeThe type of this sequence key.
-
Constructor Summary
Constructors Constructor Description SequenceGenerator(long id, TableName name)SequenceGenerator(long id, TableName name, long last_value, long increment_by, long min_value, long max_value, long start, long cache, boolean cycle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidincrementCurrentValue()(package private) voidincrementLastValue()private longincrementValue(long val)
-
-
-
Field Detail
-
current_val
long current_val
The current value of this sequence generator.
-
id
long id
The id value of this sequence key.
-
name
TableName name
The name of this sequence key.
-
type
int type
The type of this sequence key.
-
last_value
long last_value
The last value of this sequence key. This value represents the value of the sequence key in the persistence medium.
-
increment_by
long increment_by
The number we increment the sequence key by.
-
min_value
long min_value
The minimum value of the sequence key.
-
max_value
long max_value
The maximum value of the sequence key.
-
start
long start
The start value of the sequence generator.
-
cache
long cache
How many values we cache.
-
cycle
boolean cycle
True if the sequence key is cycled.
-
-