Package com.salas.bb.persistence

Examples of com.salas.bb.persistence.PersistenceException


                    insertFeedHierarchy(feed);
                    commit();
                } catch (SQLException e)
                {
                    rollback();
                    throw new PersistenceException(Strings.error("db.failed.to.insert.feeds.hierarchy"), e);
                }
            }
        }
    }
View Full Code Here


            feedsManager.removeFeed(feed);
            commit();
        } catch (SQLException e)
        {
            rollback();
            throw new PersistenceException(Strings.error("db.failed.to.remove.feed"), e);
        }
    }
View Full Code Here

            feedsManager.moveFeed(feed, source, dest);
            commit();
        } catch (SQLException e)
        {
            rollback();
            throw new PersistenceException(Strings.error("db.failed.to.move.feed"), e);
        }
    }
View Full Code Here

            feedsManager.updateFeed(feed, property);
            commit();
        } catch (SQLException e)
        {
            rollback();
            throw new PersistenceException(Strings.error("db.failed.to.update.feed"), e);
        }
    }
View Full Code Here

                    feedsManager.updateFeedsPositions(guide);
                    commit();
                } catch (SQLException e)
                {
                    rollback();
                    throw new PersistenceException(Strings.error("db.failed.to.update.feeds.pos"), e);
                }
            }
        }
    }
View Full Code Here

                    feedsManager.updateFeedPosition(guide, feed);
                    commit();
                } catch (SQLException e)
                {
                    rollback();
                    throw new PersistenceException(Strings.error("db.failed.to.update.feed.pos"), e);
                }
            }
        }
    }
View Full Code Here

            if (article instanceof LazyArticle) ((LazyArticle)article).setProvider(articleTextProvider);
        } catch (SQLException e)
        {
            rollback();
            throw new PersistenceException(Strings.error("db.failed.to.insert.article"), e);
        }
    }
View Full Code Here

            articlesManager.removeArticle(article);
            commit();
        } catch (SQLException e)
        {
            rollback();
            throw new PersistenceException(Strings.error("db.failed.to.remove.article"), e);
        }
    }
View Full Code Here

                {
                    MemoryUsage mu = ManagementFactory.getMemoryMXBean().getHeapMemoryUsage();
                    System.out.println("Init=" + mu.getInit() + ", usage=" + mu.getUsed() + ", " +
                        "commited=" + mu.getCommitted() + ", max=" + mu.getMax());
                    rollback();
                    throw new PersistenceException(Strings.error("db.failed.to.update.article"), e);
                }
            }
        }
    }
View Full Code Here

                {
                    articlesManager.updateArticleProperties(article);
                    commit();
                } catch (SQLException e)
                {
                    throw new PersistenceException("Failed to update article properties", e);
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of com.salas.bb.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.