Package 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
CurentSequenceRunnable is a runnable wrapper which obtains the current
sequence value from the database.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
run()
This method actually obtains the current sequence value.
-
Method Details
-
run
This method actually obtains the current sequence value.- Specified by:
run
in interfaceRunnable
- 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().
-