|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujoframework.orm.UjoSequencer
public class UjoSequencer
The default sequence provider. A result value is recieved from a special database table.
| Field Summary | |
|---|---|
protected long |
maxValue
Total limit, zero means no restriction |
protected long |
seqLimit
Buffer limit |
protected long |
sequence
Current sequence value |
protected MetaTable |
table
Basic table. |
| Constructor Summary | |
|---|---|
UjoSequencer(MetaTable table)
|
|
| Method Summary | |
|---|---|
MetaDatabase |
getDatabase()
Returns model of the database |
java.lang.String |
getDatabaseSchema()
Returns the database schema |
int |
getIncrement()
The UJO cache is the number of pre-allocated numbers inside the OrmUjo framework. |
int |
getInitDbCache()
The cache of a database sequence is zero by default. |
MetaTable |
getTable()
Returns a related table or null if sequence is general for the all MetaDatabase space |
long |
nextValue(Session session)
Returns the next sequence value by a synchronized method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final MetaTable table
protected long sequence
protected long seqLimit
protected long maxValue
| Constructor Detail |
|---|
public UjoSequencer(MetaTable table)
| Method Detail |
|---|
public long nextValue(Session session)
public java.lang.String getDatabaseSchema()
public int getIncrement()
public int getInitDbCache()
public MetaDatabase getDatabase()
public MetaTable getTable()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||