com.liferay.portal.service.persistence
Interface CountryPersistence


public interface CountryPersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByActive(boolean active)
           
 Country create(long countryId)
           
 Country fetchByPrimaryKey(long countryId)
           
 java.util.List<Country> findAll()
           
 java.util.List<Country> findAll(int begin, int end)
           
 java.util.List<Country> findAll(int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Country findByActive_First(boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Country findByActive_Last(boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Country[] findByActive_PrevAndNext(long countryId, boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<Country> findByActive(boolean active)
           
 java.util.List<Country> findByActive(boolean active, int begin, int end)
           
 java.util.List<Country> findByActive(boolean active, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Country findByPrimaryKey(long countryId)
           
 java.util.List<Country> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
 java.util.List<Country> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
 Country remove(Country country)
           
 Country remove(long countryId)
           
 void removeAll()
           
 void removeByActive(boolean active)
           
 Country update(Country country)
          Deprecated. Use update(Country country, boolean merge).
 Country update(Country country, boolean merge)
          Add, update, or merge, the entity.
 Country updateImpl(Country country, boolean merge)
           
 

Method Detail

create

Country create(long countryId)

remove

Country remove(long countryId)
               throws com.liferay.portal.SystemException,
                      NoSuchCountryException
Throws:
com.liferay.portal.SystemException
NoSuchCountryException

remove

Country remove(Country country)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

Country update(Country country)
               throws com.liferay.portal.SystemException
Deprecated. Use update(Country country, boolean merge).

Throws:
com.liferay.portal.SystemException

update

Country update(Country country,
               boolean merge)
               throws com.liferay.portal.SystemException
Add, update, or merge, the entity. This method also calls the model listeners to trigger the proper events associated with adding, deleting, or updating an entity.

Parameters:
country - the entity to add, update, or merge
merge - boolean value for whether to merge the entity. The default value is false. Setting merge to true is more expensive and should only be true when country is transient. See LEP-5473 for a detailed discussion of this method.
Returns:
true if the portlet can be displayed via Ajax
Throws:
com.liferay.portal.SystemException

updateImpl

Country updateImpl(Country country,
                   boolean merge)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

Country findByPrimaryKey(long countryId)
                         throws com.liferay.portal.SystemException,
                                NoSuchCountryException
Throws:
com.liferay.portal.SystemException
NoSuchCountryException

fetchByPrimaryKey

Country fetchByPrimaryKey(long countryId)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByActive

java.util.List<Country> findByActive(boolean active)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByActive

java.util.List<Country> findByActive(boolean active,
                                     int begin,
                                     int end)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByActive

java.util.List<Country> findByActive(boolean active,
                                     int begin,
                                     int end,
                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByActive_First

Country findByActive_First(boolean active,
                           com.liferay.portal.kernel.util.OrderByComparator obc)
                           throws com.liferay.portal.SystemException,
                                  NoSuchCountryException
Throws:
com.liferay.portal.SystemException
NoSuchCountryException

findByActive_Last

Country findByActive_Last(boolean active,
                          com.liferay.portal.kernel.util.OrderByComparator obc)
                          throws com.liferay.portal.SystemException,
                                 NoSuchCountryException
Throws:
com.liferay.portal.SystemException
NoSuchCountryException

findByActive_PrevAndNext

Country[] findByActive_PrevAndNext(long countryId,
                                   boolean active,
                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                                   throws com.liferay.portal.SystemException,
                                          NoSuchCountryException
Throws:
com.liferay.portal.SystemException
NoSuchCountryException

findWithDynamicQuery

java.util.List<Country> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

java.util.List<Country> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                             int begin,
                                             int end)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

java.util.List<Country> findAll()
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

java.util.List<Country> findAll(int begin,
                                int end)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

java.util.List<Country> findAll(int begin,
                                int end,
                                com.liferay.portal.kernel.util.OrderByComparator obc)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByActive

void removeByActive(boolean active)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeAll

void removeAll()
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByActive

int countByActive(boolean active)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

int countAll()
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException