com.liferay.portal.service.persistence
Class RegionUtil

java.lang.Object
  extended bycom.liferay.portal.service.persistence.RegionUtil

public class RegionUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
RegionUtil()
           
 
Method Summary
static int countAll()
           
static int countByActive(boolean active)
           
static int countByC_A(long countryId, boolean active)
           
static int countByCountryId(long countryId)
           
static com.liferay.portal.model.Region create(long regionId)
           
static com.liferay.portal.model.Region fetchByPrimaryKey(long regionId)
           
static java.util.List findAll()
           
static java.util.List findAll(int begin, int end)
           
static java.util.List findAll(int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Region findByActive_First(boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Region findByActive_Last(boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Region[] findByActive_PrevAndNext(long regionId, boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List findByActive(boolean active)
           
static java.util.List findByActive(boolean active, int begin, int end)
           
static java.util.List findByActive(boolean active, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Region findByC_A_First(long countryId, boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Region findByC_A_Last(long countryId, boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Region[] findByC_A_PrevAndNext(long regionId, long countryId, boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List findByC_A(long countryId, boolean active)
           
static java.util.List findByC_A(long countryId, boolean active, int begin, int end)
           
static java.util.List findByC_A(long countryId, boolean active, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Region findByCountryId_First(long countryId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Region findByCountryId_Last(long countryId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Region[] findByCountryId_PrevAndNext(long regionId, long countryId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List findByCountryId(long countryId)
           
static java.util.List findByCountryId(long countryId, int begin, int end)
           
static java.util.List findByCountryId(long countryId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Region findByPrimaryKey(long regionId)
           
static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
static RegionPersistence getPersistence()
           
static com.liferay.portal.model.Region remove(long regionId)
           
static com.liferay.portal.model.Region remove(com.liferay.portal.model.Region region)
           
static void removeAll()
           
static void removeByActive(boolean active)
           
static void removeByC_A(long countryId, boolean active)
           
static void removeByCountryId(long countryId)
           
 void setPersistence(RegionPersistence persistence)
           
static com.liferay.portal.model.Region update(com.liferay.portal.model.Region region)
           
static com.liferay.portal.model.Region update(com.liferay.portal.model.Region region, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegionUtil

public RegionUtil()
Method Detail

create

public static com.liferay.portal.model.Region create(long regionId)

remove

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

remove

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

update

public static com.liferay.portal.model.Region update(com.liferay.portal.model.Region region)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public static com.liferay.portal.model.Region update(com.liferay.portal.model.Region region,
                                                     boolean merge)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

public static com.liferay.portal.model.Region findByPrimaryKey(long regionId)
                                                        throws com.liferay.portal.SystemException,
                                                               com.liferay.portal.NoSuchRegionException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchRegionException

fetchByPrimaryKey

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

findByCountryId

public static java.util.List findByCountryId(long countryId)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCountryId

public static java.util.List findByCountryId(long countryId,
                                             int begin,
                                             int end)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCountryId

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

findByCountryId_First

public static com.liferay.portal.model.Region findByCountryId_First(long countryId,
                                                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                                                             throws com.liferay.portal.SystemException,
                                                                    com.liferay.portal.NoSuchRegionException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchRegionException

findByCountryId_Last

public static com.liferay.portal.model.Region findByCountryId_Last(long countryId,
                                                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                                                            throws com.liferay.portal.SystemException,
                                                                   com.liferay.portal.NoSuchRegionException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchRegionException

findByCountryId_PrevAndNext

public static com.liferay.portal.model.Region[] findByCountryId_PrevAndNext(long regionId,
                                                                            long countryId,
                                                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                     throws com.liferay.portal.SystemException,
                                                                            com.liferay.portal.NoSuchRegionException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchRegionException

findByActive

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

findByActive

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

findByActive

public static 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 static com.liferay.portal.model.Region findByActive_First(boolean active,
                                                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                                          throws com.liferay.portal.SystemException,
                                                                 com.liferay.portal.NoSuchRegionException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchRegionException

findByActive_Last

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

findByActive_PrevAndNext

public static com.liferay.portal.model.Region[] findByActive_PrevAndNext(long regionId,
                                                                         boolean active,
                                                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                  throws com.liferay.portal.SystemException,
                                                                         com.liferay.portal.NoSuchRegionException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchRegionException

findByC_A

public static java.util.List findByC_A(long countryId,
                                       boolean active)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_A

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

findByC_A

public static java.util.List findByC_A(long countryId,
                                       boolean active,
                                       int begin,
                                       int end,
                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_A_First

public static com.liferay.portal.model.Region findByC_A_First(long countryId,
                                                              boolean active,
                                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                                       throws com.liferay.portal.SystemException,
                                                              com.liferay.portal.NoSuchRegionException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchRegionException

findByC_A_Last

public static com.liferay.portal.model.Region findByC_A_Last(long countryId,
                                                             boolean active,
                                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                                      throws com.liferay.portal.SystemException,
                                                             com.liferay.portal.NoSuchRegionException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchRegionException

findByC_A_PrevAndNext

public static com.liferay.portal.model.Region[] findByC_A_PrevAndNext(long regionId,
                                                                      long countryId,
                                                                      boolean active,
                                                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                                               throws com.liferay.portal.SystemException,
                                                                      com.liferay.portal.NoSuchRegionException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchRegionException

findWithDynamicQuery

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

findWithDynamicQuery

public static 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 static java.util.List findAll()
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

findAll

public static 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

removeByCountryId

public static void removeByCountryId(long countryId)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByActive

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

removeByC_A

public static void removeByC_A(long countryId,
                               boolean active)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeAll

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

countByCountryId

public static int countByCountryId(long countryId)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByActive

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

countByC_A

public static int countByC_A(long countryId,
                             boolean active)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

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

getPersistence

public static RegionPersistence getPersistence()

setPersistence

public void setPersistence(RegionPersistence persistence)