|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 |
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()
public String getName()
Generator
getName
in interface Generator
public Object next()
Generator
next
in interface Generator
public Object current()
Generator
current
in interface Generator
public void allocate(int additional)
Generator
allocate
in interface Generator
public int hashCode()
hashCode
in class Object
public boolean equals(Object other)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |