umich.mgrid.queryengine
Class UrwgLookupService

java.lang.Object
  extended byumich.mgrid.queryengine.UrwgLookupService
All Implemented Interfaces:
LookupServiceEngine

public final class UrwgLookupService
extends java.lang.Object
implements LookupServiceEngine

Queries the DB using the query engine, and returns usage statistics for URWG schema. Based on LookupService class.

Version:
$Header: /cvsroot/pbsaccounting/pbsaccounting/darkslide/doc/javadoc/umich/mgrid/queryengine/UrwgLookupService.html,v 1.1 2003/12/18 17:16:40 rodmach Exp $
Author:
Beth Kirschner

Constructor Summary
UrwgLookupService()
           
 
Method Summary
 java.util.Map getUserData(java.util.Date startDate, java.util.Date endDate)
          Return a Map with key of username, and value of UserData for that user filled in with user statistics
 void setQueryEngine(QueryEngine queryEngine)
          Set the query engine to use to perform the queriest against
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrwgLookupService

public UrwgLookupService()
Method Detail

setQueryEngine

public void setQueryEngine(QueryEngine queryEngine)
Set the query engine to use to perform the queriest against

Specified by:
setQueryEngine in interface LookupServiceEngine
Parameters:
queryEngine - The query engine to perform XPATH queries against

getUserData

public java.util.Map getUserData(java.util.Date startDate,
                                 java.util.Date endDate)
Return a Map with key of username, and value of UserData for that user filled in with user statistics

Specified by:
getUserData in interface LookupServiceEngine
Parameters:
startDate - the start date of the job
endDate - the end date of the job
Returns:
Map with KEY: userName VALUE: UserData object filled in with user stats