class HibernateSessionDAO extends HibernatePersistentObjectDAO<Session> implements SessionDAO {

	@Override
	public void deleteCurrentNodeSessions() {
		try {
			bulkUpdate(" set deleted=1 where node=?1 and deleted=0",
					new Object[] { SystemInfo.get().getInstallationId() });
		} catch (PersistenceException e) {
			log.warn(e.getMessage(), e);
		}

		try {
			bulkUpdate(" set status=" + Session.STATUS_EXPIRED + " where node=?1 and status=?2",
					new Object[] { SystemInfo.get().getInstallationId(), Session.STATUS_OPEN });
		} catch (PersistenceException e) {
			log.error(e.getMessage(), e);
		}
	}

	protected  HibernateSessionDAO();

}