Package com.basiscomponents.bc.util
Class SqlConnectionHelper
- java.lang.Object
-
- com.basiscomponents.bc.util.SqlConnectionHelper
-
public class SqlConnectionHelper extends Object
Helper Class to manage Connections to SQLServers in the SQLTableBC Do not use this class outside of basiscomponents, because a lot might change here in the future
-
-
Constructor Summary
Constructors Constructor Description SqlConnectionHelper(String url)
SqlConnectionHelper(String url, String user, String password, String driver)
SqlConnectionHelper(Connection con)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeConnection(Connection conn)
CloseableWrapper<Connection>
getConnection()
-
-
-
Constructor Detail
-
SqlConnectionHelper
public SqlConnectionHelper(String url)
-
SqlConnectionHelper
public SqlConnectionHelper(String url, String user, String password, String driver) throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
SqlConnectionHelper
public SqlConnectionHelper(Connection con) throws SQLException
- Throws:
SQLException
-
-
Method Detail
-
getConnection
public CloseableWrapper<Connection> getConnection() throws SQLException
- Throws:
SQLException
-
closeConnection
public void closeConnection(Connection conn)
-
-