Package nz.co.abrahams.asithappens.core

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


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


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

            criteria.maxBytes = result.getInt("maxBytes");
            result.close();
            statement.close();
            return criteria;
        } catch (SQLException e) {
            throw new DBException("Problem creating NetFlow match criteria for sessionID " + sessionID, e);
        }
    }
View Full Code Here

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

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

                    result.getInt("tcpUdpDestinationPort") == 1);
            result.close();
            statement.close();
            return options;
        } catch (SQLException e) {
            throw new DBException("Problem creating FlowOptions for sessionID " + sessionID, e);
        }
    }
View Full Code Here

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

            statement.executeUpdate();
            statement.close();
           
        } catch (SQLException e) {
            logger.error("Problem creating NBARCollector in database for session " + sessionID);
            throw new DBException("Problem creating NBARCollector 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 NBARCollector DAO");
            throw new DBException("Error closing database connection for NBARCollector DAO", e);
        }
    }
View Full Code Here

            dataSets.setLabels(DAOFactory.getDataLabelsDAO().retrieve(sessionID));
            taskProgress = taskLength;
            logger.debug("Finished loading data from database");
        } catch (DBException e) {
            logger.error("Error loading data from database");
            throw new DBException("Error loading data from database", 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.