Class 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

        ec, generator, seqMetaData, storeManager
    • Constructor Summary

      Constructors 
      Constructor Description
      NucleusSequenceImpl​(org.datanucleus.ExecutionContext objectMgr, RDBMSStoreManager storeMgr, org.datanucleus.metadata.SequenceMetaData seqmd)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.ExecutionContext objectMgr,
                                   RDBMSStoreManager storeMgr,
                                   org.datanucleus.metadata.SequenceMetaData seqmd)
        Constructor.
        Parameters:
        objectMgr - The ExecutionContext 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