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
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.DBInterface
DBInterface.Transaction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
Gets the next value in a sequence.long
getSeq
(String seqName, 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
Methods inherited from class com.inductiveautomation.ignition.gateway.localdb.AbstractDBInterface
resultSetToListNatural, runPrepQuery, runPrepQuery, runPrepUpdate, runPrepUpdate, runQuery, runQuery, runScalarQuery, runTransaction, runUpdateQuery, runUpdateQuery
-
Constructor Details
-
PersistenceSessionDBInterface
-
-
Method Details
-
getConnection
- Specified by:
getConnection
in interfaceDBInterface
- Specified by:
getConnection
in classAbstractDBInterface
- Throws:
SQLException
-
shouldCloseConnection
protected boolean shouldCloseConnection()- Overrides:
shouldCloseConnection
in classAbstractDBInterface
-
getSeq
Description copied from class:AbstractDBInterface
Gets the next value in a sequence.- Specified by:
getSeq
in interfaceDBInterface
- Overrides:
getSeq
in classAbstractDBInterface
- Throws:
SQLException
-
getSeq
Description copied from interface:DBInterface
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.- Specified by:
getSeq
in interfaceDBInterface
- Overrides:
getSeq
in classAbstractDBInterface
- Throws:
SQLException
-