Package nz.co.abrahams.asithappens.core

Examples of nz.co.abrahams.asithappens.core.DBException


    public void closeConnection() throws DBException {
        try {
            connection.close();
        } catch (SQLException e) {
            logger.error("Error closing database connection for ResponseCollector DAO");
            throw new DBException("Error closing database connection for ResponseCollector DAO", e);
        }
    }
View Full Code Here


            statement.setLong(3, collector.getPollInterval());
            statement.execute();
            statement.close();
        } catch (SQLException e) {
            logger.error("Problem creating ResponseWindowsCollector in database for session " + sessionID);
            throw new DBException("Problem creating ResponseWindowsCollector in database for session " + sessionID, e);
        }
    }
View Full Code Here

    public void closeConnection() throws DBException {
        try {
            connection.close();
        } catch (SQLException e) {
            logger.error("Error closing database connection for ResponseWindowsCollector DAO");
            throw new DBException("Error closing database connection for ResponseWindowsCollector DAO", e);
        }
    }
View Full Code Here

            optionsDAO = DAOFactory.getFlowOptionsDAO(connection);
            optionsDAO.create(sessionID, collector.getOptions());
           
        } catch (SQLException e) {
            logger.error("Problem creating NetFlowCollector in database for session " + sessionID);
            throw new DBException("Problem creating NetFlowCollector in database for session " + sessionID, e);
        }
    }
View Full Code Here

    public void closeConnection() throws DBException {
        try {
            connection.close();
        } catch (SQLException e) {
            logger.error("Error closing database connection for NetFlowCollector DAO");
            throw new DBException("Error closing database connection for NetFlowCollector DAO", e);
        }
    }
View Full Code Here

            }
            displayDAO.closeConnection();
            return graphOptionsID;
        } catch (SQLException e) {
            logger.error("Problem creating graph options in database");
            throw new DBException("Problem creating graph options in database", e);
        }
    }
View Full Code Here

            }
            displayDAO.closeConnection();
           
        } catch (SQLException e) {
            logger.error("Problem Updating graph options in database");
            throw new DBException("Problem Updating graph options in database", e);
        }
       
    }
View Full Code Here

            logger.debug(options.toString());
            return options;
        } catch (SQLException e) {
            e.printStackTrace();
            logger.error("Problem loading graph options with id: " + graphOptionsID);
            throw new DBException("Problem loading graph options with id: " + graphOptionsID);
        }
    }
View Full Code Here

    public void closeConnection() throws DBException {
        try {
            connection.close();
        } catch (SQLException e) {
            logger.error("Error closing database connection for DataGraph DAO");
            throw new DBException("Error closing database connection for DataGraph DAO", e);
        }
    }
View Full Code Here

            statement.executeUpdate();
            statement.close();
           
        } catch (SQLException e) {
            logger.error("Problem creating MemoryHRCollector in database for session " + sessionID);
            throw new DBException("Problem creating MemoryHRCollector in database for session " + sessionID, e);
        }
    }
View Full Code Here

TOP

Related Classes of nz.co.abrahams.asithappens.core.DBException

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.