@Test public void testExecuteAtTime1005() { CurrentDateInMinutesRequest request = new CurrentDateInMinutesRequest(TIME1005); sut.execute(request); getEntityManager().flush(); Query q = getEntityManager().createQuery("FROM Feed"); List<Feed> results = q.getResultList(); assertFalse(results.get(0).getLastUpdated() == TIME1005); assertFalse(results.get(1).getLastUpdated() == TIME1005); assertFalse(results.get(2).getLastUpdated() == TIME1005); assertFalse(results.get(3).getLastUpdated() == TIME1005); assertFalse(results.get(4).getLastUpdated() == TIME1005); }
@Override public Boolean execute(final CurrentDateInMinutesRequest inRequest) { Query q = getEntityManager().createQuery( "UPDATE Feed SET updated = :currentTimeInMinutes WHERE id in " + "(SELECT id FROM Feed WHERE ((updateFrequency " + "is not null and updated + updateFrequency " + "< :currentTimeInMinutes) or (updateFrequency " + "is null and updated + streamPlugin.updateFrequency" + "< :currentTimeInMinutes)))") .setParameter("currentTimeInMinutes", inRequest.getCurrentDateInMinutes()); q.executeUpdate(); getEntityManager().flush(); return true; }
SetRefreshableFeedsAsPending extends
		BaseArgDomainMapper<CurrentDateInMinutesRequest, Boolean> { @Override public Boolean execute(final CurrentDateInMinutesRequest inRequest) { Query q = getEntityManager().createQuery( "UPDATE Feed SET updated = :currentTimeInMinutes WHERE id in " + "(SELECT id FROM Feed WHERE ((updateFrequency " + "is not null and updated + updateFrequency " + "< :currentTimeInMinutes) or (updateFrequency " + "is null and updated + streamPlugin.updateFrequency" + "< :currentTimeInMinutes)))") .setParameter("currentTimeInMinutes", inRequest.getCurrentDateInMinutes()); q.executeUpdate(); getEntityManager().flush(); return true; } }
SetRefreshableFeedsAsPending extends
		BaseArgDomainMapper<CurrentDateInMinutesRequest, Boolean> { @Override public Boolean execute(final CurrentDateInMinutesRequest inRequest) { Query q = getEntityManager().createQuery( "UPDATE Feed SET updated = :currentTimeInMinutes WHERE id in " + "(SELECT id FROM Feed WHERE ((updateFrequency " + "is not null and updated + updateFrequency " + "< :currentTimeInMinutes) or (updateFrequency " + "is null and updated + streamPlugin.updateFrequency" + "< :currentTimeInMinutes)))") .setParameter("currentTimeInMinutes", inRequest.getCurrentDateInMinutes()); q.executeUpdate(); getEntityManager().flush(); return true; }  }
SetRefreshableFeedsAsPending extends
		BaseArgDomainMapper<CurrentDateInMinutesRequest, Boolean> { @Override public Boolean execute(final CurrentDateInMinutesRequest inRequest) { Query q = getEntityManager().createQuery( "UPDATE Feed SET updated = :currentTimeInMinutes WHERE id in " + "(SELECT id FROM Feed WHERE ((updateFrequency " + "is not null and updated + updateFrequency " + "< :currentTimeInMinutes) or (updateFrequency " + "is null and updated + streamPlugin.updateFrequency" + "< :currentTimeInMinutes)))") .setParameter("currentTimeInMinutes", inRequest.getCurrentDateInMinutes()); q.executeUpdate(); getEntityManager().flush(); return true; }  @Override Boolean execute(final CurrentDateInMinutesRequest inRequest); }
SetRefreshableFeedsAsPending extends
		BaseArgDomainMapper<CurrentDateInMinutesRequest, Boolean> { @Override public Boolean execute(final CurrentDateInMinutesRequest inRequest) { Query q = getEntityManager().createQuery( "UPDATE Feed SET updated = :currentTimeInMinutes WHERE id in " + "(SELECT id FROM Feed WHERE ((updateFrequency " + "is not null and updated + updateFrequency " + "< :currentTimeInMinutes) or (updateFrequency " + "is null and updated + streamPlugin.updateFrequency" + "< :currentTimeInMinutes)))") .setParameter("currentTimeInMinutes", inRequest.getCurrentDateInMinutes()); q.executeUpdate(); getEntityManager().flush(); return true; }  @Override Boolean execute(final CurrentDateInMinutesRequest inRequest);  }