Package nz.co.abrahams.asithappens.core

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


            */
           
            statement.close();
        } catch (SQLException e) {
            logger.error("Problem adding values for " + sessionID);
            throw new DBException("Problem adding values for " + sessionID, e);
        }
       
    }
View Full Code Here


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

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

            results.close();
            statement.close();
            return ports;
        } catch (SQLException e) {
            logger.error("Cannot retrieve port list for bandwidth session ID " + sessionID + " from database");
            throw new DBException("Cannot retrieve port list for bandwidth session ID " + sessionID + " from database", e);
        }
    }
View Full Code Here

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

                } else
                    logger.info("  (not a collector)");
            }
        } catch (SQLException e) {
            logger.error("Problem creating layout " + layout + " in database");
            throw new DBException("Problem creating layout " + layout + " in database", e);
        }
       
    }
View Full Code Here

                graphIDs[i] = graphVector.elementAt(i).intValue();
            }
           
            return graphIDs;
        } catch (SQLException e) {
            throw new DBException("Problem loading graphs for layout " + layout, e);
        }
    }
View Full Code Here

            results.close();
            statement.close();
            return layouts;
        } catch (SQLException e) {
            logger.error("Cannot retrieve layout list from database");
            throw new DBException("Cannot retrieve layout list from database", e);
        }
    }
View Full Code Here

            statement.executeUpdate();
            statement.close();
            return true;
        } catch (SQLException e) {
            logger.error("Problem deleting layout " + name);
            throw new DBException("Cannot delete layout " + name + " from database", e);
        }
    }
View Full Code Here

    public void closeConnection() throws DBException {
        try {
            connection.close();
        } catch (SQLException e) {
            logger.error("Error closing database connection for DataLabelsDAO");
            throw new DBException("Error closing database connection for DataLabels DAO", 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.