java.lang.Object
me.hsgamer.hscore.database.client.sql.h2.H2Client
All Implemented Interfaces:
Client<org.h2.jdbcx.JdbcDataSource>, SqlClient<org.h2.jdbcx.JdbcDataSource>

public class H2Client extends Object implements SqlClient<org.h2.jdbcx.JdbcDataSource>
  • Constructor Details

    • H2Client

      public H2Client(Setting setting)
      Create a new H2 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<org.h2.jdbcx.JdbcDataSource>
      Returns:
      the setting
    • getOriginal

      public org.h2.jdbcx.JdbcDataSource getOriginal()
      Description copied from interface: Client
      Get the original
      Specified by:
      getOriginal in interface Client<org.h2.jdbcx.JdbcDataSource>
      Returns:
      the original
    • getConnection

      public Connection getConnection() throws SQLException
      Description copied from interface: SqlClient
      Get the connection
      Specified by:
      getConnection in interface SqlClient<org.h2.jdbcx.JdbcDataSource>
      Returns:
      the connection
      Throws:
      SQLException - if there is an SQL error