com.liferay.portal.service.persistence
Interface CountryPersistence
- All Superinterfaces:
- BasePersistence
@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface CountryPersistence
- extends BasePersistence
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
int |
countAll()
|
int |
countByA2(java.lang.String a2)
|
int |
countByA3(java.lang.String a3)
|
int |
countByActive(boolean active)
|
int |
countByName(java.lang.String name)
|
Country |
create(long countryId)
|
Country |
fetchByA2(java.lang.String a2)
|
Country |
fetchByA3(java.lang.String a3)
|
Country |
fetchByName(java.lang.String name)
|
Country |
fetchByPrimaryKey(long countryId)
|
java.util.List<Country> |
findAll()
|
java.util.List<Country> |
findAll(int start,
int end)
|
java.util.List<Country> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
Country |
findByA2(java.lang.String a2)
|
Country |
findByA3(java.lang.String a3)
|
Country |
findByActive_First(boolean active,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
Country |
findByActive_Last(boolean active,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
Country[] |
findByActive_PrevAndNext(long countryId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List<Country> |
findByActive(boolean active)
|
java.util.List<Country> |
findByActive(boolean active,
int start,
int end)
|
java.util.List<Country> |
findByActive(boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
Country |
findByName(java.lang.String name)
|
Country |
findByPrimaryKey(long countryId)
|
java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
Country |
remove(Country country)
|
Country |
remove(long countryId)
|
void |
removeAll()
|
void |
removeByA2(java.lang.String a2)
|
void |
removeByA3(java.lang.String a3)
|
void |
removeByActive(boolean active)
|
void |
removeByName(java.lang.String name)
|
Country |
update(Country country)
Deprecated. Use update(Country country, boolean merge) . |
Country |
update(Country country,
boolean merge)
Add, update, or merge, the entity. |
Country |
updateImpl(Country country,
boolean merge)
|
create
Country create(long countryId)
remove
Country remove(long countryId)
throws NoSuchCountryException,
com.liferay.portal.SystemException
- Throws:
NoSuchCountryException
com.liferay.portal.SystemException
remove
Country remove(Country country)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
Country update(Country country)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(Country country, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
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
Country updateImpl(Country country,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
@Transactional(propagation=SUPPORTS,
readOnly=true)
Country findByPrimaryKey(long countryId)
throws NoSuchCountryException,
com.liferay.portal.SystemException
- Throws:
NoSuchCountryException
com.liferay.portal.SystemException
fetchByPrimaryKey
Country fetchByPrimaryKey(long countryId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByName
@Transactional(propagation=SUPPORTS,
readOnly=true)
Country findByName(java.lang.String name)
throws NoSuchCountryException,
com.liferay.portal.SystemException
- Throws:
NoSuchCountryException
com.liferay.portal.SystemException
fetchByName
Country fetchByName(java.lang.String name)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByA2
@Transactional(propagation=SUPPORTS,
readOnly=true)
Country findByA2(java.lang.String a2)
throws NoSuchCountryException,
com.liferay.portal.SystemException
- Throws:
NoSuchCountryException
com.liferay.portal.SystemException
fetchByA2
Country fetchByA2(java.lang.String a2)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByA3
@Transactional(propagation=SUPPORTS,
readOnly=true)
Country findByA3(java.lang.String a3)
throws NoSuchCountryException,
com.liferay.portal.SystemException
- Throws:
NoSuchCountryException
com.liferay.portal.SystemException
fetchByA3
Country fetchByA3(java.lang.String a3)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByActive
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Country> findByActive(boolean active)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByActive
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Country> findByActive(boolean active,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByActive
@Transactional(propagation=SUPPORTS,
readOnly=true)
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
@Transactional(propagation=SUPPORTS,
readOnly=true)
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
@Transactional(propagation=SUPPORTS,
readOnly=true)
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
@Transactional(propagation=SUPPORTS,
readOnly=true)
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
@Transactional(propagation=SUPPORTS,
readOnly=true)
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
@Transactional(propagation=SUPPORTS,
readOnly=true)
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
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Country> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Country> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
@Transactional(propagation=SUPPORTS,
readOnly=true)
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
removeByName
void removeByName(java.lang.String name)
throws NoSuchCountryException,
com.liferay.portal.SystemException
- Throws:
NoSuchCountryException
com.liferay.portal.SystemException
removeByA2
void removeByA2(java.lang.String a2)
throws NoSuchCountryException,
com.liferay.portal.SystemException
- Throws:
NoSuchCountryException
com.liferay.portal.SystemException
removeByA3
void removeByA3(java.lang.String a3)
throws NoSuchCountryException,
com.liferay.portal.SystemException
- Throws:
NoSuchCountryException
com.liferay.portal.SystemException
removeByActive
void removeByActive(boolean active)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeAll
void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByName
@Transactional(propagation=SUPPORTS,
readOnly=true)
int countByName(java.lang.String name)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByA2
@Transactional(propagation=SUPPORTS,
readOnly=true)
int countByA2(java.lang.String a2)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByA3
@Transactional(propagation=SUPPORTS,
readOnly=true)
int countByA3(java.lang.String a3)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByActive
@Transactional(propagation=SUPPORTS,
readOnly=true)
int countByActive(boolean active)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countAll
@Transactional(propagation=SUPPORTS,
readOnly=true)
int countAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException