Search in sources :

Example 1 with BwLastMod

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();
}
Also used : HibSession(org.bedework.calcorei.HibSession) BwLastMod(org.bedework.calfacade.base.BwLastMod)

Aggregations

HibSession (org.bedework.calcorei.HibSession)1 BwLastMod (org.bedework.calfacade.base.BwLastMod)1