Class PersistenceSession.PersistenceSessionDBInterface
- java.lang.Object
- 
- com.inductiveautomation.ignition.gateway.localdb.AbstractDBInterface
- 
- com.inductiveautomation.ignition.gateway.localdb.persistence.PersistenceSession.PersistenceSessionDBInterface
 
 
- 
- All Implemented Interfaces:
- DBInterface
 - Enclosing class:
- PersistenceSession
 
 protected class PersistenceSession.PersistenceSessionDBInterface extends AbstractDBInterface This is a special wrapper that uses our Connection for operations. It also has to make sure the connection isn't closed, as the base class does, after operations.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface com.inductiveautomation.ignition.gateway.localdb.DBInterfaceDBInterface.Transaction
 
- 
 - 
Constructor SummaryConstructors Constructor Description PersistenceSessionDBInterface(DBInterface gwDbi)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.sql.ConnectiongetConnection()longgetSeq(java.lang.String seqName)Gets the next value in a sequence.longgetSeq(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 booleanshouldCloseConnection()- 
Methods inherited from class com.inductiveautomation.ignition.gateway.localdb.AbstractDBInterfaceresultSetToListNatural, runPrepQuery, runPrepQuery, runPrepUpdate, runPrepUpdate, runQuery, runQuery, runScalarQuery, runTransaction, runUpdateQuery, runUpdateQuery
 
- 
 
- 
- 
- 
Constructor Detail- 
PersistenceSessionDBInterfacepublic PersistenceSessionDBInterface(DBInterface gwDbi) 
 
- 
 - 
Method Detail- 
getConnectionpublic java.sql.Connection getConnection() throws java.sql.SQLException- Specified by:
- getConnectionin interface- DBInterface
- Specified by:
- getConnectionin class- AbstractDBInterface
- Throws:
- java.sql.SQLException
 
 - 
shouldCloseConnectionprotected boolean shouldCloseConnection() - Overrides:
- shouldCloseConnectionin class- AbstractDBInterface
 
 - 
getSeqpublic long getSeq(java.lang.String seqName) throws java.sql.SQLExceptionDescription copied from class:AbstractDBInterfaceGets the next value in a sequence.- Specified by:
- getSeqin interface- DBInterface
- Overrides:
- getSeqin class- AbstractDBInterface
- Throws:
- java.sql.SQLException
 
 - 
getSeqpublic long getSeq(java.lang.String seqName, java.sql.Connection connection) throws java.sql.SQLExceptionDescription copied from interface:DBInterfaceLike the other getSeq, but operates against a particular local db connection, which may be necessary if the sequence generation is part of a transaction.- Specified by:
- getSeqin interface- DBInterface
- Overrides:
- getSeqin class- AbstractDBInterface
- Throws:
- java.sql.SQLException
 
 
- 
 
-