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

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


                }
            } finally {
                Database.dispose(ps);
            }
        } catch (SQLException e) {
            throw new PersistenceException("Failed to login the user" + handle + " " + password, e);
        } finally {
            Database.dispose(conn);
        }
    }
View Full Code Here


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

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

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

                return rs.getInt(1);
            } finally {
                Database.dispose(ps);
            }
        } catch (SQLException e) {
            throw new PersistenceException("Failed to search user.", e);
        } finally {
            Database.dispose(conn);
        }
    }
View Full Code Here

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

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

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

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

                ps.executeUpdate();
            } finally {
                Database.dispose(ps);
            }
        } catch (SQLException e) {
            throw new PersistenceException("Failed to create code.", 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.