Package com.art.anette.datamodel.dataobjects.simple

Examples of com.art.anette.datamodel.dataobjects.simple.Duration


     * Setzt den Endzeitpunkt der Duration d
     *
     * @param d
     */
    public void finalizeDuration(DurationData d) {
        Duration duration = ((ClientDBControl) taskModel.object.getDBControl()).createDuration(d);
        duration.getDBControl().synchronize();
    }
View Full Code Here


    /**
     * Die Daten der Zeitspanne werden ausgelesen und angezeigt.
     */
    @Override
    protected void update() {
        Duration duration = (Duration) dataObject;

        lblTask.setText(duration.getTask().getName());
        lblStart.setText(DateTimeUtils.formatDateTime(duration.getStart()));
        lblEnd.setText(DateTimeUtils.formatDateTime(duration.getEnd()));
        lblDuration.setText(DateTimeUtils.minutesToString(duration.getDuration()));
        taComment.setText(duration.getComment());
    }
View Full Code Here

            for (Task t : tasks) {
                String q = SQLFormatter.generateQuery("SELECT * FROM %s WHERE task = %d AND employee = %d AND %s", Duration.getTableName(), t.getId(), t.getEmployeeId(), getTimestampQuery(ts));
                ResultSet rs = dbConnector.query(q);
                while (rs.next()) {
                    if (stub) {
                        result.add(new Duration(sdbc, rs.getLong("id"), rs.getLong("employee"), rs.getLong("task")));
                    } else {
                        result.add(new Duration(sdbc, rs));
                    }
                }
                rs.close();
            }

View Full Code Here

TOP

Related Classes of com.art.anette.datamodel.dataobjects.simple.Duration

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.