com.liferay.portal.service.persistence
Interface RegionPersistence

All Superinterfaces:
BasePersistence

@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface RegionPersistence
extends BasePersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByActive(boolean active)
           
 int countByC_A(long countryId, boolean active)
           
 int countByCountryId(long countryId)
           
 Region create(long regionId)
           
 Region fetchByPrimaryKey(long regionId)
           
 java.util.List<Region> findAll()
           
 java.util.List<Region> findAll(int start, int end)
           
 java.util.List<Region> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Region findByActive_First(boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Region findByActive_Last(boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Region[] findByActive_PrevAndNext(long regionId, boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<Region> findByActive(boolean active)
           
 java.util.List<Region> findByActive(boolean active, int start, int end)
           
 java.util.List<Region> findByActive(boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Region findByC_A_First(long countryId, boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Region findByC_A_Last(long countryId, boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Region[] findByC_A_PrevAndNext(long regionId, long countryId, boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<Region> findByC_A(long countryId, boolean active)
           
 java.util.List<Region> findByC_A(long countryId, boolean active, int start, int end)
           
 java.util.List<Region> findByC_A(long countryId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Region findByCountryId_First(long countryId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Region findByCountryId_Last(long countryId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Region[] findByCountryId_PrevAndNext(long regionId, long countryId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<Region> findByCountryId(long countryId)
           
 java.util.List<Region> findByCountryId(long countryId, int start, int end)
           
 java.util.List<Region> findByCountryId(long countryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Region findByPrimaryKey(long regionId)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 Region remove(long regionId)
           
 Region remove(Region region)
           
 void removeAll()
           
 void removeByActive(boolean active)
           
 void removeByC_A(long countryId, boolean active)
           
 void removeByCountryId(long countryId)
           
 Region update(Region region)
          Deprecated. Use update(Region region, boolean merge).
 Region update(Region region, boolean merge)
          Add, update, or merge, the entity.
 Region updateImpl(Region region, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Method Detail

create

Region create(long regionId)

remove

Region remove(long regionId)
              throws NoSuchRegionException,
                     com.liferay.portal.SystemException
Throws:
NoSuchRegionException
com.liferay.portal.SystemException

remove

Region remove(Region region)
              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

Region update(Region region)
              throws com.liferay.portal.SystemException
Deprecated. Use update(Region region, boolean merge).

Throws:
com.liferay.portal.SystemException

update

Region update(Region region,
              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:
region - 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 region 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

Region updateImpl(Region region,
                  boolean merge)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Region findByPrimaryKey(long regionId)
                        throws NoSuchRegionException,
                               com.liferay.portal.SystemException
Throws:
NoSuchRegionException
com.liferay.portal.SystemException

fetchByPrimaryKey

Region fetchByPrimaryKey(long regionId)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCountryId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Region> findByCountryId(long countryId)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCountryId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Region> findByCountryId(long countryId,
                                                     int start,
                                                     int end)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCountryId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Region> findByCountryId(long countryId,
                                                     int start,
                                                     int end,
                                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCountryId_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Region findByCountryId_First(long countryId,
                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                             throws NoSuchRegionException,
                                    com.liferay.portal.SystemException
Throws:
NoSuchRegionException
com.liferay.portal.SystemException

findByCountryId_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Region findByCountryId_Last(long countryId,
                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                            throws NoSuchRegionException,
                                   com.liferay.portal.SystemException
Throws:
NoSuchRegionException
com.liferay.portal.SystemException

findByCountryId_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Region[] findByCountryId_PrevAndNext(long regionId,
                                                   long countryId,
                                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                                     throws NoSuchRegionException,
                                            com.liferay.portal.SystemException
Throws:
NoSuchRegionException
com.liferay.portal.SystemException

findByActive

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Region> findByActive(boolean active)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByActive

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Region> findByActive(boolean active,
                                                  int start,
                                                  int end)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByActive

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Region> findByActive(boolean active,
                                                  int start,
                                                  int end,
                                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByActive_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Region findByActive_First(boolean active,
                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                          throws NoSuchRegionException,
                                 com.liferay.portal.SystemException
Throws:
NoSuchRegionException
com.liferay.portal.SystemException

findByActive_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Region findByActive_Last(boolean active,
                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                         throws NoSuchRegionException,
                                com.liferay.portal.SystemException
Throws:
NoSuchRegionException
com.liferay.portal.SystemException

findByActive_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Region[] findByActive_PrevAndNext(long regionId,
                                                boolean active,
                                                com.liferay.portal.kernel.util.OrderByComparator obc)
                                  throws NoSuchRegionException,
                                         com.liferay.portal.SystemException
Throws:
NoSuchRegionException
com.liferay.portal.SystemException

findByC_A

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Region> findByC_A(long countryId,
                                               boolean active)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_A

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Region> findByC_A(long countryId,
                                               boolean active,
                                               int start,
                                               int end)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_A

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Region> findByC_A(long countryId,
                                               boolean active,
                                               int start,
                                               int end,
                                               com.liferay.portal.kernel.util.OrderByComparator obc)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_A_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Region findByC_A_First(long countryId,
                                     boolean active,
                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                       throws NoSuchRegionException,
                              com.liferay.portal.SystemException
Throws:
NoSuchRegionException
com.liferay.portal.SystemException

findByC_A_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Region findByC_A_Last(long countryId,
                                    boolean active,
                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                      throws NoSuchRegionException,
                             com.liferay.portal.SystemException
Throws:
NoSuchRegionException
com.liferay.portal.SystemException

findByC_A_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Region[] findByC_A_PrevAndNext(long regionId,
                                             long countryId,
                                             boolean active,
                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                               throws NoSuchRegionException,
                                      com.liferay.portal.SystemException
Throws:
NoSuchRegionException
com.liferay.portal.SystemException

findWithDynamicQuery

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                                    int start,
                                                                    int end)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Region> findAll()
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Region> findAll(int start,
                                             int end)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Region> findAll(int start,
                                             int end,
                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByCountryId

void removeByCountryId(long countryId)
                       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

removeByC_A

void removeByC_A(long countryId,
                 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

countByCountryId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByCountryId(long countryId)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByActive

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByActive(boolean active)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByC_A

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByC_A(long countryId,
                             boolean active)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countAll()
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException