Holger's
Java API

Uses of Class
com.antelmann.timeregister.WorkUnit

Packages that use WorkUnit
com.antelmann.timeregister This package contains classes that implement a time register solution for a small business. 
 

Uses of WorkUnit in com.antelmann.timeregister
 

Methods in com.antelmann.timeregister that return WorkUnit
 WorkUnit JWorkUnitForm.commitFormAction(JComponent formComponent)
           
 WorkUnit WorkUnitTableModel.getWorkUnitAt(int row)
           
 WorkUnit WorkUnitAnalyzer.overlappingUnit(WorkUnit unit)
          checks whether a unit exists that overlaps with the given one and returns it.
 

Methods in com.antelmann.timeregister that return types with arguments of type WorkUnit
protected  List<WorkUnit> SQLPunchDB.extractUnits(ResultSet rs, Map<Object,TimeUser> users, Filter<WorkUnit> filter)
           
 Set<WorkUnit> WorkUnitAnalyzer.getCorrespondingToPunchData(PunchDB db, boolean returnThoseThatCorrespond)
          returns those WorkUnits that do or do not directly correspond to a punch pair in the given database.
 List<WorkUnit> WorkUnitTableModel.getList()
          creates and returns an unmodifiable view of the underlying data
 Set<WorkUnit> WorkUnitAnalyzer.getOverlappingUnits()
          returns a set of WorkUnit objects that cause conflicts in this analyzer
 ArrayList<WorkUnit> PunchDataAnalyzer.getWorkUnits()
          returns a list of WorkUnit objects resulting from the current content of the analyzer.
 List<WorkUnit> SQLPunchDB.getWorkUnits(Filter<WorkUnit> filter)
           
 List<WorkUnit> WorkUnitAnalyzer.getWorkUnits(TimeUser user, Date beginFrom, Date beginUntil, String location)
          selects both dates inclusive
 List<WorkUnit> SQLPunchDB.getWorkUnits(User user, WorkUnit.Type type, Date beginAfter, Date beginBefore, String activity)
           
 List<WorkUnit> PunchDBClient.getWorkUnits(User user, WorkUnit.Type type, Date beginFrom, Date beginUntil, String activity)
           
 List<WorkUnit> PunchAdminDB.getWorkUnits(User user, WorkUnit.Type type, Date beginFrom, Date beginUntil, String activity)
          retrieves the relevant set of WorkUnit objects
 List<WorkUnit> WorkUnitAnalyzer.getWorkUnitsFor(User user, Date date)
          returns those WorkUnits that enclose the given date; user constrain may be null
 List<WorkUnit> SQLPunchDB.getWorkUnitsFor(User user, Date date)
           
 List<WorkUnit> PunchDBClient.getWorkUnitsFor(User user, Date date)
           
 List<WorkUnit> PunchAdminDB.getWorkUnitsFor(User user, Date time)
          returns all work units that enclose the given time based on the given user (or all users if user is null).
static Filter<WorkUnit> WorkUnitAnalyzer.makeFilter(User user, Date beginFrom, Date beginUntil, String activity, String comment)
          selects both dates inclusive
 

Methods in com.antelmann.timeregister with parameters of type WorkUnit
 boolean WorkUnitValidator.accept(WorkUnit unit)
           
 boolean WorkUnitAnalyzer.add(WorkUnit unit)
           
 int WorkUnit.compareTo(WorkUnit unit)
          sorts by user, begin, type, length
 void SQLPunchDB.delete(WorkUnit unit)
           
 void PunchDBClient.delete(WorkUnit unit)
           
 void PunchAdminDB.delete(WorkUnit unit)
           
 int WorkUnitTableModel.getRowFor(WorkUnit unit)
           
 void SQLPunchDB.insert(WorkUnit unit)
           
 void PunchDBClient.insert(WorkUnit unit)
           
 void PunchAdminDB.insert(WorkUnit unit)
          inserts the given unit into the database
 WorkUnit WorkUnitAnalyzer.overlappingUnit(WorkUnit unit)
          checks whether a unit exists that overlaps with the given one and returns it.
 boolean WorkUnit.overlapsWith(WorkUnit unit)
          only looks at the time, not at the user
 void JWorkUnitForm.setWorkUnit(WorkUnit unit)
          upon commitForAction(JComponent), the given unit will be deleted before the one edited by the form is inserted
 

Method parameters in com.antelmann.timeregister with type arguments of type WorkUnit
protected  List<WorkUnit> SQLPunchDB.extractUnits(ResultSet rs, Map<Object,TimeUser> users, Filter<WorkUnit> filter)
           
 void WorkUnitAnalyzer.filter(Filter<WorkUnit> filter)
           
<T> HashMap<T,Long>
WorkUnitAnalyzer.getNetTimes(PatternExtractor<WorkUnit,T> pattern)
           
<T> HashMap<T,Long>
WorkUnitAnalyzer.getTimes(PatternExtractor<WorkUnit,T> pattern)
           
 List<WorkUnit> SQLPunchDB.getWorkUnits(Filter<WorkUnit> filter)
           
 void WorkUnitAnalyzer.refresh(Collection<WorkUnit> col, Filter<WorkUnit> filter)
          updates this analyzer with the given data; the filter may be null; duplicates are left out
 void WorkUnitAnalyzer.refresh(Collection<WorkUnit> col, Filter<WorkUnit> filter)
          updates this analyzer with the given data; the filter may be null; duplicates are left out
 void WorkUnitTableModel.update(Collection<WorkUnit> col)
           
 

Constructors in com.antelmann.timeregister with parameters of type WorkUnit
JWorkUnitForm(PunchAdminDB db, WorkUnit unit, String... activity)
           
 

Constructor parameters in com.antelmann.timeregister with type arguments of type WorkUnit
WorkUnitAnalyzer(Collection<WorkUnit> col)
           
WorkUnitTableModel(Collection<WorkUnit> col)
           
 



(c) 2001-2006 Holger Antelmann - all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads