Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.openjpa.jdbc.kernel
Class TableJDBCSeq.CurrentSequenceRunnable

    java.lang.Object
      org.apache.openjpa.jdbc.kernel.TableJDBCSeq.CurrentSequenceRunnable

All Implemented Interfaces:
  Runnable

Enclosing class:
  TableJDBCSeq

    protected class TableJDBCSeq.CurrentSequenceRunnable

extends Object
implements Runnable

CurentSequenceRunnable is a runnable wrapper which obtains the current sequence value from the database.

Constructor Summary
`TableJDBCSeq.CurrentSequenceRunnable(JDBCStore store, ClassMapping mapping)`

Method Summary
`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`

Constructor Detail

### TableJDBCSeq.CurrentSequenceRunnable

    TableJDBCSeq.CurrentSequenceRunnable(JDBCStore store,
                                         ClassMapping mapping)

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().

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.