Code example for PreparedStatement

Methods: close

0
 
 
    public static void close(PreparedStatement preparedStatement) {
        if (preparedStatement != null) {
            try { 
                preparedStatement.close();
            } 
            catch (SQLException e) {
                log.error("Close PreparedStatement failed", e);
            } 
 
        } 
    } 
 
 
    public static void close(ResultSet rs) {
        if (rs != null) {
            try { 
                rs.close();
            } 
            catch (SQLException ex) {