Class Sequence

    • Constructor Detail

      • Sequence

        protected Sequence​(edu.uiuc.ncsa.security.storage.sql.ConnectionPool connectionPool,
                           SequenceTable sequenceTable)
    • Method Detail

      • createNew

        public boolean createNew​(long initialValue)
        Description copied from interface: Incrementable
        This takes the place (or should) of Initializable.createNew() and passes along the first value of the newly created sequence. Using this method without a value takes whatever the underlying implementation deems fit for a first value should be.
        Specified by:
        createNew in interface Incrementable
        Returns:
      • destroy

        public boolean destroy()
        Specified by:
        destroy in interface edu.uiuc.ncsa.security.core.Initializable
      • init

        public boolean init()
        Specified by:
        init in interface edu.uiuc.ncsa.security.core.Initializable
      • createNew

        public boolean createNew()
        Specified by:
        createNew in interface edu.uiuc.ncsa.security.core.Initializable
      • isCreated

        public boolean isCreated()
        Specified by:
        isCreated in interface edu.uiuc.ncsa.security.core.Initializable
      • isInitialized

        public boolean isInitialized()
        Specified by:
        isInitialized in interface edu.uiuc.ncsa.security.core.Initializable
      • isDestroyed

        public boolean isDestroyed()
        Specified by:
        isDestroyed in interface edu.uiuc.ncsa.security.core.Initializable