org.datanucleus.store.rdbms
Class NucleusSequenceImpl

java.lang.Object
  extended by org.datanucleus.store.NucleusSequenceImpl
      extended by org.datanucleus.store.rdbms.NucleusSequenceImpl
All Implemented Interfaces:
org.datanucleus.store.NucleusSequence

public class NucleusSequenceImpl
extends org.datanucleus.store.NucleusSequenceImpl

Basic implementation of a DataNucleus datastore sequence for RDBMS. Utilises the org.datanucleus.store.valuegenerator classes to generate sequence values.


Field Summary
 
Fields inherited from class org.datanucleus.store.NucleusSequenceImpl
generator, LOCALISER, om, seqMetaData, storeManager
 
Constructor Summary
NucleusSequenceImpl(org.datanucleus.ObjectManager objectMgr, org.datanucleus.store.mapped.MappedStoreManager storeMgr, org.datanucleus.metadata.SequenceMetaData seqmd)
          Constructor.
 
Method Summary
 void setGenerator()
          Method to set the value generator.
 
Methods inherited from class org.datanucleus.store.NucleusSequenceImpl
allocate, current, currentValue, getName, next, nextValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NucleusSequenceImpl

public NucleusSequenceImpl(org.datanucleus.ObjectManager objectMgr,
                           org.datanucleus.store.mapped.MappedStoreManager storeMgr,
                           org.datanucleus.metadata.SequenceMetaData seqmd)
Constructor.

Parameters:
objectMgr - The Object Manager managing the sequence
storeMgr - Manager of the store where we obtain the sequence
seqmd - MetaData defining the sequence
Method Detail

setGenerator

public void setGenerator()
Method to set the value generator. Uses "sequence" if the datastore supports it, otherwise "increment".

Overrides:
setGenerator in class org.datanucleus.store.NucleusSequenceImpl


Copyright © 2009. All Rights Reserved.