Class TableJDBCSeq.CurrentSequenceRunnable

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    TableJDBCSeq

    protected class TableJDBCSeq.CurrentSequenceRunnable
    extends java.lang.Object
    implements java.lang.Runnable
    CurentSequenceRunnable is a runnable wrapper which obtains the current sequence value from the database.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()
      This method actually obtains the current sequence value.
      • Methods inherited from class java.lang.Object

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

      • run

        public void run()
                 throws java.lang.RuntimeException
        This method actually obtains the current sequence value.
        Specified by:
        run in interface java.lang.Runnable
        Throws:
        java.lang.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().