Class H2Client
java.lang.Object
io.github.projectunified.craftdatabase.client.sql.h2.H2Client
- All Implemented Interfaces:
Client<org.h2.jdbcx.JdbcDataSource>,SqlClient<org.h2.jdbcx.JdbcDataSource>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the connectionorg.h2.jdbcx.JdbcDataSourceGet the originalGet the settingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.projectunified.craftdatabase.client.sql.SqlClient
createBatchBuilder, createBatchBuilderUnsafe, createStatementBuilder, createStatementBuilderUnsafe
-
Constructor Details
-
H2Client
Create a new H2 client- Parameters:
setting- the setting
-
-
Method Details
-
getSetting
Description copied from interface:ClientGet the setting- Specified by:
getSettingin interfaceClient<org.h2.jdbcx.JdbcDataSource>- Returns:
- the setting
-
getOriginal
public org.h2.jdbcx.JdbcDataSource getOriginal()Description copied from interface:ClientGet the original- Specified by:
getOriginalin interfaceClient<org.h2.jdbcx.JdbcDataSource>- Returns:
- the original
-
getConnection
Description copied from interface:SqlClientGet the connection- Specified by:
getConnectionin interfaceSqlClient<org.h2.jdbcx.JdbcDataSource>- Returns:
- the connection
- Throws:
SQLException- if there is an SQL error
-