Class SequenceUtil


  • public class SequenceUtil
    extends java.lang.Object
    Sequence Utility to get unique sequences from named sequence banks
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void forceBankRefresh​(java.lang.String seqName, long staggerMax)
      Force bank refresh.
      java.lang.Long getNextSeqId​(java.lang.String seqName, long staggerMax, ModelEntity seqModelEntity)
      Gets next seq id.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SequenceUtil

        public SequenceUtil​(GenericHelperInfo helperInfo,
                            ModelEntity seqEntity,
                            java.lang.String nameFieldName,
                            java.lang.String idFieldName)
    • Method Detail

      • getNextSeqId

        public java.lang.Long getNextSeqId​(java.lang.String seqName,
                                           long staggerMax,
                                           ModelEntity seqModelEntity)
        Gets next seq id.
        Parameters:
        seqName - the seq name
        staggerMax - the stagger max
        seqModelEntity - the seq model entity
        Returns:
        the next seq id
      • forceBankRefresh

        public void forceBankRefresh​(java.lang.String seqName,
                                     long staggerMax)
        Force bank refresh.
        Parameters:
        seqName - the seq name
        staggerMax - the stagger max