Package cn.edu.zju.acm.onlinejudge.persistence

Examples of cn.edu.zju.acm.onlinejudge.persistence.PersistenceException


                Database.dispose(ps);
            }
            conn.commit();
        } catch (SQLException e) {
            Database.rollback(conn);
            throw new PersistenceException("Failed to delete role.", e);
        } finally {
            Database.dispose(conn);
        }

    }
View Full Code Here


            } finally {
                Database.dispose(ps);
            }
            return role;
        } catch (SQLException e) {
            throw new PersistenceException("Failed to get the role with id " + id, e);
        } finally {
            Database.dispose(conn);
        }
    }
View Full Code Here

                return roles;
            } finally {
                Database.dispose(ps);
            }
        } catch (SQLException e) {
            throw new PersistenceException("Failed to get all roles", e);
        } finally {
            Database.dispose(conn);
        }
    }
View Full Code Here

                Database.dispose(ps);
            }
            return roles;

        } catch (SQLException e) {
            throw new PersistenceException("Failed to get all roles", e);
        } finally {
            Database.dispose(conn);
        }
    }
View Full Code Here

                ps.executeUpdate();
            } finally {
                Database.dispose(ps);
            }
        } catch (SQLException e) {
            throw new PersistenceException("Failed to add user role", e);
        } finally {
            Database.dispose(conn);
        }
    }
View Full Code Here

                ps.executeUpdate();
            } finally {
                Database.dispose(ps);
            }
        } catch (SQLException e) {
            throw new PersistenceException("Failed to delete user role", e);
        } finally {
            Database.dispose(conn);
        }
    }
View Full Code Here

            }

            return security;

        } catch (SQLException e) {
            throw new PersistenceException("Failed to get user security with id " + userProfileId, e);
        } finally {
            Database.dispose(conn);
        }
    }
View Full Code Here

            }

            conn.commit();
        } catch (SQLException e) {
            Database.rollback(conn);
            throw new PersistenceException("Failed to manage role users.", e);
        } finally {
            Database.dispose(conn);
        }
        return result;
    }
View Full Code Here

                return configurations;
            } finally {
                Database.dispose(ps);
            }
        } catch (SQLException e) {
            throw new PersistenceException("Error.", e);
        } finally {
            Database.dispose(conn);
        }
    }
View Full Code Here

                }
            }
            conn.commit();
        } catch (SQLException e) {
            Database.rollback(conn);
            throw new PersistenceException("Error.", e);
        } finally {
            Database.dispose(conn);
        }
    }
View Full Code Here

TOP

Related Classes of cn.edu.zju.acm.onlinejudge.persistence.PersistenceException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.