Interface Datasource
- 
- All Superinterfaces:
- DatasourceMeta
 
 public interface Datasource extends DatasourceMeta An instance of a Ignition Datasource, which represents a configured connection pool to a database through JDBC. The datasource maintains knowledge of its current status, and when faulted, will be re-tested periodically.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcancelStatement(java.util.UUID statementId)SRConnectiongetConnection()Retrieves a connection from the underlying connection pool, or creates a new connection if necessary.JDBCDrivergetDriver()Returns the driver that this datasource uses to connect to the databaseDatasourceMetricsgetMetrics()java.lang.ThrowablegetProblem()If this datasource is FAULTED, this will be the exception that caused it to failDBTranslatorgetTranslator()booleanincludeSchemaInTablename()Whether table names should be fully qualified with their schemas.- 
Methods inherited from interface com.inductiveautomation.ignition.common.datasource.DatasourceMetagetActiveConnections, getActiveQueries, getDescription, getExtendedStatus, getFailoverMode, getMaxConnections, getName, getProblemDescription, getStatistics, getStatus, getValidationQuery, getVendor
 
- 
 
- 
- 
- 
Method Detail- 
getDriverJDBCDriver getDriver() Returns the driver that this datasource uses to connect to the database
 - 
getTranslatorDBTranslator getTranslator() 
 - 
includeSchemaInTablenameboolean includeSchemaInTablename() Whether table names should be fully qualified with their schemas.
 - 
getConnectionSRConnection getConnection() throws java.sql.SQLException Retrieves a connection from the underlying connection pool, or creates a new connection if necessary. Closing this connection will return it to the pool.- Throws:
- java.sql.SQLException
 
 - 
getProblemjava.lang.Throwable getProblem() If this datasource is FAULTED, this will be the exception that caused it to fail
 - 
cancelStatementvoid cancelStatement(java.util.UUID statementId) 
 - 
getMetricsDatasourceMetrics getMetrics() 
 
- 
 
-