protected class PersistenceSession.PersistenceSessionDBInterface extends AbstractDBInterface
DBInterface.Transaction| Constructor and Description |
|---|
PersistenceSessionDBInterface(DBInterface gwDbi) |
| Modifier and Type | Method and Description |
|---|---|
java.sql.Connection |
getConnection() |
long |
getSeq(java.lang.String seqName)
Gets the next value in a sequence.
|
long |
getSeq(java.lang.String seqName,
java.sql.Connection connection)
Like the other getSeq, but operates against a particular local db connection,
which may be necessary if the sequence generation is part of a transaction.
|
protected boolean |
shouldCloseConnection() |
resultSetToListNatural, runPrepQuery, runPrepQuery, runPrepUpdate, runPrepUpdate, runQuery, runQuery, runScalarQuery, runTransaction, runUpdateQuery, runUpdateQuerypublic PersistenceSessionDBInterface(DBInterface gwDbi)
public java.sql.Connection getConnection()
throws java.sql.SQLException
getConnection in interface DBInterfacegetConnection in class AbstractDBInterfacejava.sql.SQLExceptionprotected boolean shouldCloseConnection()
shouldCloseConnection in class AbstractDBInterfacepublic long getSeq(java.lang.String seqName)
throws java.sql.SQLException
AbstractDBInterfacegetSeq in interface DBInterfacegetSeq in class AbstractDBInterfacejava.sql.SQLExceptionpublic long getSeq(java.lang.String seqName,
java.sql.Connection connection)
throws java.sql.SQLException
DBInterfacegetSeq in interface DBInterfacegetSeq in class AbstractDBInterfacejava.sql.SQLException