Class PerunBasicDataSource

java.lang.Object
com.zaxxer.hikari.HikariConfig
com.zaxxer.hikari.HikariDataSource
cz.metacentrum.perun.core.impl.PerunBasicDataSource
All Implemented Interfaces:
com.zaxxer.hikari.HikariConfigMXBean, Closeable, AutoCloseable, Wrapper, CommonDataSource, DataSource

public class PerunBasicDataSource extends com.zaxxer.hikari.HikariDataSource
DataSource used instead of HikariDataSource in Perun to override getConnection.
Author:
Jiri Mauritz
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    void
     
    void
    setJdbcUrl(String jdbcUrl)
     

    Methods inherited from class com.zaxxer.hikari.HikariDataSource

    close, evictConnection, getConnection, getHikariConfigMXBean, getHikariPoolMXBean, getLoginTimeout, getLogWriter, getParentLogger, isClosed, isRunning, isWrapperFor, setHealthCheckRegistry, setLoginTimeout, setLogWriter, setMetricRegistry, setMetricsTrackerFactory, toString, unwrap

    Methods inherited from class com.zaxxer.hikari.HikariConfig

    addDataSourceProperty, addHealthCheckProperty, copyStateTo, getCatalog, getConnectionInitSql, getConnectionTestQuery, getConnectionTimeout, getDataSource, getDataSourceClassName, getDataSourceJNDI, getDataSourceProperties, getDriverClassName, getExceptionOverrideClassName, getHealthCheckProperties, getHealthCheckRegistry, getIdleTimeout, getInitializationFailTimeout, getJdbcUrl, getKeepaliveTime, getLeakDetectionThreshold, getMaximumPoolSize, getMaxLifetime, getMetricRegistry, getMetricsTrackerFactory, getMinimumIdle, getPassword, getPoolName, getScheduledExecutor, getSchema, getThreadFactory, getTransactionIsolation, getUsername, getValidationTimeout, isAllowPoolSuspension, isAutoCommit, isIsolateInternalQueries, isReadOnly, isRegisterMbeans, setAllowPoolSuspension, setAutoCommit, setCatalog, setConnectionInitSql, setConnectionTestQuery, setConnectionTimeout, setDataSource, setDataSourceClassName, setDataSourceJNDI, setDataSourceProperties, setDriverClassName, setExceptionOverrideClassName, setHealthCheckProperties, setIdleTimeout, setInitializationFailTimeout, setIsolateInternalQueries, setKeepaliveTime, setLeakDetectionThreshold, setMaximumPoolSize, setMaxLifetime, setMinimumIdle, setPassword, setPoolName, setReadOnly, setRegisterMbeans, setScheduledExecutor, setSchema, setThreadFactory, setTransactionIsolation, setUsername, setValidationTimeout, validate

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface javax.sql.CommonDataSource

    createShardingKeyBuilder

    Methods inherited from interface javax.sql.DataSource

    createConnectionBuilder
  • Constructor Details

    • PerunBasicDataSource

      public PerunBasicDataSource()
  • Method Details

    • getAuditer

      public Auditer getAuditer()
    • getConnection

      public Connection getConnection() throws SQLException
      Specified by:
      getConnection in interface DataSource
      Overrides:
      getConnection in class com.zaxxer.hikari.HikariDataSource
      Throws:
      SQLException
    • setAuditer

      public void setAuditer(Auditer auditer)
    • setJdbcUrl

      public void setJdbcUrl(String jdbcUrl)
      Overrides:
      setJdbcUrl in class com.zaxxer.hikari.HikariConfig