Class HikariSqlClient

java.lang.Object
me.hsgamer.hscore.database.client.sql.hikari.HikariSqlClient
All Implemented Interfaces:
Client<com.zaxxer.hikari.HikariDataSource>, SqlClient<com.zaxxer.hikari.HikariDataSource>

public class HikariSqlClient extends Object implements SqlClient<com.zaxxer.hikari.HikariDataSource>
The SQL client with HikariCP
  • Constructor Details

    • HikariSqlClient

      public HikariSqlClient(Setting setting)
      Create new SQL client
      Parameters:
      setting - the setting
  • Method Details

    • getSetting

      public Setting getSetting()
      Description copied from interface: Client
      Get the setting
      Specified by:
      getSetting in interface Client<com.zaxxer.hikari.HikariDataSource>
      Returns:
      the setting
    • getOriginal

      public com.zaxxer.hikari.HikariDataSource getOriginal()
      Description copied from interface: Client
      Get the original
      Specified by:
      getOriginal in interface Client<com.zaxxer.hikari.HikariDataSource>
      Returns:
      the original
    • getConnection

      public Connection getConnection() throws SQLException
      Description copied from interface: SqlClient
      Get the connection
      Specified by:
      getConnection in interface SqlClient<com.zaxxer.hikari.HikariDataSource>
      Returns:
      the connection
      Throws:
      SQLException - if there is an SQL error