public class CountryPersistenceImpl
extends com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Country>
implements com.liferay.portal.kernel.service.persistence.CountryPersistence
Caching information and settings can be found in portal.properties
| Modifier and Type | Field and Description |
|---|---|
static String |
FINDER_CLASS_NAME_ENTITY
NOTE FOR DEVELOPERS:
Never modify or reference this class directly.
|
static String |
FINDER_CLASS_NAME_LIST_WITH_PAGINATION |
static String |
FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION |
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, databaseInMaxParameters, dbColumnNames, entityCacheEnabled, FINDER_ARGS_EMPTY, finderCacheEnabled, NULL_SAFE_STRING_COMPARATOR, nullModel, 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.kernel.model.Country country)
Caches the country in the entity cache if it is enabled.
|
void |
cacheResult(List<com.liferay.portal.kernel.model.Country> countries)
Caches the countries in the entity cache if it is enabled.
|
protected void |
cacheUniqueFindersCache(CountryModelImpl countryModelImpl) |
void |
clearCache()
Clears the cache for all countries.
|
void |
clearCache(com.liferay.portal.kernel.model.Country country)
Clears the cache for the country.
|
void |
clearCache(List<com.liferay.portal.kernel.model.Country> countries) |
protected void |
clearUniqueFindersCache(CountryModelImpl countryModelImpl,
boolean clearCurrent) |
int |
countAll()
Returns the number of countries.
|
int |
countByA2(String a2)
Returns the number of countries where a2 = ?.
|
int |
countByA3(String a3)
Returns the number of countries where a3 = ?.
|
int |
countByActive(boolean active)
Returns the number of countries where active = ?.
|
int |
countByName(String name)
Returns the number of countries where name = ?.
|
com.liferay.portal.kernel.model.Country |
create(long countryId)
Creates a new country with the primary key.
|
void |
destroy() |
com.liferay.portal.kernel.model.Country |
fetchByA2(String a2)
Returns the country where a2 = ? or returns
null if it could not be found. |
com.liferay.portal.kernel.model.Country |
fetchByA2(String a2,
boolean useFinderCache)
Returns the country where a2 = ? or returns
null if it could not be found, optionally using the finder cache. |
com.liferay.portal.kernel.model.Country |
fetchByA3(String a3)
Returns the country where a3 = ? or returns
null if it could not be found. |
com.liferay.portal.kernel.model.Country |
fetchByA3(String a3,
boolean useFinderCache)
Returns the country where a3 = ? or returns
null if it could not be found, optionally using the finder cache. |
com.liferay.portal.kernel.model.Country |
fetchByActive_First(boolean active,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Country> orderByComparator)
Returns the first country in the ordered set where active = ?.
|
com.liferay.portal.kernel.model.Country |
fetchByActive_Last(boolean active,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Country> orderByComparator)
Returns the last country in the ordered set where active = ?.
|
com.liferay.portal.kernel.model.Country |
fetchByName(String name)
Returns the country where name = ? or returns
null if it could not be found. |
com.liferay.portal.kernel.model.Country |
fetchByName(String name,
boolean useFinderCache)
Returns the country where name = ? or returns
null if it could not be found, optionally using the finder cache. |
com.liferay.portal.kernel.model.Country |
fetchByPrimaryKey(long countryId)
Returns the country with the primary key or returns
null if it could not be found. |
List<com.liferay.portal.kernel.model.Country> |
findAll()
Returns all the countries.
|
List<com.liferay.portal.kernel.model.Country> |
findAll(int start,
int end)
Returns a range of all the countries.
|
List<com.liferay.portal.kernel.model.Country> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Country> orderByComparator)
Returns an ordered range of all the countries.
|
List<com.liferay.portal.kernel.model.Country> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Country> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the countries.
|
com.liferay.portal.kernel.model.Country |
findByA2(String a2)
Returns the country where a2 = ? or throws a
NoSuchCountryException if it could not be found. |
com.liferay.portal.kernel.model.Country |
findByA3(String a3)
Returns the country where a3 = ? or throws a
NoSuchCountryException if it could not be found. |
com.liferay.portal.kernel.model.Country |
findByActive_First(boolean active,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Country> orderByComparator)
Returns the first country in the ordered set where active = ?.
|
com.liferay.portal.kernel.model.Country |
findByActive_Last(boolean active,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Country> orderByComparator)
Returns the last country in the ordered set where active = ?.
|
com.liferay.portal.kernel.model.Country[] |
findByActive_PrevAndNext(long countryId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Country> orderByComparator)
Returns the countries before and after the current country in the ordered set where active = ?.
|
List<com.liferay.portal.kernel.model.Country> |
findByActive(boolean active)
Returns all the countries where active = ?.
|
List<com.liferay.portal.kernel.model.Country> |
findByActive(boolean active,
int start,
int end)
Returns a range of all the countries where active = ?.
|
List<com.liferay.portal.kernel.model.Country> |
findByActive(boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Country> orderByComparator)
Returns an ordered range of all the countries where active = ?.
|
List<com.liferay.portal.kernel.model.Country> |
findByActive(boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Country> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the countries where active = ?.
|
com.liferay.portal.kernel.model.Country |
findByName(String name)
Returns the country where name = ? or throws a
NoSuchCountryException if it could not be found. |
com.liferay.portal.kernel.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.kernel.model.Country |
findByPrimaryKey(Serializable primaryKey)
Returns the country with the primary key or throws a
com.liferay.portal.kernel.exception.NoSuchModelException if it could not be found. |
Set<String> |
getBadColumnNames() |
protected com.liferay.portal.kernel.model.Country |
getByActive_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portal.kernel.model.Country country,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Country> orderByComparator,
boolean previous) |
protected com.liferay.portal.kernel.dao.orm.EntityCache |
getEntityCache() |
protected String |
getPKDBName() |
protected String |
getSelectSQL() |
protected Map<String,Integer> |
getTableColumnsMap() |
com.liferay.portal.kernel.model.Country |
remove(long countryId)
Removes the country with the primary key from the database.
|
com.liferay.portal.kernel.model.Country |
remove(Serializable primaryKey)
Removes the country with the primary key from the database.
|
void |
removeAll()
Removes all the countries from the database.
|
com.liferay.portal.kernel.model.Country |
removeByA2(String a2)
Removes the country where a2 = ? from the database.
|
com.liferay.portal.kernel.model.Country |
removeByA3(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.kernel.model.Country |
removeByName(String name)
Removes the country where name = ? from the database.
|
protected com.liferay.portal.kernel.model.Country |
removeImpl(com.liferay.portal.kernel.model.Country country) |
com.liferay.portal.kernel.model.Country |
updateImpl(com.liferay.portal.kernel.model.Country country) |
appendOrderByComparator, appendOrderByComparator, appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, fetchByPrimaryKeys, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCompoundPKColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setConfiguration, setDataSource, setDBColumnNames, setEntityCacheEnabled, setModelClass, setModelImplClass, setModelPKClass, setSessionFactory, unregisterListener, update, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, fetchByPrimaryKeys, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, updatepublic static final String FINDER_CLASS_NAME_ENTITY
CountryUtil to access the country persistence. Modify service.xml and rerun ServiceBuilder to regenerate this class.public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public com.liferay.portal.kernel.model.Country findByName(String name)
throws com.liferay.portal.kernel.exception.NoSuchCountryException
NoSuchCountryException if it could not be found.findByName in interface com.liferay.portal.kernel.service.persistence.CountryPersistencename - the namecom.liferay.portal.kernel.exception.NoSuchCountryException - if a matching country could not be foundpublic com.liferay.portal.kernel.model.Country fetchByName(String name)
null if it could not be found. Uses the finder cache.fetchByName in interface com.liferay.portal.kernel.service.persistence.CountryPersistencename - the namenull if a matching country could not be foundpublic com.liferay.portal.kernel.model.Country fetchByName(String name,
boolean useFinderCache)
null if it could not be found, optionally using the finder cache.fetchByName in interface com.liferay.portal.kernel.service.persistence.CountryPersistencename - the nameuseFinderCache - whether to use the finder cachenull if a matching country could not be foundpublic com.liferay.portal.kernel.model.Country removeByName(String name)
throws com.liferay.portal.kernel.exception.NoSuchCountryException
removeByName in interface com.liferay.portal.kernel.service.persistence.CountryPersistencename - the namecom.liferay.portal.kernel.exception.NoSuchCountryExceptionpublic int countByName(String name)
countByName in interface com.liferay.portal.kernel.service.persistence.CountryPersistencename - the namepublic com.liferay.portal.kernel.model.Country findByA2(String a2)
throws com.liferay.portal.kernel.exception.NoSuchCountryException
NoSuchCountryException if it could not be found.findByA2 in interface com.liferay.portal.kernel.service.persistence.CountryPersistencea2 - the a2com.liferay.portal.kernel.exception.NoSuchCountryException - if a matching country could not be foundpublic com.liferay.portal.kernel.model.Country fetchByA2(String a2)
null if it could not be found. Uses the finder cache.fetchByA2 in interface com.liferay.portal.kernel.service.persistence.CountryPersistencea2 - the a2null if a matching country could not be foundpublic com.liferay.portal.kernel.model.Country fetchByA2(String a2,
boolean useFinderCache)
null if it could not be found, optionally using the finder cache.fetchByA2 in interface com.liferay.portal.kernel.service.persistence.CountryPersistencea2 - the a2useFinderCache - whether to use the finder cachenull if a matching country could not be foundpublic com.liferay.portal.kernel.model.Country removeByA2(String a2)
throws com.liferay.portal.kernel.exception.NoSuchCountryException
removeByA2 in interface com.liferay.portal.kernel.service.persistence.CountryPersistencea2 - the a2com.liferay.portal.kernel.exception.NoSuchCountryExceptionpublic int countByA2(String a2)
countByA2 in interface com.liferay.portal.kernel.service.persistence.CountryPersistencea2 - the a2public com.liferay.portal.kernel.model.Country findByA3(String a3)
throws com.liferay.portal.kernel.exception.NoSuchCountryException
NoSuchCountryException if it could not be found.findByA3 in interface com.liferay.portal.kernel.service.persistence.CountryPersistencea3 - the a3com.liferay.portal.kernel.exception.NoSuchCountryException - if a matching country could not be foundpublic com.liferay.portal.kernel.model.Country fetchByA3(String a3)
null if it could not be found. Uses the finder cache.fetchByA3 in interface com.liferay.portal.kernel.service.persistence.CountryPersistencea3 - the a3null if a matching country could not be foundpublic com.liferay.portal.kernel.model.Country fetchByA3(String a3,
boolean useFinderCache)
null if it could not be found, optionally using the finder cache.fetchByA3 in interface com.liferay.portal.kernel.service.persistence.CountryPersistencea3 - the a3useFinderCache - whether to use the finder cachenull if a matching country could not be foundpublic com.liferay.portal.kernel.model.Country removeByA3(String a3)
throws com.liferay.portal.kernel.exception.NoSuchCountryException
removeByA3 in interface com.liferay.portal.kernel.service.persistence.CountryPersistencea3 - the a3com.liferay.portal.kernel.exception.NoSuchCountryExceptionpublic int countByA3(String a3)
countByA3 in interface com.liferay.portal.kernel.service.persistence.CountryPersistencea3 - the a3public List<com.liferay.portal.kernel.model.Country> findByActive(boolean active)
findByActive in interface com.liferay.portal.kernel.service.persistence.CountryPersistenceactive - the activepublic List<com.liferay.portal.kernel.model.Country> findByActive(boolean active,
int start,
int end)
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, then the query will include the default ORDER BY logic from CountryModelImpl.
findByActive in interface com.liferay.portal.kernel.service.persistence.CountryPersistenceactive - the activestart - the lower bound of the range of countriesend - the upper bound of the range of countries (not inclusive)public List<com.liferay.portal.kernel.model.Country> findByActive(boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Country> orderByComparator)
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, then the query will include the default ORDER BY logic from CountryModelImpl.
findByActive in interface com.liferay.portal.kernel.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)public List<com.liferay.portal.kernel.model.Country> findByActive(boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Country> orderByComparator,
boolean useFinderCache)
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, then the query will include the default ORDER BY logic from CountryModelImpl.
findByActive in interface com.liferay.portal.kernel.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)useFinderCache - whether to use the finder cachepublic com.liferay.portal.kernel.model.Country findByActive_First(boolean active,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Country> orderByComparator)
throws com.liferay.portal.kernel.exception.NoSuchCountryException
findByActive_First in interface com.liferay.portal.kernel.service.persistence.CountryPersistenceactive - the activeorderByComparator - the comparator to order the set by (optionally null)com.liferay.portal.kernel.exception.NoSuchCountryException - if a matching country could not be foundpublic com.liferay.portal.kernel.model.Country fetchByActive_First(boolean active,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Country> orderByComparator)
fetchByActive_First in interface com.liferay.portal.kernel.service.persistence.CountryPersistenceactive - the activeorderByComparator - the comparator to order the set by (optionally null)null if a matching country could not be foundpublic com.liferay.portal.kernel.model.Country findByActive_Last(boolean active,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Country> orderByComparator)
throws com.liferay.portal.kernel.exception.NoSuchCountryException
findByActive_Last in interface com.liferay.portal.kernel.service.persistence.CountryPersistenceactive - the activeorderByComparator - the comparator to order the set by (optionally null)com.liferay.portal.kernel.exception.NoSuchCountryException - if a matching country could not be foundpublic com.liferay.portal.kernel.model.Country fetchByActive_Last(boolean active,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Country> orderByComparator)
fetchByActive_Last in interface com.liferay.portal.kernel.service.persistence.CountryPersistenceactive - the activeorderByComparator - the comparator to order the set by (optionally null)null if a matching country could not be foundpublic com.liferay.portal.kernel.model.Country[] findByActive_PrevAndNext(long countryId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Country> orderByComparator)
throws com.liferay.portal.kernel.exception.NoSuchCountryException
findByActive_PrevAndNext in interface com.liferay.portal.kernel.service.persistence.CountryPersistencecountryId - the primary key of the current countryactive - the activeorderByComparator - the comparator to order the set by (optionally null)com.liferay.portal.kernel.exception.NoSuchCountryException - if a country with the primary key could not be foundprotected com.liferay.portal.kernel.model.Country getByActive_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portal.kernel.model.Country country,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Country> orderByComparator,
boolean previous)
public void removeByActive(boolean active)
removeByActive in interface com.liferay.portal.kernel.service.persistence.CountryPersistenceactive - the activepublic int countByActive(boolean active)
countByActive in interface com.liferay.portal.kernel.service.persistence.CountryPersistenceactive - the activepublic void cacheResult(com.liferay.portal.kernel.model.Country country)
cacheResult in interface com.liferay.portal.kernel.service.persistence.CountryPersistencecacheResult in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Country>country - the countrypublic void cacheResult(List<com.liferay.portal.kernel.model.Country> countries)
cacheResult in interface com.liferay.portal.kernel.service.persistence.CountryPersistencecountries - the countriespublic void clearCache()
The EntityCache and com.liferay.portal.kernel.dao.orm.FinderCache are both cleared by this method.
clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Country>clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Country>public void clearCache(com.liferay.portal.kernel.model.Country country)
The EntityCache and com.liferay.portal.kernel.dao.orm.FinderCache are both cleared by this method.
clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Country>clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Country>public void clearCache(List<com.liferay.portal.kernel.model.Country> countries)
clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Country>clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Country>protected void cacheUniqueFindersCache(CountryModelImpl countryModelImpl)
protected void clearUniqueFindersCache(CountryModelImpl countryModelImpl, boolean clearCurrent)
public com.liferay.portal.kernel.model.Country create(long countryId)
create in interface com.liferay.portal.kernel.service.persistence.CountryPersistencecountryId - the primary key for the new countrypublic com.liferay.portal.kernel.model.Country remove(long countryId)
throws com.liferay.portal.kernel.exception.NoSuchCountryException
remove in interface com.liferay.portal.kernel.service.persistence.CountryPersistencecountryId - the primary key of the countrycom.liferay.portal.kernel.exception.NoSuchCountryException - if a country with the primary key could not be foundpublic com.liferay.portal.kernel.model.Country remove(Serializable primaryKey)
throws com.liferay.portal.kernel.exception.NoSuchCountryException
remove in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Country>remove in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Country>primaryKey - the primary key of the countrycom.liferay.portal.kernel.exception.NoSuchCountryException - if a country with the primary key could not be foundprotected com.liferay.portal.kernel.model.Country removeImpl(com.liferay.portal.kernel.model.Country country)
removeImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Country>public com.liferay.portal.kernel.model.Country updateImpl(com.liferay.portal.kernel.model.Country country)
updateImpl in interface com.liferay.portal.kernel.service.persistence.CountryPersistenceupdateImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Country>public com.liferay.portal.kernel.model.Country findByPrimaryKey(Serializable primaryKey)
throws com.liferay.portal.kernel.exception.NoSuchCountryException
com.liferay.portal.kernel.exception.NoSuchModelException if it could not be found.findByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Country>findByPrimaryKey in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Country>primaryKey - the primary key of the countrycom.liferay.portal.kernel.exception.NoSuchCountryException - if a country with the primary key could not be foundpublic com.liferay.portal.kernel.model.Country findByPrimaryKey(long countryId)
throws com.liferay.portal.kernel.exception.NoSuchCountryException
NoSuchCountryException if it could not be found.findByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.CountryPersistencecountryId - the primary key of the countrycom.liferay.portal.kernel.exception.NoSuchCountryException - if a country with the primary key could not be foundpublic com.liferay.portal.kernel.model.Country fetchByPrimaryKey(long countryId)
null if it could not be found.fetchByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.CountryPersistencecountryId - the primary key of the countrynull if a country with the primary key could not be foundpublic List<com.liferay.portal.kernel.model.Country> findAll()
findAll in interface com.liferay.portal.kernel.service.persistence.CountryPersistencepublic List<com.liferay.portal.kernel.model.Country> findAll(int start,
int end)
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, then the query will include the default ORDER BY logic from CountryModelImpl.
findAll in interface com.liferay.portal.kernel.service.persistence.CountryPersistencestart - the lower bound of the range of countriesend - the upper bound of the range of countries (not inclusive)public List<com.liferay.portal.kernel.model.Country> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Country> orderByComparator)
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, then the query will include the default ORDER BY logic from CountryModelImpl.
findAll in interface com.liferay.portal.kernel.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)public List<com.liferay.portal.kernel.model.Country> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Country> orderByComparator,
boolean useFinderCache)
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, then the query will include the default ORDER BY logic from CountryModelImpl.
findAll in interface com.liferay.portal.kernel.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)useFinderCache - whether to use the finder cachepublic void removeAll()
removeAll in interface com.liferay.portal.kernel.service.persistence.CountryPersistencepublic int countAll()
countAll in interface com.liferay.portal.kernel.service.persistence.CountryPersistencepublic Set<String> getBadColumnNames()
getBadColumnNames in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Country>getBadColumnNames in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Country>protected com.liferay.portal.kernel.dao.orm.EntityCache getEntityCache()
getEntityCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Country>protected String getPKDBName()
getPKDBName in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Country>protected String getSelectSQL()
getSelectSQL in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Country>protected Map<String,Integer> getTableColumnsMap()
getTableColumnsMap in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Country>public void afterPropertiesSet()
public void destroy()