com.retek.component.customer.impl.persistence.cache
Class CacheActivityRequestDao

java.lang.Object
  extended bycom.retek.commons.component.impl.persistence.cache.MemoryDao
      extended bycom.retek.component.customer.impl.persistence.cache.CacheActivityRequestDao
All Implemented Interfaces:
ActivityRequestDao

public class CacheActivityRequestDao
extends MemoryDao
implements ActivityRequestDao


Constructor Summary
CacheActivityRequestDao()
           
 
Method Summary
 ReferenceCache createReferenceCacheForActivtyRequest(java.lang.Class businessInterface)
           
 java.util.Set find(DistributedReference customerRef)
          Finds all activity requests for the given customer.
 ActivityRequestDto findActivityRequestById(java.lang.String id)
           
 java.util.Set findAllActivityRequestTypes()
          Find all activity request types in the system
 java.util.Set findOpenActivityRequests()
          Activity requests can be in one of two states, open or closed.
 ActivityRequestTypeDto persistActivityRequestType(ActivityRequestTypeDto dto)
          Submit a single activity request type
 ActivityRequestDto read(DistributedReference ref)
          Reads the Activity request for the given reference.
 ActivityRequestTypeDto readActivityRequestType(DistributedReference ref)
          Read a single activity request type
static void reset()
           
 ActivityRequestDto submit(ActivityRequestDto dto)
          Persists an activity request.
 
Methods inherited from class com.retek.commons.component.impl.persistence.cache.MemoryDao
doCreateReferenceCache, doCreateReferenceCache, doDelete, doPersist, doPersist, doRead, doRead, getDtosForType, getSizeReport, isWildCardEqual, resetAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheActivityRequestDao

public CacheActivityRequestDao()
                        throws SystemException
Method Detail

reset

public static void reset()

submit

public ActivityRequestDto submit(ActivityRequestDto dto)
                          throws SystemException
Description copied from interface: ActivityRequestDao
Persists an activity request.

Specified by:
submit in interface ActivityRequestDao
Throws:
SystemException

findActivityRequestById

public ActivityRequestDto findActivityRequestById(java.lang.String id)
                                           throws SystemException
Specified by:
findActivityRequestById in interface ActivityRequestDao
Throws:
SystemException

persistActivityRequestType

public ActivityRequestTypeDto persistActivityRequestType(ActivityRequestTypeDto dto)
                                                  throws SystemException
Description copied from interface: ActivityRequestDao
Submit a single activity request type

Specified by:
persistActivityRequestType in interface ActivityRequestDao
Returns:
A single activity request type dto (possibly updated)
Throws:
SystemException

find

public java.util.Set find(DistributedReference customerRef)
                   throws SystemException
Description copied from interface: ActivityRequestDao
Finds all activity requests for the given customer. If customerRef is null, then returns all Activity requests for all customers.

Specified by:
find in interface ActivityRequestDao
Returns:
An empty set if no activity requests exists for the given customer.
Throws:
SystemException

findOpenActivityRequests

public java.util.Set findOpenActivityRequests()
                                       throws SystemException
Description copied from interface: ActivityRequestDao
Activity requests can be in one of two states, open or closed. This method finds all activity requests in the open state.

Specified by:
findOpenActivityRequests in interface ActivityRequestDao
Returns:
An empty set if no activity requests exists for the given customer.
Throws:
SystemException

createReferenceCacheForActivtyRequest

public ReferenceCache createReferenceCacheForActivtyRequest(java.lang.Class businessInterface)
                                                     throws SystemException
Specified by:
createReferenceCacheForActivtyRequest in interface ActivityRequestDao
Throws:
SystemException

read

public ActivityRequestDto read(DistributedReference ref)
                        throws SystemException
Description copied from interface: ActivityRequestDao
Reads the Activity request for the given reference.

Specified by:
read in interface ActivityRequestDao
Returns:
Always either returns an ActivityRequestDto or throws an exception. Never returns null.
Throws:
SystemException

findAllActivityRequestTypes

public java.util.Set findAllActivityRequestTypes()
                                          throws SystemException
Description copied from interface: ActivityRequestDao
Find all activity request types in the system

Specified by:
findAllActivityRequestTypes in interface ActivityRequestDao
Returns:
A set of ActivityRequestTypeDto objects or empty.
Throws:
SystemException

readActivityRequestType

public ActivityRequestTypeDto readActivityRequestType(DistributedReference ref)
                                               throws SystemException
Description copied from interface: ActivityRequestDao
Read a single activity request type

Specified by:
readActivityRequestType in interface ActivityRequestDao
Returns:
A single activity request type dto
Throws:
SystemException


Copyright © 2004 Retek Inc. All Rights Reserved. - Generated at Fri, 10/22/2004 07:28