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

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

public class CacheCatalogRequestDao
extends MemoryDao
implements CatalogRequestDao


Constructor Summary
CacheCatalogRequestDao()
           
 
Method Summary
 ReferenceCache createReferenceCacheForCatalogRequest()
           
 java.util.Set findUnexportedCatalogRequestReferences()
          Catalog requests are fulfilled by an external system.
 CatalogRequestDto persist(CatalogRequestDto dto)
          Persists a catalog request.
 void persistProcessed(java.util.Set refs, boolean exportedFlag)
          Persist a set of catalog request (marking as processed).
 CatalogRequestDto read(DistributedReference ref)
          Reads the catalog request for the given catalog request reference.
 java.util.Set read(java.util.Set refs)
          Reads the catalog request requests for the given references.
static void reset()
           
 
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

CacheCatalogRequestDao

public CacheCatalogRequestDao()
Method Detail

reset

public static void reset()

read

public CatalogRequestDto read(DistributedReference ref)
                       throws SystemException
Description copied from interface: CatalogRequestDao
Reads the catalog request for the given catalog request reference.

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

read

public java.util.Set read(java.util.Set refs)
                   throws SystemException
Description copied from interface: CatalogRequestDao
Reads the catalog request requests for the given references.

Specified by:
read in interface CatalogRequestDao
Returns:
Set catalog request requests
Throws:
SystemException

persist

public CatalogRequestDto persist(CatalogRequestDto dto)
                          throws SystemException
Description copied from interface: CatalogRequestDao
Persists a catalog request.

Specified by:
persist in interface CatalogRequestDao
Throws:
SystemException

findUnexportedCatalogRequestReferences

public java.util.Set findUnexportedCatalogRequestReferences()
                                                     throws SystemException
Description copied from interface: CatalogRequestDao
Catalog requests are fulfilled by an external system. The method finds all catalog requests not yet exported to this external system.

Specified by:
findUnexportedCatalogRequestReferences in interface CatalogRequestDao
Returns:
Set request references
Throws:
SystemException

createReferenceCacheForCatalogRequest

public ReferenceCache createReferenceCacheForCatalogRequest()
                                                     throws SystemException
Specified by:
createReferenceCacheForCatalogRequest in interface CatalogRequestDao
Throws:
SystemException

persistProcessed

public void persistProcessed(java.util.Set refs,
                             boolean exportedFlag)
                      throws SystemException
Description copied from interface: CatalogRequestDao
Persist a set of catalog request (marking as processed).

Specified by:
persistProcessed in interface CatalogRequestDao
Parameters:
refs - the catalog request references to update
exportedFlag - boolean indicating export is processed
Throws:
SystemException


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