use of org.bedework.calfacade.base.BwLastMod in project bw-calendar-engine by Bedework.
the class CoreCalendarsDAO method touchCollection.
protected void touchCollection(final BwCalendar col, final Timestamp ts) throws CalFacadeException {
// CALWRAPPER - if we're not cloning can we avoid this?
// val = (BwCalendar)getSess().merge(val);
// val = (BwCalendar)getSess().merge(val);
final BwLastMod lm = col.getLastmod();
lm.updateLastmod(ts);
final HibSession sess = getSess();
sess.createQuery(touchCalendarQuery);
sess.setString("timestamp", lm.getTimestamp());
sess.setInt("sequence", lm.getSequence());
sess.setString("path", col.getPath());
sess.executeUpdate();
}
Aggregations