org.apache.openjpa.persistence
Class Generator

java.lang.Object
  extended by org.apache.openjpa.persistence.Generator

public class Generator
extends java.lang.Object

Represents a store sequence.

Since:
4.0
Author:
Abe White

Field Summary
static java.lang.String UUID_HEX
           
static java.lang.String UUID_STRING
           
 
Constructor Summary
Generator(org.apache.openjpa.kernel.Seq seq, java.lang.String name, org.apache.openjpa.kernel.StoreContext ctx, org.apache.openjpa.meta.ClassMetaData meta)
          Constructor; supply delegate.
 
Method Summary
 void allocate(int additional)
          Hint to the sequence to allocate additional values up-front for efficiency.
 java.lang.Object current()
          The current sequence value, or null if the sequence does not support current values.
 boolean equals(java.lang.Object other)
           
 org.apache.openjpa.kernel.Seq getDelegate()
          Delegate.
 java.lang.String getName()
          The sequence name.
 int hashCode()
           
 java.lang.Object next()
          The next sequence value.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UUID_HEX

public static final java.lang.String UUID_HEX
See Also:
Constant Field Values

UUID_STRING

public static final java.lang.String UUID_STRING
See Also:
Constant Field Values
Constructor Detail

Generator

public Generator(org.apache.openjpa.kernel.Seq seq,
                 java.lang.String name,
                 org.apache.openjpa.kernel.StoreContext ctx,
                 org.apache.openjpa.meta.ClassMetaData meta)
Constructor; supply delegate.

Method Detail

getDelegate

public org.apache.openjpa.kernel.Seq getDelegate()
Delegate.


getName

public java.lang.String getName()
The sequence name.


next

public java.lang.Object next()
The next sequence value.


current

public java.lang.Object current()
The current sequence value, or null if the sequence does not support current values.


allocate

public void allocate(int additional)
Hint to the sequence to allocate additional values up-front for efficiency.


hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object


Copyright © 2006 Apache Software Foundation. All Rights Reserved.