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 Country |
create(long countryId)
|
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 |
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 |
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 void |
registerListener(ModelListener listener)
|
static Country |
remove(Country country)
|
static Country |
remove(long countryId)
|
static void |
removeAll()
|
static void |
removeByActive(boolean active)
|
void |
setPersistence(CountryPersistence persistence)
|
static void |
unregisterListener(ModelListener listener)
|
static Country |
update(Country country)
Deprecated. Use update(Country country, boolean merge). |
static Country |
update(Country country,
boolean merge)
Add, update, or merge, the entity. |
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()
create
public static Country create(long countryId)
remove
public static Country remove(long countryId)
throws NoSuchCountryException,
com.liferay.portal.SystemException
- Throws:
NoSuchCountryException
com.liferay.portal.SystemException
remove
public static Country remove(Country country)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static Country update(Country country)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(Country country, boolean merge).
- Throws:
com.liferay.portal.SystemException
update
public static Country update(Country country,
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:
country - the entity to add, update, or mergemerge - 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 country 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
public static Country updateImpl(Country country,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public static Country findByPrimaryKey(long countryId)
throws NoSuchCountryException,
com.liferay.portal.SystemException
- Throws:
NoSuchCountryException
com.liferay.portal.SystemException
fetchByPrimaryKey
public static Country fetchByPrimaryKey(long countryId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByActive
public static java.util.List<Country> findByActive(boolean active)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByActive
public static java.util.List<Country> findByActive(boolean active,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.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.SystemException
- Throws:
com.liferay.portal.SystemException
findByActive_First
public static Country findByActive_First(boolean active,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchCountryException,
com.liferay.portal.SystemException
- Throws:
NoSuchCountryException
com.liferay.portal.SystemException
findByActive_Last
public static Country findByActive_Last(boolean active,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchCountryException,
com.liferay.portal.SystemException
- Throws:
NoSuchCountryException
com.liferay.portal.SystemException
findByActive_PrevAndNext
public static Country[] findByActive_PrevAndNext(long countryId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchCountryException,
com.liferay.portal.SystemException
- Throws:
NoSuchCountryException
com.liferay.portal.SystemException
findWithDynamicQuery
public static 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
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.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<Country> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<Country> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<Country> findAll(int start,
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
registerListener
public static void registerListener(ModelListener listener)
unregisterListener
public static void unregisterListener(ModelListener listener)
getPersistence
public static CountryPersistence getPersistence()
setPersistence
public void setPersistence(CountryPersistence persistence)