|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.persistence.RegionUtil
public class RegionUtil
The persistence utility for the region service.
Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regnerate this class.
RegionPersistence,
RegionPersistenceImpl| Constructor Summary | |
|---|---|
RegionUtil()
|
|
| Method Summary | |
|---|---|
static void |
cacheResult(List<Region> regions)
Caches the regions in the entity cache if it is enabled. |
static void |
cacheResult(Region region)
Caches the region in the entity cache if it is enabled. |
static void |
clearCache()
|
static void |
clearCache(Region region)
|
static int |
countAll()
Counts all the regions. |
static int |
countByActive(boolean active)
Counts all the regions where active = ?. |
static int |
countByC_A(long countryId,
boolean active)
Counts all the regions where countryId = ? and active = ?. |
static int |
countByCountryId(long countryId)
Counts all the regions where countryId = ?. |
long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static Region |
create(long regionId)
Creates a new region with the primary key. |
static Region |
fetchByPrimaryKey(long regionId)
Finds the region with the primary key or returns null if it could not be found. |
static List<Region> |
findAll()
Finds all the regions. |
static List<Region> |
findAll(int start,
int end)
Finds a range of all the regions. |
static List<Region> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the regions. |
static Region |
findByActive_First(boolean active,
OrderByComparator orderByComparator)
Finds the first region in the ordered set where active = ?. |
static Region |
findByActive_Last(boolean active,
OrderByComparator orderByComparator)
Finds the last region in the ordered set where active = ?. |
static Region[] |
findByActive_PrevAndNext(long regionId,
boolean active,
OrderByComparator orderByComparator)
Finds the regions before and after the current region in the ordered set where active = ?. |
static List<Region> |
findByActive(boolean active)
Finds all the regions where active = ?. |
static List<Region> |
findByActive(boolean active,
int start,
int end)
Finds a range of all the regions where active = ?. |
static List<Region> |
findByActive(boolean active,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the regions where active = ?. |
static Region |
findByC_A_First(long countryId,
boolean active,
OrderByComparator orderByComparator)
Finds the first region in the ordered set where countryId = ? and active = ?. |
static Region |
findByC_A_Last(long countryId,
boolean active,
OrderByComparator orderByComparator)
Finds the last region in the ordered set where countryId = ? and active = ?. |
static Region[] |
findByC_A_PrevAndNext(long regionId,
long countryId,
boolean active,
OrderByComparator orderByComparator)
Finds the regions before and after the current region in the ordered set where countryId = ? and active = ?. |
static List<Region> |
findByC_A(long countryId,
boolean active)
Finds all the regions where countryId = ? and active = ?. |
static List<Region> |
findByC_A(long countryId,
boolean active,
int start,
int end)
Finds a range of all the regions where countryId = ? and active = ?. |
static List<Region> |
findByC_A(long countryId,
boolean active,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the regions where countryId = ? and active = ?. |
static Region |
findByCountryId_First(long countryId,
OrderByComparator orderByComparator)
Finds the first region in the ordered set where countryId = ?. |
static Region |
findByCountryId_Last(long countryId,
OrderByComparator orderByComparator)
Finds the last region in the ordered set where countryId = ?. |
static Region[] |
findByCountryId_PrevAndNext(long regionId,
long countryId,
OrderByComparator orderByComparator)
Finds the regions before and after the current region in the ordered set where countryId = ?. |
static List<Region> |
findByCountryId(long countryId)
Finds all the regions where countryId = ?. |
static List<Region> |
findByCountryId(long countryId,
int start,
int end)
Finds a range of all the regions where countryId = ?. |
static List<Region> |
findByCountryId(long countryId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the regions where countryId = ?. |
static Region |
findByPrimaryKey(long regionId)
Finds the region with the primary key or throws a NoSuchRegionException if it could not be found. |
static List<Region> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
|
static List<Region> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List<Region> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
static RegionPersistence |
getPersistence()
|
static Region |
remove(long regionId)
Removes the region with the primary key from the database. |
static Region |
remove(Region region)
|
static void |
removeAll()
Removes all the regions from the database. |
static void |
removeByActive(boolean active)
Removes all the regions where active = ? from the database. |
static void |
removeByC_A(long countryId,
boolean active)
Removes all the regions where countryId = ? and active = ? from the database. |
static void |
removeByCountryId(long countryId)
Removes all the regions where countryId = ? from the database. |
void |
setPersistence(RegionPersistence persistence)
|
static Region |
update(Region region,
boolean merge)
|
static Region |
update(Region region,
boolean merge,
ServiceContext serviceContext)
|
static Region |
updateImpl(Region region,
boolean merge)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RegionUtil()
| Method Detail |
|---|
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(Region region)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public long countWithDynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
SystemExceptionBasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<Region> findWithDynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<Region> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<Region> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static Region remove(Region region)
throws SystemException
SystemExceptionBasePersistence.remove(com.liferay.portal.model.BaseModel)
public static Region update(Region region,
boolean merge)
throws SystemException
SystemExceptionBasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
public static Region update(Region region,
boolean merge,
ServiceContext serviceContext)
throws SystemException
SystemExceptionBasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)public static void cacheResult(Region region)
region - the region to cachepublic static void cacheResult(List<Region> regions)
regions - the regions to cachepublic static Region create(long regionId)
regionId - the primary key for the new region
public static Region remove(long regionId)
throws NoSuchRegionException,
SystemException
regionId - the primary key of the region to remove
NoSuchRegionException - if a region with the primary key could not be found
SystemException - if a system exception occurred
public static Region updateImpl(Region region,
boolean merge)
throws SystemException
SystemException
public static Region findByPrimaryKey(long regionId)
throws NoSuchRegionException,
SystemException
NoSuchRegionException if it could not be found.
regionId - the primary key of the region to find
NoSuchRegionException - if a region with the primary key could not be found
SystemException - if a system exception occurred
public static Region fetchByPrimaryKey(long regionId)
throws SystemException
null if it could not be found.
regionId - the primary key of the region to find
null if a region with the primary key could not be found
SystemException - if a system exception occurred
public static List<Region> findByCountryId(long countryId)
throws SystemException
countryId - the country id to search with
SystemException - if a system exception occurred
public static List<Region> findByCountryId(long countryId,
int start,
int end)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
countryId - the country id to search withstart - the lower bound of the range of regions to returnend - the upper bound of the range of regions to return (not inclusive)
SystemException - if a system exception occurred
public static List<Region> findByCountryId(long countryId,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
countryId - the country id to search withstart - the lower bound of the range of regions to returnend - the upper bound of the range of regions to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public static Region findByCountryId_First(long countryId,
OrderByComparator orderByComparator)
throws NoSuchRegionException,
SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
countryId - the country id to search withorderByComparator - the comparator to order the set by
NoSuchRegionException - if a matching region could not be found
SystemException - if a system exception occurred
public static Region findByCountryId_Last(long countryId,
OrderByComparator orderByComparator)
throws NoSuchRegionException,
SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
countryId - the country id to search withorderByComparator - the comparator to order the set by
NoSuchRegionException - if a matching region could not be found
SystemException - if a system exception occurred
public static Region[] findByCountryId_PrevAndNext(long regionId,
long countryId,
OrderByComparator orderByComparator)
throws NoSuchRegionException,
SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
regionId - the primary key of the current regioncountryId - the country id to search withorderByComparator - the comparator to order the set by
NoSuchRegionException - if a region with the primary key could not be found
SystemException - if a system exception occurred
public static List<Region> findByActive(boolean active)
throws SystemException
active - the active to search with
SystemException - if a system exception occurred
public static List<Region> findByActive(boolean active,
int start,
int end)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
active - the active to search withstart - the lower bound of the range of regions to returnend - the upper bound of the range of regions to return (not inclusive)
SystemException - if a system exception occurred
public static List<Region> findByActive(boolean active,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
active - the active to search withstart - the lower bound of the range of regions to returnend - the upper bound of the range of regions to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public static Region findByActive_First(boolean active,
OrderByComparator orderByComparator)
throws NoSuchRegionException,
SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
active - the active to search withorderByComparator - the comparator to order the set by
NoSuchRegionException - if a matching region could not be found
SystemException - if a system exception occurred
public static Region findByActive_Last(boolean active,
OrderByComparator orderByComparator)
throws NoSuchRegionException,
SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
active - the active to search withorderByComparator - the comparator to order the set by
NoSuchRegionException - if a matching region could not be found
SystemException - if a system exception occurred
public static Region[] findByActive_PrevAndNext(long regionId,
boolean active,
OrderByComparator orderByComparator)
throws NoSuchRegionException,
SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
regionId - the primary key of the current regionactive - the active to search withorderByComparator - the comparator to order the set by
NoSuchRegionException - if a region with the primary key could not be found
SystemException - if a system exception occurred
public static List<Region> findByC_A(long countryId,
boolean active)
throws SystemException
countryId - the country id to search withactive - the active to search with
SystemException - if a system exception occurred
public static List<Region> findByC_A(long countryId,
boolean active,
int start,
int end)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
countryId - the country id to search withactive - the active to search withstart - the lower bound of the range of regions to returnend - the upper bound of the range of regions to return (not inclusive)
SystemException - if a system exception occurred
public static List<Region> findByC_A(long countryId,
boolean active,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
countryId - the country id to search withactive - the active to search withstart - the lower bound of the range of regions to returnend - the upper bound of the range of regions to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public static Region findByC_A_First(long countryId,
boolean active,
OrderByComparator orderByComparator)
throws NoSuchRegionException,
SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
countryId - the country id to search withactive - the active to search withorderByComparator - the comparator to order the set by
NoSuchRegionException - if a matching region could not be found
SystemException - if a system exception occurred
public static Region findByC_A_Last(long countryId,
boolean active,
OrderByComparator orderByComparator)
throws NoSuchRegionException,
SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
countryId - the country id to search withactive - the active to search withorderByComparator - the comparator to order the set by
NoSuchRegionException - if a matching region could not be found
SystemException - if a system exception occurred
public static Region[] findByC_A_PrevAndNext(long regionId,
long countryId,
boolean active,
OrderByComparator orderByComparator)
throws NoSuchRegionException,
SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
regionId - the primary key of the current regioncountryId - the country id to search withactive - the active to search withorderByComparator - the comparator to order the set by
NoSuchRegionException - if a region with the primary key could not be found
SystemException - if a system exception occurred
public static List<Region> findAll()
throws SystemException
SystemException - if a system exception occurred
public static List<Region> findAll(int start,
int end)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
start - the lower bound of the range of regions to returnend - the upper bound of the range of regions to return (not inclusive)
SystemException - if a system exception occurred
public static List<Region> findAll(int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
start - the lower bound of the range of regions to returnend - the upper bound of the range of regions to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public static void removeByCountryId(long countryId)
throws SystemException
countryId - the country id to search with
SystemException - if a system exception occurred
public static void removeByActive(boolean active)
throws SystemException
active - the active to search with
SystemException - if a system exception occurred
public static void removeByC_A(long countryId,
boolean active)
throws SystemException
countryId - the country id to search withactive - the active to search with
SystemException - if a system exception occurred
public static void removeAll()
throws SystemException
SystemException - if a system exception occurred
public static int countByCountryId(long countryId)
throws SystemException
countryId - the country id to search with
SystemException - if a system exception occurred
public static int countByActive(boolean active)
throws SystemException
active - the active to search with
SystemException - if a system exception occurred
public static int countByC_A(long countryId,
boolean active)
throws SystemException
countryId - the country id to search withactive - the active to search with
SystemException - if a system exception occurred
public static int countAll()
throws SystemException
SystemException - if a system exception occurredpublic static RegionPersistence getPersistence()
public void setPersistence(RegionPersistence persistence)
|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||