Class CountryLocalizationPersistenceImpl
Object
com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.CountryLocalization,com.liferay.portal.kernel.exception.NoSuchCountryLocalizationException>
com.liferay.portal.service.persistence.impl.CountryLocalizationPersistenceImpl
- All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory,com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.CountryLocalization>,com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.CountryLocalization>,com.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence
public class CountryLocalizationPersistenceImpl
extends com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.CountryLocalization,com.liferay.portal.kernel.exception.NoSuchCountryLocalizationException>
implements com.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence
The persistence implementation for the country localization service.
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- {$generated.description}
-
Field Summary
FieldsFields inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, databaseInMaxParameters, dbColumnNames, dummyEntityCache, dummyFinderCache, 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInitializes the country localization persistence.intcountByCountryId(long countryId) Returns the number of country localizations where countryId = ?.intcountByCountryId_LanguageId(long countryId, String languageId) Returns the number of country localizations where countryId = ? and languageId = ?.com.liferay.portal.kernel.model.CountryLocalizationcreate(long countryLocalizationId) Creates a new country localization with the primary key.voiddestroy()com.liferay.portal.kernel.model.CountryLocalizationfetchByCountryId_First(long countryId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.CountryLocalization> orderByComparator) Returns the first country localization in the ordered set where countryId = ?.com.liferay.portal.kernel.model.CountryLocalizationfetchByCountryId_LanguageId(long countryId, String languageId, boolean useFinderCache) Returns the country localization where countryId = ? and languageId = ? or returnsnullif it could not be found, optionally using the finder cache.com.liferay.portal.kernel.model.CountryLocalizationfetchByPrimaryKey(long countryLocalizationId) Returns the country localization with the primary key or returnsnullif it could not be found.List<com.liferay.portal.kernel.model.CountryLocalization>findByCountryId(long countryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.CountryLocalization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the country localizations where countryId = ?.com.liferay.portal.kernel.model.CountryLocalizationfindByCountryId_First(long countryId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.CountryLocalization> orderByComparator) Returns the first country localization in the ordered set where countryId = ?.com.liferay.portal.kernel.model.CountryLocalizationfindByCountryId_LanguageId(long countryId, String languageId) Returns the country localization where countryId = ? and languageId = ? or throws aNoSuchCountryLocalizationExceptionif it could not be found.com.liferay.portal.kernel.model.CountryLocalizationfindByPrimaryKey(long countryLocalizationId) Returns the country localization with the primary key or throws aNoSuchCountryLocalizationExceptionif it could not be found.getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType) protected com.liferay.portal.kernel.service.persistence.change.tracking.helper.CTPersistenceHelperprotected com.liferay.portal.kernel.dao.orm.EntityCacheprotected com.liferay.portal.kernel.dao.orm.FinderCacheprotected Stringprotected Stringcom.liferay.portal.kernel.model.CountryLocalizationremove(long countryLocalizationId) Removes the country localization with the primary key from the database.voidremoveByCountryId(long countryId) Removes all the country localizations where countryId = ? from the database.com.liferay.portal.kernel.model.CountryLocalizationremoveByCountryId_LanguageId(long countryId, String languageId) Removes the country localization where countryId = ? and languageId = ? from the database.protected com.liferay.portal.kernel.model.CountryLocalizationremoveImpl(com.liferay.portal.kernel.model.CountryLocalization countryLocalization) com.liferay.portal.kernel.model.CountryLocalizationupdateImpl(com.liferay.portal.kernel.model.CountryLocalization countryLocalization) Methods inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, appendOrderByComparator, cacheResult, cacheResult, cacheUniqueFindersResult, clearCache, clearCache, clearCache, clearCache, closeSession, convertCaseFunction, convertDateFunction, convertNullFunction, countAll, countWithDynamicQuery, countWithDynamicQuery, createUniqueFinderPath, dslQuery, dslQuery, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getColumnName, getCompoundPKColumnNames, getCurrentSession, getDataSource, getDB, getDefaultOrderBySQL, getDefaultOrderBySQLInlineDistinct, getDialect, getEntityAlias, getEntityAliasPrefix, getFilterPKColumnName, getListeners, getModelClass, getModelImplClass, getNoSuchEntityWithKeyPrefix, getPKColumnName, getPKFieldName, isPermissionsInMemoryFilterEnabled, newNoSuchModelException, openNewSession, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, removeConjunction, setConfiguration, setDataSource, setDBColumnNames, setEntityCacheEnabled, setModelClass, setModelImplClass, setModelPKClass, setSessionFactory, setTable, unregisterListener, update, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, setDataSource, unregisterListener, update, updateMethods inherited from interface com.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence
fetchByCountryId_LanguageId, findByCountryId, findByCountryId, findByCountryId
-
Field Details
-
FINDER_CLASS_NAME_ENTITY
-
FINDER_CLASS_NAME_LIST_WITH_PAGINATION
-
FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
-
-
Constructor Details
-
CountryLocalizationPersistenceImpl
public CountryLocalizationPersistenceImpl()
-
-
Method Details
-
findByCountryId
public List<com.liferay.portal.kernel.model.CountryLocalization> findByCountryId(long countryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.CountryLocalization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the country localizations where countryId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCountryLocalizationModelImpl.- Specified by:
findByCountryIdin interfacecom.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence- Parameters:
countryId- the country IDstart- the lower bound of the range of country localizationsend- the upper bound of the range of country localizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching country localizations
-
findByCountryId_First
public com.liferay.portal.kernel.model.CountryLocalization findByCountryId_First(long countryId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.CountryLocalization> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchCountryLocalizationException Returns the first country localization in the ordered set where countryId = ?.- Specified by:
findByCountryId_Firstin interfacecom.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence- Parameters:
countryId- the country IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching country localization
- Throws:
com.liferay.portal.kernel.exception.NoSuchCountryLocalizationException- if a matching country localization could not be found
-
fetchByCountryId_First
public com.liferay.portal.kernel.model.CountryLocalization fetchByCountryId_First(long countryId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.CountryLocalization> orderByComparator) Returns the first country localization in the ordered set where countryId = ?.- Specified by:
fetchByCountryId_Firstin interfacecom.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence- Parameters:
countryId- the country IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching country localization, or
nullif a matching country localization could not be found
-
removeByCountryId
public void removeByCountryId(long countryId) Removes all the country localizations where countryId = ? from the database.- Specified by:
removeByCountryIdin interfacecom.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence- Parameters:
countryId- the country ID
-
countByCountryId
public int countByCountryId(long countryId) Returns the number of country localizations where countryId = ?.- Specified by:
countByCountryIdin interfacecom.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence- Parameters:
countryId- the country ID- Returns:
- the number of matching country localizations
-
findByCountryId_LanguageId
public com.liferay.portal.kernel.model.CountryLocalization findByCountryId_LanguageId(long countryId, String languageId) throws com.liferay.portal.kernel.exception.NoSuchCountryLocalizationException Returns the country localization where countryId = ? and languageId = ? or throws aNoSuchCountryLocalizationExceptionif it could not be found.- Specified by:
findByCountryId_LanguageIdin interfacecom.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence- Parameters:
countryId- the country IDlanguageId- the language ID- Returns:
- the matching country localization
- Throws:
com.liferay.portal.kernel.exception.NoSuchCountryLocalizationException- if a matching country localization could not be found
-
fetchByCountryId_LanguageId
public com.liferay.portal.kernel.model.CountryLocalization fetchByCountryId_LanguageId(long countryId, String languageId, boolean useFinderCache) Returns the country localization where countryId = ? and languageId = ? or returnsnullif it could not be found, optionally using the finder cache.- Specified by:
fetchByCountryId_LanguageIdin interfacecom.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence- Parameters:
countryId- the country IDlanguageId- the language IDuseFinderCache- whether to use the finder cache- Returns:
- the matching country localization, or
nullif a matching country localization could not be found
-
removeByCountryId_LanguageId
public com.liferay.portal.kernel.model.CountryLocalization removeByCountryId_LanguageId(long countryId, String languageId) throws com.liferay.portal.kernel.exception.NoSuchCountryLocalizationException Removes the country localization where countryId = ? and languageId = ? from the database.- Specified by:
removeByCountryId_LanguageIdin interfacecom.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence- Parameters:
countryId- the country IDlanguageId- the language ID- Returns:
- the country localization that was removed
- Throws:
com.liferay.portal.kernel.exception.NoSuchCountryLocalizationException
-
countByCountryId_LanguageId
Returns the number of country localizations where countryId = ? and languageId = ?.- Specified by:
countByCountryId_LanguageIdin interfacecom.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence- Parameters:
countryId- the country IDlanguageId- the language ID- Returns:
- the number of matching country localizations
-
create
public com.liferay.portal.kernel.model.CountryLocalization create(long countryLocalizationId) Creates a new country localization with the primary key. Does not add the country localization to the database.- Specified by:
createin interfacecom.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence- Parameters:
countryLocalizationId- the primary key for the new country localization- Returns:
- the new country localization
-
remove
public com.liferay.portal.kernel.model.CountryLocalization remove(long countryLocalizationId) throws com.liferay.portal.kernel.exception.NoSuchCountryLocalizationException Removes the country localization with the primary key from the database. Also notifies the appropriate model listeners.- Specified by:
removein interfacecom.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence- Parameters:
countryLocalizationId- the primary key of the country localization- Returns:
- the country localization that was removed
- Throws:
com.liferay.portal.kernel.exception.NoSuchCountryLocalizationException- if a country localization with the primary key could not be found
-
removeImpl
protected com.liferay.portal.kernel.model.CountryLocalization removeImpl(com.liferay.portal.kernel.model.CountryLocalization countryLocalization) - Overrides:
removeImplin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.CountryLocalization,com.liferay.portal.kernel.exception.NoSuchCountryLocalizationException>
-
updateImpl
public com.liferay.portal.kernel.model.CountryLocalization updateImpl(com.liferay.portal.kernel.model.CountryLocalization countryLocalization) - Specified by:
updateImplin interfacecom.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence- Overrides:
updateImplin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.CountryLocalization,com.liferay.portal.kernel.exception.NoSuchCountryLocalizationException>
-
findByPrimaryKey
public com.liferay.portal.kernel.model.CountryLocalization findByPrimaryKey(long countryLocalizationId) throws com.liferay.portal.kernel.exception.NoSuchCountryLocalizationException Returns the country localization with the primary key or throws aNoSuchCountryLocalizationExceptionif it could not be found.- Specified by:
findByPrimaryKeyin interfacecom.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence- Parameters:
countryLocalizationId- the primary key of the country localization- Returns:
- the country localization
- Throws:
com.liferay.portal.kernel.exception.NoSuchCountryLocalizationException- if a country localization with the primary key could not be found
-
getCTPersistenceHelper
protected com.liferay.portal.kernel.service.persistence.change.tracking.helper.CTPersistenceHelper getCTPersistenceHelper()- Overrides:
getCTPersistenceHelperin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.CountryLocalization,com.liferay.portal.kernel.exception.NoSuchCountryLocalizationException>
-
fetchByPrimaryKey
public com.liferay.portal.kernel.model.CountryLocalization fetchByPrimaryKey(long countryLocalizationId) Returns the country localization with the primary key or returnsnullif it could not be found.- Specified by:
fetchByPrimaryKeyin interfacecom.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence- Parameters:
countryLocalizationId- the primary key of the country localization- Returns:
- the country localization, or
nullif a country localization with the primary key could not be found
-
getEntityCache
protected com.liferay.portal.kernel.dao.orm.EntityCache getEntityCache()- Overrides:
getEntityCachein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.CountryLocalization,com.liferay.portal.kernel.exception.NoSuchCountryLocalizationException>
-
getPKDBName
- Overrides:
getPKDBNamein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.CountryLocalization,com.liferay.portal.kernel.exception.NoSuchCountryLocalizationException>
-
getSelectSQL
- Overrides:
getSelectSQLin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.CountryLocalization,com.liferay.portal.kernel.exception.NoSuchCountryLocalizationException>
-
getCTColumnNames
public Set<String> getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType) - Specified by:
getCTColumnNamesin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.CountryLocalization>
-
getMappingTableNames
- Specified by:
getMappingTableNamesin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.CountryLocalization>
-
getTableColumnsMap
- Specified by:
getTableColumnsMapin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.CountryLocalization>- Overrides:
getTableColumnsMapin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.CountryLocalization,com.liferay.portal.kernel.exception.NoSuchCountryLocalizationException>
-
getTableName
- Specified by:
getTableNamein interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.CountryLocalization>- Overrides:
getTableNamein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.CountryLocalization,com.liferay.portal.kernel.exception.NoSuchCountryLocalizationException>
-
getUniqueIndexColumnNames
- Specified by:
getUniqueIndexColumnNamesin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.CountryLocalization>
-
afterPropertiesSet
public void afterPropertiesSet()Initializes the country localization persistence. -
destroy
public void destroy() -
getFinderCache
protected com.liferay.portal.kernel.dao.orm.FinderCache getFinderCache()- Overrides:
getFinderCachein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.CountryLocalization,com.liferay.portal.kernel.exception.NoSuchCountryLocalizationException>
-