Examples of sendDelete()


Examples of galena.addins.modules.database.DB.DBConnection.sendDelete()

        Date lastDay = (Date)lastDayEntry.get(0).get("day");
        Integer id = (Integer)lastDayEntry.get(0).get("id");
        Calendar cal = Calendar.getInstance();
        cal.setTime(lastDay);
        // We recalculate the last day ...
        db.sendDelete(args.getUser(),"goim_stats_game","day = ?",id);
        db.sendDelete(args.getUser(),"goim_stats_presencestatus","day = ?",id);
        db.sendDelete(args.getUser(),"goim_stats_day","id = ?",id);
        // To recalculate the last day we also need to recalculate
        // the day before so we get presences which started there and
        // lasted until this day.
View Full Code Here

Examples of galena.addins.modules.database.DB.DBConnection.sendDelete()

        Integer id = (Integer)lastDayEntry.get(0).get("id");
        Calendar cal = Calendar.getInstance();
        cal.setTime(lastDay);
        // We recalculate the last day ...
        db.sendDelete(args.getUser(),"goim_stats_game","day = ?",id);
        db.sendDelete(args.getUser(),"goim_stats_presencestatus","day = ?",id);
        db.sendDelete(args.getUser(),"goim_stats_day","id = ?",id);
        // To recalculate the last day we also need to recalculate
        // the day before so we get presences which started there and
        // lasted until this day.
        cal.add(Calendar.DAY_OF_MONTH,-1);
View Full Code Here

Examples of galena.addins.modules.database.DB.DBConnection.sendDelete()

        Calendar cal = Calendar.getInstance();
        cal.setTime(lastDay);
        // We recalculate the last day ...
        db.sendDelete(args.getUser(),"goim_stats_game","day = ?",id);
        db.sendDelete(args.getUser(),"goim_stats_presencestatus","day = ?",id);
        db.sendDelete(args.getUser(),"goim_stats_day","id = ?",id);
        // To recalculate the last day we also need to recalculate
        // the day before so we get presences which started there and
        // lasted until this day.
        cal.add(Calendar.DAY_OF_MONTH,-1);
        listOfPresenceLog = db.getListOfMaps("SELECT * FROM goim_presence_log WHERE jid = ? AND start > ? ORDER BY start",jid,cal.getTime());
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.