|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.derquinsej.hib3.seq.Sequence
@Entity public class Sequence
Entity representing database row-backed sequences. The use of these kind of sequences is the possibility of using them transactionally. WARNING: Transactional sequences are a source of locks and may hurt scalability.
| Constructor Summary | |
|---|---|
Sequence()
Default constructor. |
|
| Method Summary | |
|---|---|
long |
getCurrent()
Returns the current value of the sequence. |
String |
getId()
Returns the name of the sequence. |
long |
getIncrement()
Returns the increment to use in the sequence. |
void |
setIncrement(long increment)
Sets the new increment. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Sequence()
| Method Detail |
|---|
public String getId()
public long getCurrent()
public long getIncrement()
public void setIncrement(long increment)
increment - The new increment.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||