com.retek.component.location.impl.persistence.db.oracle
Class OracleLocationDao

java.lang.Object
  extended bycom.retek.commons.domain.core.persistence.db.oracle.AbstractOracleDao
      extended bycom.retek.component.location.impl.persistence.db.oracle.OracleLocationDao
All Implemented Interfaces:
LocationDao

public class OracleLocationDao
extends AbstractOracleDao
implements LocationDao


Constructor Summary
OracleLocationDao()
           
 
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)
           
protected  java.lang.String getDaoResourceProperty()
           
 CountryDto getDefaultCountry()
          Reads the country configured as the default.
 CountryDto persist(CountryDto countryDto)
           
 CallCenterDto persistCallCenter(CallCenterDto dto)
           
 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.
 
Methods inherited from class com.retek.commons.domain.core.persistence.db.oracle.AbstractOracleDao
buildReferenceCache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OracleLocationDao

public OracleLocationDao()
Method Detail

getDaoResourceProperty

protected java.lang.String getDaoResourceProperty()
Overrides:
getDaoResourceProperty in class AbstractOracleDao

persist

public CountryDto persist(CountryDto countryDto)
                   throws SystemException
Specified by:
persist in interface LocationDao
Throws:
SystemException

createReferenceCacheForLocation

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

find

public java.util.Set find(LocationSearchCriteria criteria)
                   throws SystemException
Specified by:
find in interface LocationDao
Throws:
SystemException

findAllCountries

public java.util.Set findAllCountries()
                               throws SystemException
Description copied from interface: LocationDao
Finds all countries supported by the RCOM installation.

Specified by:
findAllCountries in interface LocationDao
Throws:
SystemException

findAllPhysicalWarehouses

public java.util.Set findAllPhysicalWarehouses()
                                        throws SystemException
Specified by:
findAllPhysicalWarehouses in interface LocationDao
Throws:
SystemException

findAllCountryZipCodeRanges

public java.util.Set findAllCountryZipCodeRanges()
                                          throws SystemException
Specified by:
findAllCountryZipCodeRanges in interface LocationDao
Throws:
SystemException

getDefaultCountry

public CountryDto getDefaultCountry()
                             throws SystemException
Description copied from interface: LocationDao
Reads the country configured as the default.

Specified by:
getDefaultCountry in interface LocationDao
Throws:
SystemException - If the system is configured with zero or more than one country country specified as default.

readCountryByCode

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

Specified by:
readCountryByCode in interface LocationDao
Returns:
Either the CountryDto for the given code or null if no match is found.
Throws:
SystemException

readCountry

public CountryDto readCountry(DistributedReference ref)
                       throws SystemException
Description copied from interface: LocationDao
Reads the country for the given reference.

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

findAllCallCenters

public java.util.Set findAllCallCenters()
                                 throws SystemException
Specified by:
findAllCallCenters in interface LocationDao
Throws:
SystemException

readCallCenter

public CallCenterDto readCallCenter(DistributedReference ref)
                             throws SystemException
Specified by:
readCallCenter in interface LocationDao
Throws:
SystemException

persistCallCenter

public CallCenterDto persistCallCenter(CallCenterDto dto)
                                throws SystemException
Specified by:
persistCallCenter in interface LocationDao
Throws:
SystemException

findVirtualWarehousesForPhysicalWarehouse

public java.util.Set findVirtualWarehousesForPhysicalWarehouse(DistributedReference physicalWHRef)
                                                        throws SystemException
Specified by:
findVirtualWarehousesForPhysicalWarehouse in interface LocationDao
Throws:
SystemException

callCenterExists

public boolean callCenterExists(java.lang.String callCenterId)
                         throws SystemException
Specified by:
callCenterExists in interface LocationDao
Throws:
SystemException

readCountryZipCodeRange

public CountryZipCodeRangeDto readCountryZipCodeRange(DistributedReference ref)
                                               throws SystemException
Description copied from interface: LocationDao
Reads the country zip code range for the given reference.

Specified by:
readCountryZipCodeRange in interface LocationDao
Returns:
Always either returns a CountryZipCodeRangeDto or throws an exception. Never returns null.
Throws:
SystemException


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