org.yawlfoundation.yawl.resourcing.calendar
Class CalendarLogger

java.lang.Object
  extended by org.yawlfoundation.yawl.resourcing.calendar.CalendarLogger

public class CalendarLogger
extends Object

Manages the Calendar Log - an archive of calendar entry and change activity. NOTE: The caller is responsible for committing all db transactions performed by any methods of this class.

Author:
Michael Adams
Created/Last Date:
18/10/2010

Constructor Summary
CalendarLogger()
           
 
Method Summary
 Set<Long> getEntryIDsForActivity(String caseID, String activityName)
           
 Set<Long> getEntryIDsForCase(String caseID)
           
 List getLogEntriesForActivity(String caseID, String activityName)
           
 List getLogEntriesForCalendarKey(long calEntryID)
           
 List getLogEntriesForCase(String caseID)
           
 List getLogEntriesForReservation(String caseID, String activityName, String resourceRec)
           
 CalendarLogEntry getLogEntry(long entryID)
           
 CalendarLogEntry getLogEntryForCalendarKey(long calEntryID)
           
 String getResourceRecord(long calendarKey)
           
 void log(CalendarLogEntry logEntry, boolean commit)
           
 void log(CalendarLogEntry logEntry, CalendarEntry calEntry, boolean commit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarLogger

public CalendarLogger()
Method Detail

log

public void log(CalendarLogEntry logEntry,
                CalendarEntry calEntry,
                boolean commit)

log

public void log(CalendarLogEntry logEntry,
                boolean commit)

getLogEntry

public CalendarLogEntry getLogEntry(long entryID)

getLogEntryForCalendarKey

public CalendarLogEntry getLogEntryForCalendarKey(long calEntryID)

getLogEntriesForCalendarKey

public List getLogEntriesForCalendarKey(long calEntryID)

getLogEntriesForReservation

public List getLogEntriesForReservation(String caseID,
                                        String activityName,
                                        String resourceRec)

getLogEntriesForActivity

public List getLogEntriesForActivity(String caseID,
                                     String activityName)

getLogEntriesForCase

public List getLogEntriesForCase(String caseID)

getEntryIDsForActivity

public Set<Long> getEntryIDsForActivity(String caseID,
                                        String activityName)

getEntryIDsForCase

public Set<Long> getEntryIDsForCase(String caseID)

getResourceRecord

public String getResourceRecord(long calendarKey)


Copyright © 2004-2012 The YAWL Foundation.