com.retek.component.customer.impl.persistence
Interface CatalogRequestDao

All Known Implementing Classes:
CacheCatalogRequestDao, OracleCatalogRequestDao

public interface CatalogRequestDao

A customer's request for a catalog.

See Also:
CatalogRequestOrigin, CatalogRequestType

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 requestRefs, 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.
 

Method Detail

createReferenceCacheForCatalogRequest

public ReferenceCache createReferenceCacheForCatalogRequest()
                                                     throws SystemException
Throws:
SystemException

persist

public CatalogRequestDto persist(CatalogRequestDto dto)
                          throws SystemException
Persists a catalog request.

Throws:
java.lang.NullPointerException - if dto is null.
SystemException

read

public CatalogRequestDto read(DistributedReference ref)
                       throws SystemException
Reads the catalog request for the given catalog request reference.

Returns:
Always either returns an CatalogRequestDto or throws an exception. Never returns null.
Throws:
InvalidReferenceException - if the reference cannot be resolved.
SystemException

read

public java.util.Set read(java.util.Set refs)
                   throws SystemException
Reads the catalog request requests for the given references.

Returns:
Set catalog request requests
Throws:
InvalidReferenceException - if the reference cannot be resolved.
SystemException

findUnexportedCatalogRequestReferences

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

Returns:
Set request references
Throws:
SystemException

persistProcessed

public void persistProcessed(java.util.Set requestRefs,
                             boolean exportedFlag)
                      throws SystemException
Persist a set of catalog request (marking as processed).

Parameters:
requestRefs - 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