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, runUpdateQuery
public PersistenceSessionDBInterface(DBInterface gwDbi)
public java.sql.Connection getConnection() throws java.sql.SQLException
getConnection
in interface DBInterface
getConnection
in class AbstractDBInterface
java.sql.SQLException
protected boolean shouldCloseConnection()
shouldCloseConnection
in class AbstractDBInterface
public long getSeq(java.lang.String seqName) throws java.sql.SQLException
AbstractDBInterface
getSeq
in interface DBInterface
getSeq
in class AbstractDBInterface
java.sql.SQLException
public long getSeq(java.lang.String seqName, java.sql.Connection connection) throws java.sql.SQLException
DBInterface
getSeq
in interface DBInterface
getSeq
in class AbstractDBInterface
java.sql.SQLException