Package org.mapache.business

Examples of org.mapache.business.MapacheException


            _deleteTopicStmt.execute();
            _oConn.commit();
            _oConn.setAutoCommit(true);
            _deleteTopicStmt.close();
        } catch (SQLException e) {
            throw new MapacheException("Error occurred when deleting a topic", e);
        } catch (DAOException e) {
             throw new MapacheException("Error occurred when deleting a topic", e);
        } finally{
            MySQLDAOFactory.freeConnection(_oConn);
        }
    }
View Full Code Here


            MySQLDAOFactory.getInstance().getCategoryDAO().saveCategoriesForTopic(topic.getCategories(),id);
            _oConn.commit();
            _oConn.setAutoCommit(true);
            _createTopicStmt.close();
        } catch (SQLException e) {
            throw new MapacheException("Error occurred when creating topic", e);
        } catch (DAOException e) {
             throw new MapacheException("Error occurred when creating topic", e);
        } finally{
            MySQLDAOFactory.freeConnection(_oConn);
        }
    }
View Full Code Here

            if(resultSet.next())
                topic = fetchRecordInTopicObject(resultSet);
            _loadTopicByTopicIDStmt.close();
        } catch (SQLException e) {
            topic=null;
            throw new MapacheException("Error occurred when loading topic", e);
        } catch (DAOException e) {
            topic=null;
            throw new MapacheException("Error occurred when loading topic", e);
        } finally{
            MySQLDAOFactory.freeConnection(_oConn);
        }
        return topic;
    }
View Full Code Here

            ResultSet resultSet = _loadAllTopicsStmt.executeQuery();
            loadResultInList(topics,resultSet);
            _loadAllTopicsStmt.close();
        } catch (SQLException e) {
            topics = null;
            throw new MapacheException("Error occurred when loading topics from database", e);
        } catch (DAOException e) {
            topics = null;
            throw new MapacheException("Error occurred when loading topics from database", e);
        } finally{
            MySQLDAOFactory.freeConnection(_oConn);
        }
        return topics;
    }
View Full Code Here

            ResultSet resultSet = _loadTopicsForBlogStmt.executeQuery();
            loadResultInList(topics,resultSet);
            _loadTopicsForBlogStmt.close();
        } catch (SQLException e) {
            topics = null;
            throw new MapacheException("Error occurred when loading topics from database", e);
        } catch (DAOException e) {
            topics = null;
            throw new MapacheException("Error occurred when loading topics from database", e);
        } finally{
            MySQLDAOFactory.freeConnection(_oConn);
        }
        return topics;
    }
View Full Code Here

            ResultSet resultSet = _loadTopicsForBlogStmt.executeQuery();
            loadResultInList(topics,resultSet);
            _loadTopicsForBlogStmt.close();
        } catch (SQLException e) {
            topics = null;
            throw new MapacheException("Error occurred when loading topics from database", e);
        } catch (DAOException e) {
            topics = null;
            throw new MapacheException("Error occurred when loading topics from database", e);
        } finally{
            MySQLDAOFactory.freeConnection(_oConn);
        }
        return topics;
    }
View Full Code Here

             if(resultSet.next())
                 topic = fetchRecordInTopicObject(resultSet);
             _loadTopicByTopicIDStmt.close();
         } catch (SQLException e) {
             topic=null;
             throw new MapacheException("Error occurred when loading topic", e);
         } catch (DAOException e) {
             topic=null;
             throw new MapacheException("Error occurred when loading topic", e);
         } finally{
             MySQLDAOFactory.freeConnection(_oConn);
         }
         return topic;
     }
View Full Code Here

            ResultSet resultSet = _loadAllTopicsStmt.executeQuery();
            loadResultInList(topics,resultSet);
            _loadAllTopicsStmt.close();
        } catch (SQLException e) {
            topics = null;
            throw new MapacheException("Error occurred when loading topics from database", e);
        } catch (DAOException e) {
            topics = null;
            throw new MapacheException("Error occurred when loading topics from database", e);
        } finally{
            MySQLDAOFactory.freeConnection(_oConn);
        }
        return topics;
    }
View Full Code Here

TOP

Related Classes of org.mapache.business.MapacheException

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.