org.kuali.rice.location.impl.county
Class CountyServiceImpl

java.lang.Object
  extended by org.kuali.rice.location.impl.county.CountyServiceImpl
All Implemented Interfaces:
CountyService

public class CountyServiceImpl
extends Object
implements CountyService


Constructor Summary
CountyServiceImpl()
           
 
Method Summary
 List<County> findAllCountiesInCountryAndState(String countryCode, String stateCode)
          Gets all the County for postal country code & postal state code.
 CountyQueryResults findCounties(QueryByCriteria queryByCriteria)
          This method find Counties based on a query criteria.
 County getCounty(String countryCode, String stateCode, String code)
          Gets a County from a postal country code and postal code value.
 void setBusinessObjectService(BusinessObjectService businessObjectService)
           
 void setCriteriaLookupService(CriteriaLookupService criteriaLookupService)
          Sets the criteriaLookupService attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountyServiceImpl

public CountyServiceImpl()
Method Detail

getCounty

public County getCounty(String countryCode,
                        String stateCode,
                        String code)
Description copied from interface: CountyService
Gets a County from a postal country code and postal code value.

This method will return null if the state does not exist.

This method will return active or inactive counties.

Specified by:
getCounty in interface CountyService
Parameters:
countryCode - country code. cannot be blank.
stateCode - postal state code. cannot be blank.
code - county code. cannot be blank
Returns:
a County or null

findAllCountiesInCountryAndState

public List<County> findAllCountiesInCountryAndState(String countryCode,
                                                     String stateCode)
Description copied from interface: CountyService
Gets all the County for postal country code & postal state code.

This method will always return an immutable Collection even when no values exist.

This method will only return active counties.

Specified by:
findAllCountiesInCountryAndState in interface CountyService
Parameters:
countryCode - state code. cannot be blank.
stateCode - postal state code. cannot be blank.
Returns:
an immutable collection of counties

findCounties

public CountyQueryResults findCounties(QueryByCriteria queryByCriteria)
                                throws RiceIllegalArgumentException
Description copied from interface: CountyService
This method find Counties based on a query criteria. The criteria cannot be null.

Specified by:
findCounties in interface CountyService
Parameters:
queryByCriteria - the criteria. Cannot be null.
Returns:
query results. will never return null.
Throws:
RiceIllegalArgumentException

setBusinessObjectService

public void setBusinessObjectService(BusinessObjectService businessObjectService)

setCriteriaLookupService

public void setCriteriaLookupService(CriteriaLookupService criteriaLookupService)
Sets the criteriaLookupService attribute value.

Parameters:
criteriaLookupService - The criteriaLookupService to set.


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.