@ProviderType
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
CountryPersistence
,
CountryUtil
Modifier and Type | Field and Description |
---|---|
static String |
FINDER_CLASS_NAME_ENTITY |
static String |
FINDER_CLASS_NAME_LIST_WITH_PAGINATION |
static 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 |
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, databaseInMaxParameters, FINDER_ARGS_EMPTY, listeners, 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 retrieveFromCache)
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 retrieveFromCache)
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 retrieveFromCache)
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. |
com.liferay.portal.kernel.model.Country |
fetchByPrimaryKey(Serializable primaryKey)
Returns the country with the primary key or returns
null if it could not be found. |
Map<Serializable,com.liferay.portal.kernel.model.Country> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys) |
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 retrieveFromCache)
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 retrieveFromCache)
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
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 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, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCompoundPKColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final 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.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.CountryPersistence
name
- 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.CountryPersistence
name
- the namenull
if a matching country could not be foundpublic com.liferay.portal.kernel.model.Country fetchByName(String name, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.fetchByName
in interface com.liferay.portal.kernel.service.persistence.CountryPersistence
name
- the nameretrieveFromCache
- whether to retrieve from 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.CountryPersistence
name
- the namecom.liferay.portal.kernel.exception.NoSuchCountryException
public int countByName(String name)
countByName
in interface com.liferay.portal.kernel.service.persistence.CountryPersistence
name
- 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.CountryPersistence
a2
- 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.CountryPersistence
a2
- the a2null
if a matching country could not be foundpublic com.liferay.portal.kernel.model.Country fetchByA2(String a2, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.fetchByA2
in interface com.liferay.portal.kernel.service.persistence.CountryPersistence
a2
- the a2retrieveFromCache
- whether to retrieve from 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.CountryPersistence
a2
- the a2com.liferay.portal.kernel.exception.NoSuchCountryException
public int countByA2(String a2)
countByA2
in interface com.liferay.portal.kernel.service.persistence.CountryPersistence
a2
- 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.CountryPersistence
a3
- 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.CountryPersistence
a3
- the a3null
if a matching country could not be foundpublic com.liferay.portal.kernel.model.Country fetchByA3(String a3, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.fetchByA3
in interface com.liferay.portal.kernel.service.persistence.CountryPersistence
a3
- the a3retrieveFromCache
- whether to retrieve from 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.CountryPersistence
a3
- the a3com.liferay.portal.kernel.exception.NoSuchCountryException
public int countByA3(String a3)
countByA3
in interface com.liferay.portal.kernel.service.persistence.CountryPersistence
a3
- the a3public List<com.liferay.portal.kernel.model.Country> findByActive(boolean active)
findByActive
in interface com.liferay.portal.kernel.service.persistence.CountryPersistence
active
- 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 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.kernel.service.persistence.CountryPersistence
active
- 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 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.kernel.service.persistence.CountryPersistence
active
- 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 retrieveFromCache)
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.kernel.service.persistence.CountryPersistence
active
- 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
)retrieveFromCache
- whether to retrieve from 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.CountryPersistence
active
- 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.CountryPersistence
active
- 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.CountryPersistence
active
- 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.CountryPersistence
active
- 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.CountryPersistence
countryId
- 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.CountryPersistence
active
- the activepublic int countByActive(boolean active)
countByActive
in interface com.liferay.portal.kernel.service.persistence.CountryPersistence
active
- the activepublic void cacheResult(com.liferay.portal.kernel.model.Country country)
cacheResult
in interface com.liferay.portal.kernel.service.persistence.CountryPersistence
country
- the countrypublic void cacheResult(List<com.liferay.portal.kernel.model.Country> countries)
cacheResult
in interface com.liferay.portal.kernel.service.persistence.CountryPersistence
countries
- the countriespublic void clearCache()
The EntityCache
and 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 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.CountryPersistence
countryId
- 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.CountryPersistence
countryId
- 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.CountryPersistence
updateImpl
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
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.CountryPersistence
countryId
- 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(Serializable primaryKey)
null
if it could not be found.fetchByPrimaryKey
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Country>
fetchByPrimaryKey
in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Country>
primaryKey
- the primary key of the countrynull
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.CountryPersistence
countryId
- the primary key of the countrynull
if a country with the primary key could not be foundpublic Map<Serializable,com.liferay.portal.kernel.model.Country> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Country>
fetchByPrimaryKeys
in interface com.liferay.portal.kernel.service.persistence.CountryPersistence
fetchByPrimaryKeys
in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Country>
public List<com.liferay.portal.kernel.model.Country> findAll()
findAll
in interface com.liferay.portal.kernel.service.persistence.CountryPersistence
public 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 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.kernel.service.persistence.CountryPersistence
start
- 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 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.kernel.service.persistence.CountryPersistence
start
- 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 retrieveFromCache)
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.kernel.service.persistence.CountryPersistence
start
- 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
)retrieveFromCache
- whether to retrieve from the finder cachepublic void removeAll()
removeAll
in interface com.liferay.portal.kernel.service.persistence.CountryPersistence
public int countAll()
countAll
in interface com.liferay.portal.kernel.service.persistence.CountryPersistence
public Set<String> getBadColumnNames()
getBadColumnNames
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Country>
getBadColumnNames
in interface com.liferay.portal.kernel.service.persistence.CountryPersistence
getBadColumnNames
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()