Subversion Repositories SmartDukaan

Rev

Rev 22646 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 22646 Rev 22647
Line 455... Line 455...
455
		if(dbo != null && dbo.get("items")!=null){
455
		if(dbo != null && dbo.get("items")!=null){
456
			return dbo.get("items").toString();
456
			return dbo.get("items").toString();
457
		}
457
		}
458
		return null;
458
		return null;
459
	}
459
	}
-
 
460
	
-
 
461
	
-
 
462
    public List<Long> getEntityIdsAfter(long time){
-
 
463
    	List <Long> list = new ArrayList<Long>();
-
 
464
    	Iterator<DBObject> it = StorageManager.views.entityMetadata.find(new BasicDBObject("$gt", new BasicDBObject("createdOn",time))).iterator();
-
 
465
    	while (it.hasNext()) {
-
 
466
    		EntityState emd = (EntityState)toObject(it.next(),EntityState.class);
-
 
467
    		list.add(emd.getID());
-
 
468
    	}
-
 
469
    	return list;
-
 
470
    	
-
 
471
    }
460
    
472
    
461
}
473
}