Class TableJDBCSeq.AllocateSequenceRunnable

  • All Implemented Interfaces:
    Runnable
    Enclosing class:
    TableJDBCSeq

    protected class TableJDBCSeq.AllocateSequenceRunnable
    extends Object
    implements Runnable
    AllocateSequenceRunnable is a runnable wrapper that will inserts the initial sequence value into the database.
    • Method Detail

      • run

        public void run()
                 throws RuntimeException
        This method actually obtains the current sequence value.
        Specified by:
        run in interface Runnable
        Throws:
        RuntimeException - any SQLExceptions that occur when obtaining the sequence value are wrapped in a runtime exception to avoid breaking the Runnable method signature. The caller can obtain the "real" exception by calling getCause().