com.liferay.portal.service.persistence
Interface CountryPersistence

All Known Implementing Classes:
CountryPersistenceImpl

public interface CountryPersistence

View Source

Author:
Brian Wing Shun Chan

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

Method Detail

create

public com.liferay.portal.model.Country create(long countryId)

remove

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

remove

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

update

public com.liferay.portal.model.Country update(com.liferay.portal.model.Country country)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public com.liferay.portal.model.Country update(com.liferay.portal.model.Country country,
                                               boolean merge)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

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

fetchByPrimaryKey

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

findByActive

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

findByActive

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

findByActive

public java.util.List 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

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

findByActive_Last

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

findByActive_PrevAndNext

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

findWithDynamicQuery

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

findWithDynamicQuery

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

findAll

public java.util.List findAll()
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

findAll

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

removeByActive

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

removeAll

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

countByActive

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

countAll

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