biz.janux.geography
Interface PostalAddressDaoGeneric<T extends PostalAddress>

All Superinterfaces:
GenericDaoReadOnly<T,Integer,org.janux.bus.search.SearchCriteria>, GenericDaoWrite<T,Integer>

public interface PostalAddressDaoGeneric<T extends PostalAddress>
extends GenericDaoWrite<T,Integer>, GenericDaoReadOnly<T,Integer,org.janux.bus.search.SearchCriteria>

Data Access Class used to access and manage PostalAddress entities

Since:
2008-03-27
Author:
Philippe Paravicini

Method Summary
 int countByCountryAsString()
          Counts PostalAddress entities where the address.getCountryAsString is not null, that is, where the Country is not stored as a reference; this is mostly meant as a utility method used to clean up or convert data
 int countByCountryAsString(String country)
          Count PostalAddress entities where the address.getCountryAsString field matches the country string passed; this is mostly meant as a utility method that can be used to clean up or convert data
 List<PostalAddress> findByCountryAsString()
          Retrieves PostalAddress entities where address.getCountryAsString is not null; this is mostly meant as a utility method that can be used to clean up or convert data
 List<PostalAddress> findByCountryAsString(Integer numRecords, Integer offset)
          Retrieves PostalAddress entities where address.getCountryAsString is not null; this is mostly meant as a utility method that can be used to clean up or convert data
 List<PostalAddress> findByCountryAsString(String country)
          Retrieves PostalAddress entities where the address.getCountryAsString field matches the country string passed; this is mostly meant as a utility method that can be used to clean up or convert data
 List<PostalAddress> findByCountryAsString(String country, Integer numRecords, Integer offset)
          Retrieves PostalAddress entities where the address.getCountryAsString field matches the country string passed; this is mostly meant as a utility method that can be used to clean up or convert data
 
Methods inherited from interface org.janux.bus.persistence.GenericDaoWrite
attachClean, clear, delete, evict, flush, merge, refresh, save, saveOrUpdate, update
 
Methods inherited from interface org.janux.bus.persistence.GenericDaoReadOnly
count, findByCriteria, load
 

Method Detail

countByCountryAsString

int countByCountryAsString()
Counts PostalAddress entities where the address.getCountryAsString is not null, that is, where the Country is not stored as a reference; this is mostly meant as a utility method used to clean up or convert data

See Also:
PostalAddress.getCountryAsString(), GeographyService.setCityStateCountry(biz.janux.geography.PostalAddress)

findByCountryAsString

List<PostalAddress> findByCountryAsString()
Retrieves PostalAddress entities where address.getCountryAsString is not null; this is mostly meant as a utility method that can be used to clean up or convert data

See Also:
PostalAddress.getCountryAsString(), GeographyService.setCityStateCountry(biz.janux.geography.PostalAddress)

findByCountryAsString

List<PostalAddress> findByCountryAsString(Integer numRecords,
                                          Integer offset)
Retrieves PostalAddress entities where address.getCountryAsString is not null; this is mostly meant as a utility method that can be used to clean up or convert data

Parameters:
numRecords - the maximum number of PostalAddresses to return (equivalent to LIMIT modifier in SQL Selects)
offset - when limiting the number of records returned, the
See Also:
PostalAddress.getCountryAsString(), GeographyService.setCityStateCountry(biz.janux.geography.PostalAddress)

countByCountryAsString

int countByCountryAsString(String country)
Count PostalAddress entities where the address.getCountryAsString field matches the country string passed; this is mostly meant as a utility method that can be used to clean up or convert data

Parameters:
country - a string used to match against the PostalAddress.getCountryAsString
See Also:
PostalAddress.getCountryAsString(), GeographyService.setCityStateCountry(biz.janux.geography.PostalAddress)

findByCountryAsString

List<PostalAddress> findByCountryAsString(String country)
Retrieves PostalAddress entities where the address.getCountryAsString field matches the country string passed; this is mostly meant as a utility method that can be used to clean up or convert data

Parameters:
country - a string used to match against the PostalAddress.getCountryAsString
See Also:
PostalAddress.getCountryAsString(), GeographyService.setCityStateCountry(biz.janux.geography.PostalAddress)

findByCountryAsString

List<PostalAddress> findByCountryAsString(String country,
                                          Integer numRecords,
                                          Integer offset)
Retrieves PostalAddress entities where the address.getCountryAsString field matches the country string passed; this is mostly meant as a utility method that can be used to clean up or convert data

Parameters:
country - a string used to match against the PostalAddress.getCountryAsString
numRecords - the maximum number of PostalAddresses to return (equivalent to LIMIT modifier in SQL Selects)
offset - when limiting the number of records returned, the
See Also:
PostalAddress.getCountryAsString(), GeographyService.setCityStateCountry(biz.janux.geography.PostalAddress)


Copyright © 2005-2013 Janux. All Rights Reserved.