+
+ public Connection getPooledCon() throws StorageObjectException {
+ try{
+ Class.forName("com.codestudio.sql.PoolMan").newInstance();
+ } catch (Exception e){
+ e.printStackTrace();
+ throw new StorageObjectException("Could not find the PoolMan Driver"+e.toString());
+ }
+ Connection con = null;
+ try{
+ con = SQLManager.getInstance().requestConnection();
+ } catch(SQLException e){
+ e.printStackTrace();
+ throw new StorageObjectException("No connection to the database");
+ }
+ return con;
+ }