Package de.xima.fc.db
Class DatabaseUtils
- java.lang.Object
-
- de.xima.fc.db.DatabaseUtils
-
- Direct Known Subclasses:
DatabaseUtils
public class DatabaseUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description DatabaseUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Boolean
checkTableExists(String tableName)
Methode zum Überprüfen, ob eine Tabelle existiert oder nichtstatic Boolean
checkTableExists(Connection connection, String tableName)
static com.zaxxer.hikari.HikariDataSource
createDefaultDatasource(String url, String username, String password, String driverClass)
static void
testConnection(String url, String username, String password, String driverClass)
-
-
-
Method Detail
-
checkTableExists
public static Boolean checkTableExists(Connection connection, String tableName)
-
checkTableExists
public static Boolean checkTableExists(String tableName)
Methode zum Überprüfen, ob eine Tabelle existiert oder nicht
-
createDefaultDatasource
public static com.zaxxer.hikari.HikariDataSource createDefaultDatasource(String url, String username, String password, String driverClass) throws ClassNotFoundException, SQLException
- Throws:
ClassNotFoundException
SQLException
-
-