@Transactional(isolation = REPEATABLE_READ) protected void setPool(PinTask task, String pool) throws CacheException { Pin pin = loadPinBelongingTo(task); pin.setExpirationTime(getExpirationTimeForSettingFlag()); pin.setPool(pool); task.setPin(_dao.storePin(pin)); }
@Transactional(isolation = REPEATABLE_READ) protected void setToPinned(PinTask task) throws CacheException { Pin pin = loadPinBelongingTo(task); pin.setExpirationTime(task.getExpirationTime()); pin.setState(PINNED); task.setPin(_dao.storePin(pin)); }
@Transactional(isolation = REPEATABLE_READ) protected void refreshTimeout(PinTask task, Date date) throws CacheException { Pin pin = loadPinBelongingTo(task); pin.setExpirationTime(date); task.setPin(_dao.storePin(pin)); }