Class JavaSqlClient
java.lang.Object
io.github.projectunified.craftdatabase.client.sql.java.JavaSqlClient
- All Implemented Interfaces:
Client<Properties>,SqlClient<Properties>
The SQL client with the Java's Driver Manager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the connectionGet 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
-
JavaSqlClient
Create new SQL client- Parameters:
setting- the setting
-
-
Method Details
-
getSetting
Description copied from interface:ClientGet the setting- Specified by:
getSettingin interfaceClient<Properties>- Returns:
- the setting
-
getConnection
Description copied from interface:SqlClientGet the connection- Specified by:
getConnectionin interfaceSqlClient<Properties>- Returns:
- the connection
- Throws:
SQLException- if there is an SQL error
-
getOriginal
Description copied from interface:ClientGet the original- Specified by:
getOriginalin interfaceClient<Properties>- Returns:
- the original
-