Code example for Connection

Methods: close, prepareCall

0
 
    public void runOracleStoreProcedure(String sql) throws Exception {
        Connection conn = getConnection();
        CallableStatement cs = null;
        try { 
            cs = conn.prepareCall(sql);
            cs.execute();
        } finally { 
            cs.close();
            conn.close();
        } 
    } 
 
    @Override 
    public void run(String input) throws Exception {
        super.run(input.replaceAll(DatabaseUtil.NEWLINE, " "));
    } 
 
}