Examples of loadObjectResults()


Examples of com.dotmarketing.common.db.DotConnect.loadObjectResults()

                results = dc.loadObjectResults(con);
            } else if(DbConnectionFactory.isH2()) {
                dc.setSQL("call load_records_to_index(?,?)");
                dc.addParam(serverId);
                dc.addParam(50);
                results = dc.loadObjectResults();
            } else {
                dc.setSQL(REINDEXENTRIESSELECTSQL);
                dc.addParam(serverId);
                dc.addParam(50);
                results = dc.loadObjectResults(con);
View Full Code Here

Examples of com.dotmarketing.common.db.DotConnect.loadObjectResults()

                results = dc.loadObjectResults();
            } else {
                dc.setSQL(REINDEXENTRIESSELECTSQL);
                dc.addParam(serverId);
                dc.addParam(50);
                results = dc.loadObjectResults(con);
            }

            for (Map<String, Object> r : results) {
                IndexJournal<T> ij = new IndexJournal<T>();
                ij.setId(((Number)r.get("id")).longValue());
View Full Code Here

Examples of com.dotmarketing.common.db.DotConnect.loadObjectResults()

              dc.addParam(limit);
                dc.addParam(offset);
            }
            offset=offset+limit;

            List<Map<String,Object>> results=dc.loadObjectResults();
            notDone=results.size()>0;

            for(Map<String,Object> rr : results) {
                String identifier=(String)rr.get("identifier");
                String inode=(String)rr.get("inode");
View Full Code Here

Examples of com.dotmarketing.common.db.DotConnect.loadObjectResults()

            }else{
                dc.addParam(limit);
                dc.addParam(offset);
            }
            offset=offset+limit;
            List<Map<String,Object>> results=dc.loadObjectResults();
            notDone=results.size()>0;
            for(Map<String,Object> rr : results) {
                String identifier=(String)rr.get("identifier");
                String inode=(String)rr.get("inode");
                long langId=Long.parseLong(rr.get("language_id").toString());
View Full Code Here

Examples of com.dotmarketing.common.db.DotConnect.loadObjectResults()

      DotConnect dc = new DotConnect();
    dc.setSQL("select * from notification where id = ?");
    dc.addParam(notificationId);

    Notification n = null;
    List<Map<String, Object>> results = dc.loadObjectResults();

    if(results!=null && !results.isEmpty()) {
      Map<String, Object> row = results.get(0);
      n = new Notification();
      n.setId((String)row.get("id"));
View Full Code Here

Examples of com.dotmarketing.common.db.DotConnect.loadObjectResults()

  public void deleteNotification(String notificationId) throws DotDataException {
      DotConnect dc = new DotConnect();
    dc.setSQL("delete from notification where id = ?");
    dc.addParam(notificationId);
    dc.loadObjectResults();
  }

  public void deleteNotifications(String userId) throws DotDataException {
      DotConnect dc = new DotConnect();
    String userWhere = UtilMethods.isSet(userId)?" where user_id = ? ":"";
View Full Code Here

Examples of com.dotmarketing.common.db.DotConnect.loadObjectResults()

    if(UtilMethods.isSet(userId)) {
      dc.addParam(userId);
    }

    dc.loadObjectResults();
  }

  public List<Notification> getNotifications(long offset, long limit) throws DotDataException {
    return getNotifications(null, offset, limit);
  }
View Full Code Here

Examples of com.dotmarketing.common.db.DotConnect.loadObjectResults()

    if(UtilMethods.isSet(userId)) {
      dc.addParam(userId);
    }

    List<Map<String, Object>> results = dc.loadObjectResults();
    Long count = Long.parseLong(results.get(0).get("count").toString());
    return count;
  }

  public List<Notification> getNotifications(String userId, long offset, long limit) throws DotDataException {
View Full Code Here

Examples of com.dotmarketing.common.db.DotConnect.loadObjectResults()

    if(UtilMethods.isSet(userId)) {
      dc.addParam(userId);
    }

    List<Map<String, Object>> results = dc.loadObjectResults();
    List<Notification> notifications = new ArrayList<Notification>();

    for (Map<String, Object> row : results) {
      Notification n = new Notification();
      n.setId((String)row.get("id"));
View Full Code Here

Examples of com.dotmarketing.common.db.DotConnect.loadObjectResults()

    if(UtilMethods.isSet(userId)) {
      dc.addParam(userId);
    }

    List<Map<String, Object>> results = dc.loadObjectResults();
    return ((Number)results.get(0).get("count")).longValue();
  }

  public void markNotificationsAsRead(String userId) throws DotDataException {
      DotConnect dc = new DotConnect();
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.