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

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

public class CacheCustomerDao
extends MemoryDao
implements CustomerDao


Constructor Summary
CacheCustomerDao()
           
 
Method Summary
 ReferenceCache createReferenceCache(java.lang.Class businessInterface)
          Creates a reference for a new given businessInterface.
 ReferenceCache createReferenceCacheForCustomerCreditCard()
           
 java.util.List find(CustomerFindCriteria findCriteria)
          Finds all customers meeting the given criteria.
 java.util.Set findAllCustomerChangeReasons()
          Finds all customer change reasons.
 java.util.Set findAllCustomerInactiveReasons()
          Finds all CustomerInactiveReasonDtos
 java.util.List findAllMatchRules()
          Finds all match rules.
 java.util.Set findCustomerCreditPreApproval(CustomerCreditPreApprovalSearchCriteria findCriteria)
          Finds all customer credit pre-approvals that match the given criteria.
 java.util.List findCustomerReferences(CustomerExportSearchCriteria criteria)
          Finds all customers references meeting the given criteria.
 java.util.List findCustomerReferences(CustomerFindCriteria criteria)
          Finds all customers references meeting the given criteria.
 java.util.Set findProcessedCustomerImportRequestIds(java.util.Set importRequestIds)
          Find previously processed customer import request ids.
 java.util.Set findStoredValueCardCashoutsForSalesAuditExport()
          Finds all StoredValueCardCashoutDtos with a sales audit state of READY
 java.util.List getSalutations()
          Reads all of the customer salutations (e.g.
 java.util.List getSuffixes()
          Reads all of the customer suffixes (e.g.
 boolean hasProcessedCustomerImportRequest(java.lang.String requestId)
           
 CustomerCreditPreApprovalDto persist(CustomerCreditPreApprovalDto preApprovaldto)
          Persists a customer credit pre-approval.
 CustomerDto persist(CustomerDto dto)
          Persists a customer.
 StoredValueCardCashoutDto persist(StoredValueCardCashoutDto cashoutDto)
          Persists a stored value card cashout record.
 CustomerDto read(DistributedReference ref)
          Reads the customer for the given reference.
 CustomerAddressDto readAddress(DistributedReference ref)
          Reads the customer address for the given reference.
 CustomerChangeReasonDto readCustomerChangeReason(DistributedReference ref)
          Read a customer change reason
 CustomerInactiveReasonDto readCustomerInactiveReason(DistributedReference ref)
          Read a customer inactive reason
 java.util.List readCustomers(java.util.Collection refs)
          Reads the customers for the given references.
 SalutationDto readCustomerSalutation(DistributedReference ref)
          Reads the country for the given reference.
 SuffixDto readCustomerSuffix(DistributedReference ref)
          Reads the customer suffix (e.g.
 CustomerEmailAddressDto readEmailAddress(DistributedReference ref)
          Reads the customer email for the given reference.
 StoredValueCardCashoutDto readStoredValueCardCashout(DistributedReference ref)
          Read a stored value card cashout.
 CustomerTelephoneDto readTelephone(DistributedReference ref)
          Reads the customer telephone for the given reference.
static void reset()
           
 void setCheckContextsOnDoPersist(boolean checkContextsOnDoPersist)
           
 MatchRuleDto update(MatchRuleDto matchRuleDto)
          Persists changes to a match rule.
 
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

CacheCustomerDao

public CacheCustomerDao()
                 throws SystemException
Method Detail

reset

public static void reset()

createReferenceCacheForCustomerCreditCard

public ReferenceCache createReferenceCacheForCustomerCreditCard()
                                                         throws SystemException
Throws:
SystemException

persist

public CustomerDto persist(CustomerDto dto)
                    throws SystemException
Description copied from interface: CustomerDao
Persists a customer.

Specified by:
persist in interface CustomerDao
Parameters:
dto - customer dto
Throws:
SystemException

persist

public CustomerCreditPreApprovalDto persist(CustomerCreditPreApprovalDto preApprovaldto)
                                     throws SystemException
Description copied from interface: CustomerDao
Persists a customer credit pre-approval.

Specified by:
persist in interface CustomerDao
Throws:
SystemException

persist

public StoredValueCardCashoutDto persist(StoredValueCardCashoutDto cashoutDto)
                                  throws SystemException
Description copied from interface: CustomerDao
Persists a stored value card cashout record.

Specified by:
persist in interface CustomerDao
Throws:
SystemException

read

public CustomerDto read(DistributedReference ref)
                 throws SystemException
Description copied from interface: CustomerDao
Reads the customer for the given reference.

Specified by:
read in interface CustomerDao
Returns:
Always either returns a CustomerDto or throws an exception. Never returns null.
Throws:
SystemException

hasProcessedCustomerImportRequest

public boolean hasProcessedCustomerImportRequest(java.lang.String requestId)
                                          throws SystemException
Throws:
SystemException

readCustomers

public java.util.List readCustomers(java.util.Collection refs)
                             throws SystemException
Description copied from interface: CustomerDao
Reads the customers for the given references.

Specified by:
readCustomers in interface CustomerDao
Parameters:
refs - customers to read
Returns:
Always either returns a CustomerDto or throws an exception. Never returns null.
Throws:
SystemException

createReferenceCache

public ReferenceCache createReferenceCache(java.lang.Class businessInterface)
                                    throws SystemException
Description copied from interface: CustomerDao
Creates a reference for a new given businessInterface. Responsible for retrieving the next unique CustomerOrderAddress id.

Specified by:
createReferenceCache in interface CustomerDao
Returns:
reference to a new businessInterface
Throws:
SystemException

getSalutations

public java.util.List getSalutations()
Description copied from interface: CustomerDao
Reads all of the customer salutations (e.g. Miss, Dr.) supported by RCOM.

Specified by:
getSalutations in interface CustomerDao

getSuffixes

public java.util.List getSuffixes()
Description copied from interface: CustomerDao
Reads all of the customer suffixes (e.g. Jr., Sr.) supported by RCOM.

Specified by:
getSuffixes in interface CustomerDao

findCustomerCreditPreApproval

public java.util.Set findCustomerCreditPreApproval(CustomerCreditPreApprovalSearchCriteria findCriteria)
                                            throws SystemException
Description copied from interface: CustomerDao
Finds all customer credit pre-approvals that match the given criteria.

Specified by:
findCustomerCreditPreApproval in interface CustomerDao
Returns:
An empty list if no customer credit pre-approvals exist for the given criteria.
Throws:
SystemException

find

public java.util.List find(CustomerFindCriteria findCriteria)
                    throws SystemException
Description copied from interface: CustomerDao
Finds all customers meeting the given criteria. If no criteria are specified, all customers will be found.

Specified by:
find in interface CustomerDao
Returns:
An empty list if no customers exists for the given criteria.
Throws:
SystemException

findCustomerReferences

public java.util.List findCustomerReferences(CustomerFindCriteria criteria)
                                      throws SystemException
Description copied from interface: CustomerDao
Finds all customers references meeting the given criteria.

Specified by:
findCustomerReferences in interface CustomerDao
Parameters:
criteria - customer search criteria
Returns:
customer references
Throws:
SystemException

findCustomerReferences

public java.util.List findCustomerReferences(CustomerExportSearchCriteria criteria)
                                      throws SystemException
Description copied from interface: CustomerDao
Finds all customers references meeting the given criteria.

Specified by:
findCustomerReferences in interface CustomerDao
Parameters:
criteria - customer export search criteria
Returns:
customer references
Throws:
SystemException

findProcessedCustomerImportRequestIds

public java.util.Set findProcessedCustomerImportRequestIds(java.util.Set importRequestIds)
                                                    throws SystemException
Description copied from interface: CustomerDao
Find previously processed customer import request ids.

Specified by:
findProcessedCustomerImportRequestIds in interface CustomerDao
Parameters:
importRequestIds - customer import request ids
Returns:
found import request ids
Throws:
SystemException

update

public MatchRuleDto update(MatchRuleDto matchRuleDto)
                    throws SystemException
Description copied from interface: CustomerDao
Persists changes to a match rule.

Specified by:
update in interface CustomerDao
Returns:
The match rule dto in its updated state.
Throws:
SystemException

findAllMatchRules

public java.util.List findAllMatchRules()
                                 throws SystemException
Description copied from interface: CustomerDao
Finds all match rules.

Specified by:
findAllMatchRules in interface CustomerDao
Returns:
An empty list if no match rules exist.
Throws:
SystemException

readAddress

public CustomerAddressDto readAddress(DistributedReference ref)
                               throws SystemException
Description copied from interface: CustomerDao
Reads the customer address for the given reference.

Specified by:
readAddress in interface CustomerDao
Returns:
Always either returns a CustomerAddressDto or throws an exception. Never returns null.
Throws:
SystemException

readTelephone

public CustomerTelephoneDto readTelephone(DistributedReference ref)
                                   throws SystemException
Description copied from interface: CustomerDao
Reads the customer telephone for the given reference.

Specified by:
readTelephone in interface CustomerDao
Returns:
Always either returns a CustomerTelephoneDto or throws an exception. Never returns null.
Throws:
SystemException

readEmailAddress

public CustomerEmailAddressDto readEmailAddress(DistributedReference ref)
                                         throws SystemException
Description copied from interface: CustomerDao
Reads the customer email for the given reference.

Specified by:
readEmailAddress in interface CustomerDao
Returns:
Always either returns a CustomerEmailDto or throws an exception. Never returns null.
Throws:
SystemException

readStoredValueCardCashout

public StoredValueCardCashoutDto readStoredValueCardCashout(DistributedReference ref)
                                                     throws SystemException
Description copied from interface: CustomerDao
Read a stored value card cashout.

Specified by:
readStoredValueCardCashout in interface CustomerDao
Parameters:
ref -
Returns:
StoredValueCardCashout
Throws:
SystemException

findAllCustomerChangeReasons

public java.util.Set findAllCustomerChangeReasons()
                                           throws SystemException
Description copied from interface: CustomerDao
Finds all customer change reasons.

Specified by:
findAllCustomerChangeReasons in interface CustomerDao
Returns:
An empty set if no change reasons exist.
Throws:
SystemException

findStoredValueCardCashoutsForSalesAuditExport

public java.util.Set findStoredValueCardCashoutsForSalesAuditExport()
                                                             throws SystemException
Description copied from interface: CustomerDao
Finds all StoredValueCardCashoutDtos with a sales audit state of READY

Specified by:
findStoredValueCardCashoutsForSalesAuditExport in interface CustomerDao
Returns:
An empty set if no cashouts are ready.
Throws:
SystemException

readCustomerSalutation

public SalutationDto readCustomerSalutation(DistributedReference ref)
                                     throws SystemException
Description copied from interface: CustomerDao
Reads the country for the given reference.

Specified by:
readCustomerSalutation in interface CustomerDao
Returns:
Always either returns a CountryDto or throws an exception. Never returns null.
Throws:
SystemException

readCustomerSuffix

public SuffixDto readCustomerSuffix(DistributedReference ref)
                             throws SystemException
Description copied from interface: CustomerDao
Reads the customer suffix (e.g. Jr., Sr.) for the given reference.

Specified by:
readCustomerSuffix in interface CustomerDao
Returns:
Always either returns a SuffixDto or throws an exception. Never returns null.
Throws:
SystemException

findAllCustomerInactiveReasons

public java.util.Set findAllCustomerInactiveReasons()
                                             throws SystemException
Description copied from interface: CustomerDao
Finds all CustomerInactiveReasonDtos

Specified by:
findAllCustomerInactiveReasons in interface CustomerDao
Returns:
An empty set if no inactive reasons are in the DB.
Throws:
SystemException

readCustomerInactiveReason

public CustomerInactiveReasonDto readCustomerInactiveReason(DistributedReference ref)
                                                     throws SystemException
Description copied from interface: CustomerDao
Read a customer inactive reason

Specified by:
readCustomerInactiveReason in interface CustomerDao
Parameters:
ref -
Returns:
CustomerInactiveReason
Throws:
SystemException

readCustomerChangeReason

public CustomerChangeReasonDto readCustomerChangeReason(DistributedReference ref)
                                                 throws SystemException
Description copied from interface: CustomerDao
Read a customer change reason

Specified by:
readCustomerChangeReason in interface CustomerDao
Parameters:
ref -
Returns:
CustomerChangeReasonDto
Throws:
SystemException

setCheckContextsOnDoPersist

public void setCheckContextsOnDoPersist(boolean checkContextsOnDoPersist)


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