com.retek.component.location.impl.persistence
Interface LocationDao

All Known Implementing Classes:
CacheLocationDao, OracleLocationDao

public interface LocationDao


Method Summary
 boolean callCenterExists(java.lang.String callCenterId)
           
 ReferenceCache createReferenceCacheForLocation(java.lang.Class businessInterface)
           
 java.util.Set find(LocationSearchCriteria criteria)
           
 java.util.Set findAllCallCenters()
           
 java.util.Set findAllCountries()
          Finds all countries supported by the RCOM installation.
 java.util.Set findAllCountryZipCodeRanges()
           
 java.util.Set findAllPhysicalWarehouses()
           
 java.util.Set findVirtualWarehousesForPhysicalWarehouse(DistributedReference physicalWHRef)
           
 CountryDto getDefaultCountry()
          Reads the country configured as the default.
 CountryDto persist(CountryDto dto)
           
 CallCenterDto persistCallCenter(CallCenterDto callCenterDto)
           
 CallCenterDto readCallCenter(DistributedReference ref)
           
 CountryDto readCountry(DistributedReference ref)
          Reads the country for the given reference.
 CountryDto readCountryByCode(java.lang.String countryCode)
          Reads the country for the given code.
 CountryZipCodeRangeDto readCountryZipCodeRange(DistributedReference ref)
          Reads the country zip code range for the given reference.
 

Method Detail

createReferenceCacheForLocation

public ReferenceCache createReferenceCacheForLocation(java.lang.Class businessInterface)
                                               throws SystemException
Throws:
SystemException

find

public java.util.Set find(LocationSearchCriteria criteria)
                   throws SystemException
Throws:
SystemException

findVirtualWarehousesForPhysicalWarehouse

public java.util.Set findVirtualWarehousesForPhysicalWarehouse(DistributedReference physicalWHRef)
                                                        throws SystemException
Throws:
SystemException

readCountry

public CountryDto readCountry(DistributedReference ref)
                       throws SystemException
Reads the country for the given reference.

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

readCountryZipCodeRange

public CountryZipCodeRangeDto readCountryZipCodeRange(DistributedReference ref)
                                               throws SystemException
Reads the country zip code range for the given reference.

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

readCountryByCode

public CountryDto readCountryByCode(java.lang.String countryCode)
                             throws SystemException
Reads the country for the given code. Country codes are 2 or 3 characters long.

Returns:
Either the CountryDto for the given code or null if no match is found.
Throws:
SystemException

findAllCountries

public java.util.Set findAllCountries()
                               throws SystemException
Finds all countries supported by the RCOM installation.

Throws:
SystemException

findAllPhysicalWarehouses

public java.util.Set findAllPhysicalWarehouses()
                                        throws SystemException
Throws:
SystemException

findAllCountryZipCodeRanges

public java.util.Set findAllCountryZipCodeRanges()
                                          throws SystemException
Throws:
SystemException

getDefaultCountry

public CountryDto getDefaultCountry()
                             throws SystemException
Reads the country configured as the default.

Throws:
SystemException - If the system is configured with zero or more than one country country specified as default.

persist

public CountryDto persist(CountryDto dto)
                   throws SystemException
Throws:
SystemException

findAllCallCenters

public java.util.Set findAllCallCenters()
                                 throws SystemException
Throws:
SystemException

readCallCenter

public CallCenterDto readCallCenter(DistributedReference ref)
                             throws SystemException
Throws:
SystemException

persistCallCenter

public CallCenterDto persistCallCenter(CallCenterDto callCenterDto)
                                throws SystemException
Throws:
SystemException

callCenterExists

public boolean callCenterExists(java.lang.String callCenterId)
                         throws SystemException
Throws:
SystemException


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