com.liferay.portal.service.persistence
Class CountryUtil
java.lang.Object
com.liferay.portal.service.persistence.CountryUtil
public class CountryUtil
- extends java.lang.Object
View Source
ServiceBuilder generated this class. Modifications in this class will be
overwritten the next time is generated.
- Author:
- Brian Wing Shun Chan
- See Also:
CountryPersistence
,
CountryPersistenceImpl
- Generated:
Method Summary |
static void |
cacheResult(Country country)
|
static void |
cacheResult(java.util.List<Country> countries)
|
static void |
clearCache()
|
static int |
countAll()
|
static int |
countByA2(java.lang.String a2)
|
static int |
countByA3(java.lang.String a3)
|
static int |
countByActive(boolean active)
|
static int |
countByName(java.lang.String name)
|
static Country |
create(long countryId)
|
static Country |
fetchByA2(java.lang.String a2)
|
static Country |
fetchByA2(java.lang.String a2,
boolean retrieveFromCache)
|
static Country |
fetchByA3(java.lang.String a3)
|
static Country |
fetchByA3(java.lang.String a3,
boolean retrieveFromCache)
|
static Country |
fetchByName(java.lang.String name)
|
static Country |
fetchByName(java.lang.String name,
boolean retrieveFromCache)
|
static Country |
fetchByPrimaryKey(long countryId)
|
static java.util.List<Country> |
findAll()
|
static java.util.List<Country> |
findAll(int start,
int end)
|
static java.util.List<Country> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static Country |
findByA2(java.lang.String a2)
|
static Country |
findByA3(java.lang.String a3)
|
static Country |
findByActive_First(boolean active,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static Country |
findByActive_Last(boolean active,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static Country[] |
findByActive_PrevAndNext(long countryId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<Country> |
findByActive(boolean active)
|
static java.util.List<Country> |
findByActive(boolean active,
int start,
int end)
|
static java.util.List<Country> |
findByActive(boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static Country |
findByName(java.lang.String name)
|
static Country |
findByPrimaryKey(long countryId)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
static CountryPersistence |
getPersistence()
|
static Country |
remove(Country country)
|
static Country |
remove(long countryId)
|
static void |
removeAll()
|
static void |
removeByA2(java.lang.String a2)
|
static void |
removeByA3(java.lang.String a3)
|
static void |
removeByActive(boolean active)
|
static void |
removeByName(java.lang.String name)
|
void |
setPersistence(CountryPersistence persistence)
|
static Country |
update(Country country,
boolean merge)
|
static Country |
updateImpl(Country country,
boolean merge)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CountryUtil
public CountryUtil()
clearCache
public static void clearCache()
- See Also:
BasePersistence.clearCache()
findWithDynamicQuery
public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
- See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)
findWithDynamicQuery
public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
- See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
remove
public static Country remove(Country country)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
- See Also:
BasePersistence.remove(com.liferay.portal.model.BaseModel)
update
public static Country update(Country country,
boolean merge)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
- See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
cacheResult
public static void cacheResult(Country country)
cacheResult
public static void cacheResult(java.util.List<Country> countries)
create
public static Country create(long countryId)
remove
public static Country remove(long countryId)
throws NoSuchCountryException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
NoSuchCountryException
com.liferay.portal.kernel.exception.SystemException
updateImpl
public static Country updateImpl(Country country,
boolean merge)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findByPrimaryKey
public static Country findByPrimaryKey(long countryId)
throws NoSuchCountryException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
NoSuchCountryException
com.liferay.portal.kernel.exception.SystemException
fetchByPrimaryKey
public static Country fetchByPrimaryKey(long countryId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findByName
public static Country findByName(java.lang.String name)
throws NoSuchCountryException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
NoSuchCountryException
com.liferay.portal.kernel.exception.SystemException
fetchByName
public static Country fetchByName(java.lang.String name)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
fetchByName
public static Country fetchByName(java.lang.String name,
boolean retrieveFromCache)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findByA2
public static Country findByA2(java.lang.String a2)
throws NoSuchCountryException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
NoSuchCountryException
com.liferay.portal.kernel.exception.SystemException
fetchByA2
public static Country fetchByA2(java.lang.String a2)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
fetchByA2
public static Country fetchByA2(java.lang.String a2,
boolean retrieveFromCache)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findByA3
public static Country findByA3(java.lang.String a3)
throws NoSuchCountryException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
NoSuchCountryException
com.liferay.portal.kernel.exception.SystemException
fetchByA3
public static Country fetchByA3(java.lang.String a3)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
fetchByA3
public static Country fetchByA3(java.lang.String a3,
boolean retrieveFromCache)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findByActive
public static java.util.List<Country> findByActive(boolean active)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findByActive
public static java.util.List<Country> findByActive(boolean active,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findByActive
public static java.util.List<Country> findByActive(boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findByActive_First
public static Country findByActive_First(boolean active,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchCountryException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
NoSuchCountryException
com.liferay.portal.kernel.exception.SystemException
findByActive_Last
public static Country findByActive_Last(boolean active,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchCountryException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
NoSuchCountryException
com.liferay.portal.kernel.exception.SystemException
findByActive_PrevAndNext
public static Country[] findByActive_PrevAndNext(long countryId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchCountryException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
NoSuchCountryException
com.liferay.portal.kernel.exception.SystemException
findAll
public static java.util.List<Country> findAll()
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findAll
public static java.util.List<Country> findAll(int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findAll
public static java.util.List<Country> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
removeByName
public static void removeByName(java.lang.String name)
throws NoSuchCountryException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
NoSuchCountryException
com.liferay.portal.kernel.exception.SystemException
removeByA2
public static void removeByA2(java.lang.String a2)
throws NoSuchCountryException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
NoSuchCountryException
com.liferay.portal.kernel.exception.SystemException
removeByA3
public static void removeByA3(java.lang.String a3)
throws NoSuchCountryException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
NoSuchCountryException
com.liferay.portal.kernel.exception.SystemException
removeByActive
public static void removeByActive(boolean active)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
removeAll
public static void removeAll()
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
countByName
public static int countByName(java.lang.String name)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
countByA2
public static int countByA2(java.lang.String a2)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
countByA3
public static int countByA3(java.lang.String a3)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
countByActive
public static int countByActive(boolean active)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
countAll
public static int countAll()
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getPersistence
public static CountryPersistence getPersistence()
setPersistence
public void setPersistence(CountryPersistence persistence)