Package nz.co.abrahams.asithappens.core

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


            success = statement.executeUpdate() == 1;
            statement.close();
            return success;
        } catch (SQLException e) {
            logger.error("Problem adding heading " + name + " for session " + sessionID);
            throw new DBException("Problem adding heading " + name + " for session " + sessionID, e);
        }
    }
View Full Code Here


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

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

            results = statement.executeQuery();
            */
           
        } catch (SQLException e) {
            logger.error("Problem updating data graph in database");
            throw new DBException("Problem updating data graph in database", e);
        }
       
    }
View Full Code Here

            graph = new DataGraph(context, graphRectangle);
            return graph;
        } catch (SQLException e) {
            e.printStackTrace();
            logger.error("Problem loading graph with id: " + graphID);
            throw new DBException("Problem loading graph with id: " + graphID);
        }
    }
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

            Layout.addGraphToCurrent(this);

            setVisible(true);
        } catch (DAOCreationException e) {
            throw new DBException("Error: DAOCreationException", e);
        }
        //summarizeRescaleRepaint();
    }
View Full Code Here

            results.close();
            statement.close();
            return index;
        } catch (SQLException e) {
            logger.error("Cannot add label for session ID " + sessionID + " to database");
            throw new DBException("Cannot add label for session ID " + sessionID + " to database", e);
        }
    }
View Full Code Here

            success = statement.executeUpdate() == 1;
            statement.close();
            return success;
        } catch (SQLException e) {
            logger.error("Cannot delete label for session ID " + sessionID + " from database");
            throw new DBException("Cannot delete label for session ID " + sessionID + " 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.