Package nz.co.abrahams.asithappens.storage

Examples of nz.co.abrahams.asithappens.storage.DataSetsDAO.closeConnection()


                // Store graph context as part of a layout
                if ( layoutName != null ) {
                    //sessionID = context.getData().storeTemplate();
                    dataSetsDAO = DAOFactory.getDataSetsDAO();
                    sessionID = dataSetsDAO.createTemplate(context.getData());
                    dataSetsDAO.closeConnection();
                // All stored collector sessions get their graph context stored
                } else
                    sessionID = context.getData().getSessionID();
                    //collectorID = context.getData().getCollector().store();
            } else {
View Full Code Here


            fromDateField.setText(dateFormat.format(startCalendar.getTime()));
            fromTimeField.setText(timeFormat.format(startCalendar.getTime()));
            toDateField.setText(dateFormat.format(finishCalendar.getTime()));
            if ( ! toTimeField.isFocusOwner() )
                toTimeField.setText(timeFormat.format(finishCalendar.getTime()));
            dataSetsDAO.closeConnection();
        } catch (DBException e) {
            ErrorHandler.modalError(this, "Cannot retrieve data from database", "Update of session title in database unsuccessful", e);
        }
    }
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.