Class H2Client
java.lang.Object
me.hsgamer.hscore.database.client.sql.h2.H2Client
- All Implemented Interfaces:
Client<org.h2.jdbcx.JdbcDataSource>
,SqlClient<org.h2.jdbcx.JdbcDataSource>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the connectionorg.h2.jdbcx.JdbcDataSource
Get the originalGet the settingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface me.hsgamer.hscore.database.client.sql.SqlClient
createBatchBuilder, createBatchBuilderSafe, createStatementBuilder, createStatementBuilderSafe
-
Constructor Details
-
H2Client
Create a new H2 client- Parameters:
setting
- the setting
-
-
Method Details
-
getSetting
Description copied from interface:Client
Get the setting- Specified by:
getSetting
in interfaceClient<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 interfaceClient<org.h2.jdbcx.JdbcDataSource>
- Returns:
- the original
-
getConnection
Description copied from interface:SqlClient
Get the connection- Specified by:
getConnection
in interfaceSqlClient<org.h2.jdbcx.JdbcDataSource>
- Returns:
- the connection
- Throws:
SQLException
- if there is an SQL error
-