Class CountryLocalizationPersistenceImpl

Object
com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.CountryLocalization>
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> 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

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final String
     

    Fields 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Initializes the country localization persistence.
    void
    cacheResult(com.liferay.portal.kernel.model.CountryLocalization countryLocalization)
    Caches the country localization in the entity cache if it is enabled.
    void
    cacheResult(List<com.liferay.portal.kernel.model.CountryLocalization> countryLocalizations)
    Caches the country localizations in the entity cache if it is enabled.
    protected void
     
    void
    Clears the cache for all country localizations.
    void
    clearCache(com.liferay.portal.kernel.model.CountryLocalization countryLocalization)
    Clears the cache for the country localization.
    void
    clearCache(List<com.liferay.portal.kernel.model.CountryLocalization> countryLocalizations)
     
    void
    clearCache(Set<Serializable> primaryKeys)
     
    int
    Returns the number of country localizations.
    int
    countByCountryId(long countryId)
    Returns the number of country localizations where countryId = ?.
    int
    countByCountryId_LanguageId(long countryId, String languageId)
    Returns the number of country localizations where countryId = ? and languageId = ?.
    com.liferay.portal.kernel.model.CountryLocalization
    create(long countryLocalizationId)
    Creates a new country localization with the primary key.
    void
     
    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 = ?.
    com.liferay.portal.kernel.model.CountryLocalization
    fetchByCountryId_LanguageId(long countryId, String languageId)
    Returns the country localization where countryId = ? and languageId = ? or returns null if it could not be found.
    com.liferay.portal.kernel.model.CountryLocalization
    fetchByCountryId_LanguageId(long countryId, String languageId, boolean useFinderCache)
    Returns the country localization where countryId = ? and languageId = ? or returns null if it could not be found, optionally using the finder cache.
    com.liferay.portal.kernel.model.CountryLocalization
    fetchByCountryId_Last(long countryId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.CountryLocalization> orderByComparator)
    Returns the last country localization in the ordered set where countryId = ?.
    com.liferay.portal.kernel.model.CountryLocalization
    fetchByPrimaryKey(long countryLocalizationId)
    Returns the country localization with the primary key or returns null if it could not be found.
    com.liferay.portal.kernel.model.CountryLocalization
    Returns the country localization with the primary key or returns null if it could not be found.
    Map<Serializable,com.liferay.portal.kernel.model.CountryLocalization>
     
    List<com.liferay.portal.kernel.model.CountryLocalization>
    Returns all the country localizations.
    List<com.liferay.portal.kernel.model.CountryLocalization>
    findAll(int start, int end)
    Returns a range of all the country localizations.
    List<com.liferay.portal.kernel.model.CountryLocalization>
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.CountryLocalization> orderByComparator)
    Returns an ordered range of all the country localizations.
    List<com.liferay.portal.kernel.model.CountryLocalization>
    findAll(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.
    List<com.liferay.portal.kernel.model.CountryLocalization>
    findByCountryId(long countryId)
    Returns all the country localizations where countryId = ?.
    List<com.liferay.portal.kernel.model.CountryLocalization>
    findByCountryId(long countryId, int start, int end)
    Returns a range of all the country localizations where countryId = ?.
    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)
    Returns an ordered range of all the country localizations where countryId = ?.
    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.CountryLocalization
    findByCountryId_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.CountryLocalization
    findByCountryId_LanguageId(long countryId, String languageId)
    Returns the country localization where countryId = ? and languageId = ? or throws a NoSuchCountryLocalizationException if it could not be found.
    com.liferay.portal.kernel.model.CountryLocalization
    findByCountryId_Last(long countryId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.CountryLocalization> orderByComparator)
    Returns the last country localization in the ordered set where countryId = ?.
    com.liferay.portal.kernel.model.CountryLocalization[]
    findByCountryId_PrevAndNext(long countryLocalizationId, long countryId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.CountryLocalization> orderByComparator)
    Returns the country localizations before and after the current country localization in the ordered set where countryId = ?.
    com.liferay.portal.kernel.model.CountryLocalization
    findByPrimaryKey(long countryLocalizationId)
    Returns the country localization with the primary key or throws a NoSuchCountryLocalizationException if it could not be found.
    com.liferay.portal.kernel.model.CountryLocalization
    Returns the country localization with the primary key or throws a com.liferay.portal.kernel.exception.NoSuchModelException if it could not be found.
    protected com.liferay.portal.kernel.model.CountryLocalization
    getByCountryId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.CountryLocalization countryLocalization, long countryId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.CountryLocalization> orderByComparator, boolean previous)
     
    getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType)
     
    protected com.liferay.portal.kernel.dao.orm.EntityCache
     
    protected com.liferay.portal.kernel.dao.orm.FinderCache
     
     
    protected String
     
    protected String
     
     
     
     
    com.liferay.portal.kernel.model.CountryLocalization
    remove(long countryLocalizationId)
    Removes the country localization with the primary key from the database.
    com.liferay.portal.kernel.model.CountryLocalization
    remove(Serializable primaryKey)
    Removes the country localization with the primary key from the database.
    void
    Removes all the country localizations from the database.
    void
    removeByCountryId(long countryId)
    Removes all the country localizations where countryId = ? from the database.
    com.liferay.portal.kernel.model.CountryLocalization
    removeByCountryId_LanguageId(long countryId, String languageId)
    Removes the country localization where countryId = ? and languageId = ? from the database.
    protected com.liferay.portal.kernel.model.CountryLocalization
    removeImpl(com.liferay.portal.kernel.model.CountryLocalization countryLocalization)
     
    com.liferay.portal.kernel.model.CountryLocalization
    updateImpl(com.liferay.portal.kernel.model.CountryLocalization countryLocalization)
     

    Methods inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl

    appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getColumnName, getCompoundPKColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeByFunction, removeConjunction, setConfiguration, setDataSource, setDBColumnNames, setEntityCacheEnabled, setModelClass, setModelImplClass, setModelPKClass, setSessionFactory, setTable, unregisterListener, update, update

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence

    closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, removeByFunction, setDataSource, unregisterListener, update, update
  • Field Details

    • FINDER_CLASS_NAME_ENTITY

      public static final String FINDER_CLASS_NAME_ENTITY
    • FINDER_CLASS_NAME_LIST_WITH_PAGINATION

      public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
    • FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

      public static final String 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)
      Returns all the country localizations where countryId = ?.
      Specified by:
      findByCountryId in interface com.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence
      Parameters:
      countryId - the country ID
      Returns:
      the matching country localizations
    • findByCountryId

      public List<com.liferay.portal.kernel.model.CountryLocalization> findByCountryId(long countryId, int start, int end)
      Returns a range of all the country localizations where countryId = ?.

      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 CountryLocalizationModelImpl.

      Specified by:
      findByCountryId in interface com.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence
      Parameters:
      countryId - the country ID
      start - the lower bound of the range of country localizations
      end - the upper bound of the range of country localizations (not inclusive)
      Returns:
      the range of matching country localizations
    • 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)
      Returns an ordered range of all the country localizations where countryId = ?.

      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 CountryLocalizationModelImpl.

      Specified by:
      findByCountryId in interface com.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence
      Parameters:
      countryId - the country ID
      start - the lower bound of the range of country localizations
      end - the upper bound of the range of country localizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching country localizations
    • 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 - 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 CountryLocalizationModelImpl.

      Specified by:
      findByCountryId in interface com.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence
      Parameters:
      countryId - the country ID
      start - the lower bound of the range of country localizations
      end - the upper bound of the range of country localizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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_First in interface com.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence
      Parameters:
      countryId - the country ID
      orderByComparator - the comparator to order the set by (optionally null)
      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_First in interface com.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence
      Parameters:
      countryId - the country ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching country localization, or null if a matching country localization could not be found
    • findByCountryId_Last

      public com.liferay.portal.kernel.model.CountryLocalization findByCountryId_Last(long countryId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.CountryLocalization> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchCountryLocalizationException
      Returns the last country localization in the ordered set where countryId = ?.
      Specified by:
      findByCountryId_Last in interface com.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence
      Parameters:
      countryId - the country ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching country localization
      Throws:
      com.liferay.portal.kernel.exception.NoSuchCountryLocalizationException - if a matching country localization could not be found
    • fetchByCountryId_Last

      public com.liferay.portal.kernel.model.CountryLocalization fetchByCountryId_Last(long countryId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.CountryLocalization> orderByComparator)
      Returns the last country localization in the ordered set where countryId = ?.
      Specified by:
      fetchByCountryId_Last in interface com.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence
      Parameters:
      countryId - the country ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching country localization, or null if a matching country localization could not be found
    • findByCountryId_PrevAndNext

      public com.liferay.portal.kernel.model.CountryLocalization[] findByCountryId_PrevAndNext(long countryLocalizationId, long countryId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.CountryLocalization> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchCountryLocalizationException
      Returns the country localizations before and after the current country localization in the ordered set where countryId = ?.
      Specified by:
      findByCountryId_PrevAndNext in interface com.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence
      Parameters:
      countryLocalizationId - the primary key of the current country localization
      countryId - the country ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next country localization
      Throws:
      com.liferay.portal.kernel.exception.NoSuchCountryLocalizationException - if a country localization with the primary key could not be found
    • getByCountryId_PrevAndNext

      protected com.liferay.portal.kernel.model.CountryLocalization getByCountryId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.CountryLocalization countryLocalization, long countryId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.CountryLocalization> orderByComparator, boolean previous)
    • removeByCountryId

      public void removeByCountryId(long countryId)
      Removes all the country localizations where countryId = ? from the database.
      Specified by:
      removeByCountryId in interface com.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:
      countByCountryId in interface com.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 a NoSuchCountryLocalizationException if it could not be found.
      Specified by:
      findByCountryId_LanguageId in interface com.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence
      Parameters:
      countryId - the country ID
      languageId - 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)
      Returns the country localization where countryId = ? and languageId = ? or returns null if it could not be found. Uses the finder cache.
      Specified by:
      fetchByCountryId_LanguageId in interface com.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence
      Parameters:
      countryId - the country ID
      languageId - the language ID
      Returns:
      the matching country localization, or null 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 returns null if it could not be found, optionally using the finder cache.
      Specified by:
      fetchByCountryId_LanguageId in interface com.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence
      Parameters:
      countryId - the country ID
      languageId - the language ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching country localization, or null if 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_LanguageId in interface com.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence
      Parameters:
      countryId - the country ID
      languageId - the language ID
      Returns:
      the country localization that was removed
      Throws:
      com.liferay.portal.kernel.exception.NoSuchCountryLocalizationException
    • countByCountryId_LanguageId

      public int countByCountryId_LanguageId(long countryId, String languageId)
      Returns the number of country localizations where countryId = ? and languageId = ?.
      Specified by:
      countByCountryId_LanguageId in interface com.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence
      Parameters:
      countryId - the country ID
      languageId - the language ID
      Returns:
      the number of matching country localizations
    • cacheResult

      public void cacheResult(com.liferay.portal.kernel.model.CountryLocalization countryLocalization)
      Caches the country localization in the entity cache if it is enabled.
      Specified by:
      cacheResult in interface com.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence
      Overrides:
      cacheResult in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.CountryLocalization>
      Parameters:
      countryLocalization - the country localization
    • cacheResult

      public void cacheResult(List<com.liferay.portal.kernel.model.CountryLocalization> countryLocalizations)
      Caches the country localizations in the entity cache if it is enabled.
      Specified by:
      cacheResult in interface com.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence
      Parameters:
      countryLocalizations - the country localizations
    • clearCache

      public void clearCache()
      Clears the cache for all country localizations.

      The EntityCache and FinderCache are both cleared by this method.

      Specified by:
      clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.CountryLocalization>
      Overrides:
      clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.CountryLocalization>
    • clearCache

      public void clearCache(com.liferay.portal.kernel.model.CountryLocalization countryLocalization)
      Clears the cache for the country localization.

      The EntityCache and FinderCache are both cleared by this method.

      Specified by:
      clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.CountryLocalization>
      Overrides:
      clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.CountryLocalization>
    • clearCache

      public void clearCache(List<com.liferay.portal.kernel.model.CountryLocalization> countryLocalizations)
      Specified by:
      clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.CountryLocalization>
      Overrides:
      clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.CountryLocalization>
    • clearCache

      public void clearCache(Set<Serializable> primaryKeys)
      Specified by:
      clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.CountryLocalization>
    • cacheUniqueFindersCache

      protected void cacheUniqueFindersCache(CountryLocalizationModelImpl countryLocalizationModelImpl)
    • 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:
      create in interface com.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:
      remove in interface com.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
    • remove

      public com.liferay.portal.kernel.model.CountryLocalization remove(Serializable primaryKey) 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:
      remove in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.CountryLocalization>
      Overrides:
      remove in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.CountryLocalization>
      Parameters:
      primaryKey - 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:
      removeImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.CountryLocalization>
    • updateImpl

      public com.liferay.portal.kernel.model.CountryLocalization updateImpl(com.liferay.portal.kernel.model.CountryLocalization countryLocalization)
      Specified by:
      updateImpl in interface com.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence
      Overrides:
      updateImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.CountryLocalization>
    • findByPrimaryKey

      public com.liferay.portal.kernel.model.CountryLocalization findByPrimaryKey(Serializable primaryKey) throws com.liferay.portal.kernel.exception.NoSuchCountryLocalizationException
      Returns the country localization with the primary key or throws a com.liferay.portal.kernel.exception.NoSuchModelException if it could not be found.
      Specified by:
      findByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.CountryLocalization>
      Overrides:
      findByPrimaryKey in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.CountryLocalization>
      Parameters:
      primaryKey - 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
    • 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 a NoSuchCountryLocalizationException if it could not be found.
      Specified by:
      findByPrimaryKey in interface com.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
    • fetchByPrimaryKey

      public com.liferay.portal.kernel.model.CountryLocalization fetchByPrimaryKey(Serializable primaryKey)
      Returns the country localization with the primary key or returns null if it could not be found.
      Specified by:
      fetchByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.CountryLocalization>
      Overrides:
      fetchByPrimaryKey in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.CountryLocalization>
      Parameters:
      primaryKey - the primary key of the country localization
      Returns:
      the country localization, or null if a country localization with the primary key could not be found
    • fetchByPrimaryKey

      public com.liferay.portal.kernel.model.CountryLocalization fetchByPrimaryKey(long countryLocalizationId)
      Returns the country localization with the primary key or returns null if it could not be found.
      Specified by:
      fetchByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence
      Parameters:
      countryLocalizationId - the primary key of the country localization
      Returns:
      the country localization, or null if a country localization with the primary key could not be found
    • fetchByPrimaryKeys

      public Map<Serializable,com.liferay.portal.kernel.model.CountryLocalization> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      Specified by:
      fetchByPrimaryKeys in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.CountryLocalization>
      Overrides:
      fetchByPrimaryKeys in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.CountryLocalization>
    • findAll

      public List<com.liferay.portal.kernel.model.CountryLocalization> findAll()
      Returns all the country localizations.
      Specified by:
      findAll in interface com.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence
      Returns:
      the country localizations
    • findAll

      public List<com.liferay.portal.kernel.model.CountryLocalization> findAll(int start, int end)
      Returns a range of all the country localizations.

      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 CountryLocalizationModelImpl.

      Specified by:
      findAll in interface com.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence
      Parameters:
      start - the lower bound of the range of country localizations
      end - the upper bound of the range of country localizations (not inclusive)
      Returns:
      the range of country localizations
    • findAll

      public List<com.liferay.portal.kernel.model.CountryLocalization> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.CountryLocalization> orderByComparator)
      Returns an ordered range of all the country localizations.

      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 CountryLocalizationModelImpl.

      Specified by:
      findAll in interface com.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence
      Parameters:
      start - the lower bound of the range of country localizations
      end - the upper bound of the range of country localizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of country localizations
    • findAll

      public List<com.liferay.portal.kernel.model.CountryLocalization> findAll(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.

      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 CountryLocalizationModelImpl.

      Specified by:
      findAll in interface com.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence
      Parameters:
      start - the lower bound of the range of country localizations
      end - the upper bound of the range of country localizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of country localizations
    • removeAll

      public void removeAll()
      Removes all the country localizations from the database.
      Specified by:
      removeAll in interface com.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence
    • countAll

      public int countAll()
      Returns the number of country localizations.
      Specified by:
      countAll in interface com.liferay.portal.kernel.service.persistence.CountryLocalizationPersistence
      Returns:
      the number of country localizations
    • getEntityCache

      protected com.liferay.portal.kernel.dao.orm.EntityCache getEntityCache()
      Overrides:
      getEntityCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.CountryLocalization>
    • getPKDBName

      protected String getPKDBName()
      Overrides:
      getPKDBName in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.CountryLocalization>
    • getSelectSQL

      protected String getSelectSQL()
      Overrides:
      getSelectSQL in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.CountryLocalization>
    • getCTColumnNames

      public Set<String> getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType)
      Specified by:
      getCTColumnNames in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.CountryLocalization>
    • getMappingTableNames

      public List<String> getMappingTableNames()
      Specified by:
      getMappingTableNames in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.CountryLocalization>
    • getTableColumnsMap

      public Map<String,Integer> getTableColumnsMap()
      Specified by:
      getTableColumnsMap in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.CountryLocalization>
      Overrides:
      getTableColumnsMap in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.CountryLocalization>
    • getTableName

      public String getTableName()
      Specified by:
      getTableName in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.CountryLocalization>
    • getUniqueIndexColumnNames

      public List<String[]> getUniqueIndexColumnNames()
      Specified by:
      getUniqueIndexColumnNames in interface com.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:
      getFinderCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.CountryLocalization>