Package ch.so.agi.gretl.util
Class DbConnector
java.lang.Object
ch.so.agi.gretl.util.DbConnector
Utility-Class to open connections
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectionReturns the connection to a specific database.
-
Constructor Details
-
DbConnector
public DbConnector()
-
-
Method Details
-
connect
Returns the connection to a specific database. The database is specified by the arguments connectionUrl, userName and password.- Parameters:
connectionUrl- database specific JDBC-Connection-URLuserName- database userpassword- password of given database user- Returns:
- the connection to the specific database
-