Obtaining DB Connection
If we look into this class . It Contains many methods.
1. getConnection()
2. getConnection(String location)
1.cleanUp(Connection connection)
2.cleanUp(Connection connection, Statement statement)
By Using these methods we can get Connection and we can cleanup connection.
Connection Con = DataAccess.getConnection();
---------
---------
DataAccess.cleanUp(con);
Comments
Post a Comment