public class CountryPersistenceImpl
extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Country>
implements com.liferay.portal.service.persistence.CountryPersistence
Caching information and settings can be found in portal.properties
CountryPersistence,
CountryUtil| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FINDER_CLASS_NAME_ENTITY |
static java.lang.String |
FINDER_CLASS_NAME_LIST_WITH_PAGINATION |
static java.lang.String |
FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_ALL |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_A2 |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_A3 |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_ACTIVE |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_NAME |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_FETCH_BY_A2 |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_FETCH_BY_A3 |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_FETCH_BY_NAME |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_ALL |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_ACTIVE |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVE |
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR| Constructor and Description |
|---|
CountryPersistenceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Initializes the country persistence.
|
void |
cacheResult(com.liferay.portal.model.Country country)
Caches the country in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<com.liferay.portal.model.Country> countries)
Caches the countries in the entity cache if it is enabled.
|
protected void |
cacheUniqueFindersCache(com.liferay.portal.model.Country country) |
void |
clearCache()
Clears the cache for all countries.
|
void |
clearCache(com.liferay.portal.model.Country country)
Clears the cache for the country.
|
void |
clearCache(java.util.List<com.liferay.portal.model.Country> countries) |
protected void |
clearUniqueFindersCache(com.liferay.portal.model.Country country) |
int |
countAll()
Returns the number of countries.
|
int |
countByA2(java.lang.String a2)
Returns the number of countries where a2 = ?.
|
int |
countByA3(java.lang.String a3)
Returns the number of countries where a3 = ?.
|
int |
countByActive(boolean active)
Returns the number of countries where active = ?.
|
int |
countByName(java.lang.String name)
Returns the number of countries where name = ?.
|
com.liferay.portal.model.Country |
create(long countryId)
Creates a new country with the primary key.
|
void |
destroy() |
com.liferay.portal.model.Country |
fetchByA2(java.lang.String a2)
Returns the country where a2 = ? or returns
null if it could not be found. |
com.liferay.portal.model.Country |
fetchByA2(java.lang.String a2,
boolean retrieveFromCache)
Returns the country where a2 = ? or returns
null if it could not be found, optionally using the finder cache. |
com.liferay.portal.model.Country |
fetchByA3(java.lang.String a3)
Returns the country where a3 = ? or returns
null if it could not be found. |
com.liferay.portal.model.Country |
fetchByA3(java.lang.String a3,
boolean retrieveFromCache)
Returns the country where a3 = ? or returns
null if it could not be found, optionally using the finder cache. |
com.liferay.portal.model.Country |
fetchByActive_First(boolean active,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first country in the ordered set where active = ?.
|
com.liferay.portal.model.Country |
fetchByActive_Last(boolean active,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last country in the ordered set where active = ?.
|
com.liferay.portal.model.Country |
fetchByName(java.lang.String name)
Returns the country where name = ? or returns
null if it could not be found. |
com.liferay.portal.model.Country |
fetchByName(java.lang.String name,
boolean retrieveFromCache)
Returns the country where name = ? or returns
null if it could not be found, optionally using the finder cache. |
com.liferay.portal.model.Country |
fetchByPrimaryKey(long countryId)
Returns the country with the primary key or returns
null if it could not be found. |
com.liferay.portal.model.Country |
fetchByPrimaryKey(java.io.Serializable primaryKey)
Returns the country with the primary key or returns
null if it could not be found. |
java.util.List<com.liferay.portal.model.Country> |
findAll()
Returns all the countries.
|
java.util.List<com.liferay.portal.model.Country> |
findAll(int start,
int end)
Returns a range of all the countries.
|
java.util.List<com.liferay.portal.model.Country> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the countries.
|
com.liferay.portal.model.Country |
findByA2(java.lang.String a2)
Returns the country where a2 = ? or throws a
NoSuchCountryException if it could not be found. |
com.liferay.portal.model.Country |
findByA3(java.lang.String a3)
Returns the country where a3 = ? or throws a
NoSuchCountryException if it could not be found. |
com.liferay.portal.model.Country |
findByActive_First(boolean active,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first country in the ordered set where active = ?.
|
com.liferay.portal.model.Country |
findByActive_Last(boolean active,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last country in the ordered set where active = ?.
|
com.liferay.portal.model.Country[] |
findByActive_PrevAndNext(long countryId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the countries before and after the current country in the ordered set where active = ?.
|
java.util.List<com.liferay.portal.model.Country> |
findByActive(boolean active)
Returns all the countries where active = ?.
|
java.util.List<com.liferay.portal.model.Country> |
findByActive(boolean active,
int start,
int end)
Returns a range of all the countries where active = ?.
|
java.util.List<com.liferay.portal.model.Country> |
findByActive(boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the countries where active = ?.
|
com.liferay.portal.model.Country |
findByName(java.lang.String name)
Returns the country where name = ? or throws a
NoSuchCountryException if it could not be found. |
com.liferay.portal.model.Country |
findByPrimaryKey(long countryId)
Returns the country with the primary key or throws a
NoSuchCountryException if it could not be found. |
com.liferay.portal.model.Country |
findByPrimaryKey(java.io.Serializable primaryKey)
Returns the country with the primary key or throws a
NoSuchModelException if it could not be found. |
protected java.util.Set<java.lang.String> |
getBadColumnNames() |
protected com.liferay.portal.model.Country |
getByActive_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portal.model.Country country,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous) |
com.liferay.portal.model.Country |
remove(long countryId)
Removes the country with the primary key from the database.
|
com.liferay.portal.model.Country |
remove(java.io.Serializable primaryKey)
Removes the country with the primary key from the database.
|
void |
removeAll()
Removes all the countries from the database.
|
com.liferay.portal.model.Country |
removeByA2(java.lang.String a2)
Removes the country where a2 = ? from the database.
|
com.liferay.portal.model.Country |
removeByA3(java.lang.String a3)
Removes the country where a3 = ? from the database.
|
void |
removeByActive(boolean active)
Removes all the countries where active = ? from the database.
|
com.liferay.portal.model.Country |
removeByName(java.lang.String name)
Removes the country where name = ? from the database.
|
protected com.liferay.portal.model.Country |
removeImpl(com.liferay.portal.model.Country country) |
protected com.liferay.portal.model.Country |
toUnwrappedModel(com.liferay.portal.model.Country country) |
com.liferay.portal.model.Country |
updateImpl(com.liferay.portal.model.Country country) |
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImplclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, updatepublic static final java.lang.String FINDER_CLASS_NAME_ENTITY
public static final java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_NAME
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_NAME
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_A2
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_A2
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_A3
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_A3
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_ACTIVE
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVE
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_ACTIVE
public com.liferay.portal.model.Country findByName(java.lang.String name)
throws com.liferay.portal.NoSuchCountryException,
com.liferay.portal.kernel.exception.SystemException
NoSuchCountryException if it could not be found.findByName in interface com.liferay.portal.service.persistence.CountryPersistencename - the namecom.liferay.portal.NoSuchCountryException - if a matching country could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.Country fetchByName(java.lang.String name)
throws com.liferay.portal.kernel.exception.SystemException
null if it could not be found. Uses the finder cache.fetchByName in interface com.liferay.portal.service.persistence.CountryPersistencename - the namenull if a matching country could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.Country fetchByName(java.lang.String name,
boolean retrieveFromCache)
throws com.liferay.portal.kernel.exception.SystemException
null if it could not be found, optionally using the finder cache.fetchByName in interface com.liferay.portal.service.persistence.CountryPersistencename - the nameretrieveFromCache - whether to use the finder cachenull if a matching country could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.Country removeByName(java.lang.String name)
throws com.liferay.portal.NoSuchCountryException,
com.liferay.portal.kernel.exception.SystemException
removeByName in interface com.liferay.portal.service.persistence.CountryPersistencename - the namecom.liferay.portal.kernel.exception.SystemException - if a system exception occurredcom.liferay.portal.NoSuchCountryExceptionpublic int countByName(java.lang.String name)
throws com.liferay.portal.kernel.exception.SystemException
countByName in interface com.liferay.portal.service.persistence.CountryPersistencename - the namecom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.Country findByA2(java.lang.String a2)
throws com.liferay.portal.NoSuchCountryException,
com.liferay.portal.kernel.exception.SystemException
NoSuchCountryException if it could not be found.findByA2 in interface com.liferay.portal.service.persistence.CountryPersistencea2 - the a2com.liferay.portal.NoSuchCountryException - if a matching country could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.Country fetchByA2(java.lang.String a2)
throws com.liferay.portal.kernel.exception.SystemException
null if it could not be found. Uses the finder cache.fetchByA2 in interface com.liferay.portal.service.persistence.CountryPersistencea2 - the a2null if a matching country could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.Country fetchByA2(java.lang.String a2,
boolean retrieveFromCache)
throws com.liferay.portal.kernel.exception.SystemException
null if it could not be found, optionally using the finder cache.fetchByA2 in interface com.liferay.portal.service.persistence.CountryPersistencea2 - the a2retrieveFromCache - whether to use the finder cachenull if a matching country could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.Country removeByA2(java.lang.String a2)
throws com.liferay.portal.NoSuchCountryException,
com.liferay.portal.kernel.exception.SystemException
removeByA2 in interface com.liferay.portal.service.persistence.CountryPersistencea2 - the a2com.liferay.portal.kernel.exception.SystemException - if a system exception occurredcom.liferay.portal.NoSuchCountryExceptionpublic int countByA2(java.lang.String a2)
throws com.liferay.portal.kernel.exception.SystemException
countByA2 in interface com.liferay.portal.service.persistence.CountryPersistencea2 - the a2com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.Country findByA3(java.lang.String a3)
throws com.liferay.portal.NoSuchCountryException,
com.liferay.portal.kernel.exception.SystemException
NoSuchCountryException if it could not be found.findByA3 in interface com.liferay.portal.service.persistence.CountryPersistencea3 - the a3com.liferay.portal.NoSuchCountryException - if a matching country could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.Country fetchByA3(java.lang.String a3)
throws com.liferay.portal.kernel.exception.SystemException
null if it could not be found. Uses the finder cache.fetchByA3 in interface com.liferay.portal.service.persistence.CountryPersistencea3 - the a3null if a matching country could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.Country fetchByA3(java.lang.String a3,
boolean retrieveFromCache)
throws com.liferay.portal.kernel.exception.SystemException
null if it could not be found, optionally using the finder cache.fetchByA3 in interface com.liferay.portal.service.persistence.CountryPersistencea3 - the a3retrieveFromCache - whether to use the finder cachenull if a matching country could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.Country removeByA3(java.lang.String a3)
throws com.liferay.portal.NoSuchCountryException,
com.liferay.portal.kernel.exception.SystemException
removeByA3 in interface com.liferay.portal.service.persistence.CountryPersistencea3 - the a3com.liferay.portal.kernel.exception.SystemException - if a system exception occurredcom.liferay.portal.NoSuchCountryExceptionpublic int countByA3(java.lang.String a3)
throws com.liferay.portal.kernel.exception.SystemException
countByA3 in interface com.liferay.portal.service.persistence.CountryPersistencea3 - the a3com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portal.model.Country> findByActive(boolean active)
throws com.liferay.portal.kernel.exception.SystemException
findByActive in interface com.liferay.portal.service.persistence.CountryPersistenceactive - the activecom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portal.model.Country> findByActive(boolean active,
int start,
int end)
throws com.liferay.portal.kernel.exception.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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from CountryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByActive in interface com.liferay.portal.service.persistence.CountryPersistenceactive - the activestart - the lower bound of the range of countriesend - the upper bound of the range of countries (not inclusive)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portal.model.Country> findByActive(boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from CountryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByActive in interface com.liferay.portal.service.persistence.CountryPersistenceactive - the activestart - the lower bound of the range of countriesend - the upper bound of the range of countries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.Country findByActive_First(boolean active,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.NoSuchCountryException,
com.liferay.portal.kernel.exception.SystemException
findByActive_First in interface com.liferay.portal.service.persistence.CountryPersistenceactive - the activeorderByComparator - the comparator to order the set by (optionally null)com.liferay.portal.NoSuchCountryException - if a matching country could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.Country fetchByActive_First(boolean active,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
fetchByActive_First in interface com.liferay.portal.service.persistence.CountryPersistenceactive - the activeorderByComparator - the comparator to order the set by (optionally null)null if a matching country could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.Country findByActive_Last(boolean active,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.NoSuchCountryException,
com.liferay.portal.kernel.exception.SystemException
findByActive_Last in interface com.liferay.portal.service.persistence.CountryPersistenceactive - the activeorderByComparator - the comparator to order the set by (optionally null)com.liferay.portal.NoSuchCountryException - if a matching country could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.Country fetchByActive_Last(boolean active,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
fetchByActive_Last in interface com.liferay.portal.service.persistence.CountryPersistenceactive - the activeorderByComparator - the comparator to order the set by (optionally null)null if a matching country could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.Country[] findByActive_PrevAndNext(long countryId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.NoSuchCountryException,
com.liferay.portal.kernel.exception.SystemException
findByActive_PrevAndNext in interface com.liferay.portal.service.persistence.CountryPersistencecountryId - the primary key of the current countryactive - the activeorderByComparator - the comparator to order the set by (optionally null)com.liferay.portal.NoSuchCountryException - if a country with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredprotected com.liferay.portal.model.Country getByActive_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portal.model.Country country,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
public void removeByActive(boolean active)
throws com.liferay.portal.kernel.exception.SystemException
removeByActive in interface com.liferay.portal.service.persistence.CountryPersistenceactive - the activecom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic int countByActive(boolean active)
throws com.liferay.portal.kernel.exception.SystemException
countByActive in interface com.liferay.portal.service.persistence.CountryPersistenceactive - the activecom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void cacheResult(com.liferay.portal.model.Country country)
cacheResult in interface com.liferay.portal.service.persistence.CountryPersistencecountry - the countrypublic void cacheResult(java.util.List<com.liferay.portal.model.Country> countries)
cacheResult in interface com.liferay.portal.service.persistence.CountryPersistencecountries - the countriespublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.Country>clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Country>public void clearCache(com.liferay.portal.model.Country country)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.Country>clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Country>public void clearCache(java.util.List<com.liferay.portal.model.Country> countries)
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.Country>clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Country>protected void cacheUniqueFindersCache(com.liferay.portal.model.Country country)
protected void clearUniqueFindersCache(com.liferay.portal.model.Country country)
public com.liferay.portal.model.Country create(long countryId)
create in interface com.liferay.portal.service.persistence.CountryPersistencecountryId - the primary key for the new countrypublic com.liferay.portal.model.Country remove(long countryId)
throws com.liferay.portal.NoSuchCountryException,
com.liferay.portal.kernel.exception.SystemException
remove in interface com.liferay.portal.service.persistence.CountryPersistencecountryId - the primary key of the countrycom.liferay.portal.NoSuchCountryException - if a country with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.Country remove(java.io.Serializable primaryKey)
throws com.liferay.portal.NoSuchCountryException,
com.liferay.portal.kernel.exception.SystemException
remove in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.Country>remove in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Country>primaryKey - the primary key of the countrycom.liferay.portal.NoSuchCountryException - if a country with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredprotected com.liferay.portal.model.Country removeImpl(com.liferay.portal.model.Country country)
throws com.liferay.portal.kernel.exception.SystemException
removeImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Country>com.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portal.model.Country updateImpl(com.liferay.portal.model.Country country)
throws com.liferay.portal.kernel.exception.SystemException
updateImpl in interface com.liferay.portal.service.persistence.CountryPersistenceupdateImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Country>com.liferay.portal.kernel.exception.SystemExceptionprotected com.liferay.portal.model.Country toUnwrappedModel(com.liferay.portal.model.Country country)
public com.liferay.portal.model.Country findByPrimaryKey(java.io.Serializable primaryKey)
throws com.liferay.portal.NoSuchCountryException,
com.liferay.portal.kernel.exception.SystemException
NoSuchModelException if it could not be found.findByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.Country>findByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Country>primaryKey - the primary key of the countrycom.liferay.portal.NoSuchCountryException - if a country with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.Country findByPrimaryKey(long countryId)
throws com.liferay.portal.NoSuchCountryException,
com.liferay.portal.kernel.exception.SystemException
NoSuchCountryException if it could not be found.findByPrimaryKey in interface com.liferay.portal.service.persistence.CountryPersistencecountryId - the primary key of the countrycom.liferay.portal.NoSuchCountryException - if a country with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.Country fetchByPrimaryKey(java.io.Serializable primaryKey)
throws com.liferay.portal.kernel.exception.SystemException
null if it could not be found.fetchByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.Country>fetchByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Country>primaryKey - the primary key of the countrynull if a country with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.Country fetchByPrimaryKey(long countryId)
throws com.liferay.portal.kernel.exception.SystemException
null if it could not be found.fetchByPrimaryKey in interface com.liferay.portal.service.persistence.CountryPersistencecountryId - the primary key of the countrynull if a country with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portal.model.Country> findAll()
throws com.liferay.portal.kernel.exception.SystemException
findAll in interface com.liferay.portal.service.persistence.CountryPersistencecom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portal.model.Country> findAll(int start,
int end)
throws com.liferay.portal.kernel.exception.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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from CountryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findAll in interface com.liferay.portal.service.persistence.CountryPersistencestart - the lower bound of the range of countriesend - the upper bound of the range of countries (not inclusive)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portal.model.Country> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from CountryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findAll in interface com.liferay.portal.service.persistence.CountryPersistencestart - the lower bound of the range of countriesend - the upper bound of the range of countries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void removeAll()
throws com.liferay.portal.kernel.exception.SystemException
removeAll in interface com.liferay.portal.service.persistence.CountryPersistencecom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic int countAll()
throws com.liferay.portal.kernel.exception.SystemException
countAll in interface com.liferay.portal.service.persistence.CountryPersistencecom.liferay.portal.kernel.exception.SystemException - if a system exception occurredprotected java.util.Set<java.lang.String> getBadColumnNames()
getBadColumnNames in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Country>public void afterPropertiesSet()
public void destroy()