|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.persistence.GeneratorImpl
public class GeneratorImpl
Represents a store sequence.
| Field Summary |
|---|
| Fields inherited from interface org.apache.openjpa.persistence.Generator |
|---|
UUID_HEX, UUID_STRING, UUID_TYPE4_HEX, UUID_TYPE4_STRING |
| Constructor Summary | |
|---|---|
GeneratorImpl(Seq seq,
String name,
StoreContext ctx,
ClassMetaData meta)
Constructor; supply delegate. |
|
| Method Summary | |
|---|---|
void |
allocate(int additional)
Hint to the sequence to allocate additional values up-front for efficiency. |
Object |
current()
The current sequence value, or null if the sequence does not support current values. |
boolean |
equals(Object other)
|
Seq |
getDelegate()
Delegate. |
String |
getName()
The sequence name. |
int |
hashCode()
|
Object |
next()
The next sequence value. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GeneratorImpl(Seq seq,
String name,
StoreContext ctx,
ClassMetaData meta)
| Method Detail |
|---|
public Seq getDelegate()
getDelegate in interface Generatorpublic String getName()
Generator
getName in interface Generatorpublic Object next()
Generator
next in interface Generatorpublic Object current()
Generator
current in interface Generatorpublic void allocate(int additional)
Generator
allocate in interface Generatorpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||