Class SingleConnectionDatasource
- java.lang.Object
- 
- com.inductiveautomation.ignition.gateway.localdb.sqlite.SingleConnectionDatasource
 
- 
- All Implemented Interfaces:
- java.sql.Wrapper,- javax.sql.CommonDataSource,- javax.sql.DataSource
 
 public class SingleConnectionDatasource extends java.lang.Object implements javax.sql.DataSourceCreated by colby.clegg on 11/16/2015.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description protected classSingleConnectionDatasource.ProtectedConnection
 - 
Constructor SummaryConstructors Constructor Description SingleConnectionDatasource(javax.sql.DataSource delegate)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.sql.ConnectiongetConnection()java.sql.ConnectiongetConnection(java.lang.String username, java.lang.String password)intgetLoginTimeout()java.io.PrintWritergetLogWriter()java.util.logging.LoggergetParentLogger()booleanisWrapperFor(java.lang.Class<?> iface)protected voidreleaseConnection()voidsetLoginTimeout(int seconds)voidsetLogWriter(java.io.PrintWriter out)<T> Tunwrap(java.lang.Class<T> iface)
 
- 
- 
- 
Method Detail- 
getConnectionpublic java.sql.Connection getConnection() throws java.sql.SQLException- Specified by:
- getConnectionin interface- javax.sql.DataSource
- Throws:
- java.sql.SQLException
 
 - 
getConnectionpublic java.sql.Connection getConnection(java.lang.String username, java.lang.String password) throws java.sql.SQLException- Specified by:
- getConnectionin interface- javax.sql.DataSource
- Throws:
- java.sql.SQLException
 
 - 
releaseConnectionprotected void releaseConnection() 
 - 
getLogWriterpublic java.io.PrintWriter getLogWriter() throws java.sql.SQLException- Specified by:
- getLogWriterin interface- javax.sql.CommonDataSource
- Specified by:
- getLogWriterin interface- javax.sql.DataSource
- Throws:
- java.sql.SQLException
 
 - 
setLogWriterpublic void setLogWriter(java.io.PrintWriter out) throws java.sql.SQLException- Specified by:
- setLogWriterin interface- javax.sql.CommonDataSource
- Specified by:
- setLogWriterin interface- javax.sql.DataSource
- Throws:
- java.sql.SQLException
 
 - 
getLoginTimeoutpublic int getLoginTimeout() throws java.sql.SQLException- Specified by:
- getLoginTimeoutin interface- javax.sql.CommonDataSource
- Specified by:
- getLoginTimeoutin interface- javax.sql.DataSource
- Throws:
- java.sql.SQLException
 
 - 
setLoginTimeoutpublic void setLoginTimeout(int seconds) throws java.sql.SQLException- Specified by:
- setLoginTimeoutin interface- javax.sql.CommonDataSource
- Specified by:
- setLoginTimeoutin interface- javax.sql.DataSource
- Throws:
- java.sql.SQLException
 
 - 
getParentLoggerpublic java.util.logging.Logger getParentLogger() throws java.sql.SQLFeatureNotSupportedException- Specified by:
- getParentLoggerin interface- javax.sql.CommonDataSource
- Throws:
- java.sql.SQLFeatureNotSupportedException
 
 - 
unwrappublic <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException- Specified by:
- unwrapin interface- java.sql.Wrapper
- Throws:
- java.sql.SQLException
 
 - 
isWrapperForpublic boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException- Specified by:
- isWrapperForin interface- java.sql.Wrapper
- Throws:
- java.sql.SQLException
 
 
- 
 
-