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
- Author:
- Brian Wing Shun Chan
Method Summary |
static int |
countAll()
|
static int |
countByActive(boolean active)
|
static com.liferay.portal.model.Country |
create(long countryId)
|
static com.liferay.portal.model.Country |
fetchByPrimaryKey(long countryId)
|
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.Country |
findByActive_First(boolean active,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static com.liferay.portal.model.Country |
findByActive_Last(boolean active,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static com.liferay.portal.model.Country[] |
findByActive_PrevAndNext(long countryId,
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.Country |
findByPrimaryKey(long countryId)
|
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 CountryPersistence |
getPersistence()
|
static com.liferay.portal.model.Country |
remove(com.liferay.portal.model.Country country)
|
static com.liferay.portal.model.Country |
remove(long countryId)
|
static void |
removeAll()
|
static void |
removeByActive(boolean active)
|
void |
setPersistence(CountryPersistence persistence)
|
static com.liferay.portal.model.Country |
update(com.liferay.portal.model.Country country)
|
static com.liferay.portal.model.Country |
update(com.liferay.portal.model.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()
create
public static com.liferay.portal.model.Country create(long countryId)
remove
public static 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 static com.liferay.portal.model.Country remove(com.liferay.portal.model.Country country)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static com.liferay.portal.model.Country update(com.liferay.portal.model.Country country)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static 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 static 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 static com.liferay.portal.model.Country fetchByPrimaryKey(long countryId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
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.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 static 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 static 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 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
removeByActive
public static void removeByActive(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
countByActive
public static int countByActive(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 CountryPersistence getPersistence()
setPersistence
public void setPersistence(CountryPersistence persistence)