Interface ViewCountEntryPersistence

All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<ViewCountEntry>

@ProviderType public interface ViewCountEntryPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<ViewCountEntry>
The persistence interface for the view count entry service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cacheResult(ViewCountEntry viewCountEntry)
    Caches the view count entry in the entity cache if it is enabled.
    void
    cacheResult(List<ViewCountEntry> viewCountEntries)
    Caches the view count entries in the entity cache if it is enabled.
    int
    Returns the number of view count entries.
    int
    countByC_CN(long companyId, long classNameId)
    Returns the number of view count entries where companyId = ? and classNameId = ?.
    create(ViewCountEntryPK viewCountEntryPK)
    Creates a new view count entry with the primary key.
    fetchByC_CN_First(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator)
    Returns the first view count entry in the ordered set where companyId = ? and classNameId = ?.
    fetchByC_CN_Last(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator)
    Returns the last view count entry in the ordered set where companyId = ? and classNameId = ?.
    Returns the view count entry with the primary key or returns null if it could not be found.
    Returns all the view count entries.
    findAll(int start, int end)
    Returns a range of all the view count entries.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator)
    Returns an ordered range of all the view count entries.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the view count entries.
    findByC_CN(long companyId, long classNameId)
    Returns all the view count entries where companyId = ? and classNameId = ?.
    findByC_CN(long companyId, long classNameId, int start, int end)
    Returns a range of all the view count entries where companyId = ? and classNameId = ?.
    findByC_CN(long companyId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator)
    Returns an ordered range of all the view count entries where companyId = ? and classNameId = ?.
    findByC_CN(long companyId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the view count entries where companyId = ? and classNameId = ?.
    findByC_CN_First(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator)
    Returns the first view count entry in the ordered set where companyId = ? and classNameId = ?.
    findByC_CN_Last(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator)
    Returns the last view count entry in the ordered set where companyId = ? and classNameId = ?.
    findByC_CN_PrevAndNext(ViewCountEntryPK viewCountEntryPK, long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator)
    Returns the view count entries before and after the current view count entry in the ordered set where companyId = ? and classNameId = ?.
    Returns the view count entry with the primary key or throws a NoSuchEntryException if it could not be found.
     
    remove(ViewCountEntryPK viewCountEntryPK)
    Removes the view count entry with the primary key from the database.
    void
    Removes all the view count entries from the database.
    void
    removeByC_CN(long companyId, long classNameId)
    Removes all the view count entries where companyId = ? and classNameId = ? from the database.
    updateImpl(ViewCountEntry viewCountEntry)
     

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

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

    • findByC_CN

      List<ViewCountEntry> findByC_CN(long companyId, long classNameId)
      Returns all the view count entries where companyId = ? and classNameId = ?.
      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      Returns:
      the matching view count entries
    • findByC_CN

      List<ViewCountEntry> findByC_CN(long companyId, long classNameId, int start, int end)
      Returns a range of all the view count entries where companyId = ? and classNameId = ?.

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

      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      start - the lower bound of the range of view count entries
      end - the upper bound of the range of view count entries (not inclusive)
      Returns:
      the range of matching view count entries
    • findByC_CN

      List<ViewCountEntry> findByC_CN(long companyId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator)
      Returns an ordered range of all the view count entries where companyId = ? and classNameId = ?.

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

      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      start - the lower bound of the range of view count entries
      end - the upper bound of the range of view count entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching view count entries
    • findByC_CN

      List<ViewCountEntry> findByC_CN(long companyId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the view count entries where companyId = ? and classNameId = ?.

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

      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      start - the lower bound of the range of view count entries
      end - the upper bound of the range of view count entries (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 view count entries
    • findByC_CN_First

      ViewCountEntry findByC_CN_First(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator) throws NoSuchEntryException
      Returns the first view count entry in the ordered set where companyId = ? and classNameId = ?.
      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching view count entry
      Throws:
      NoSuchEntryException - if a matching view count entry could not be found
    • fetchByC_CN_First

      ViewCountEntry fetchByC_CN_First(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator)
      Returns the first view count entry in the ordered set where companyId = ? and classNameId = ?.
      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching view count entry, or null if a matching view count entry could not be found
    • findByC_CN_Last

      ViewCountEntry findByC_CN_Last(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator) throws NoSuchEntryException
      Returns the last view count entry in the ordered set where companyId = ? and classNameId = ?.
      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching view count entry
      Throws:
      NoSuchEntryException - if a matching view count entry could not be found
    • fetchByC_CN_Last

      ViewCountEntry fetchByC_CN_Last(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator)
      Returns the last view count entry in the ordered set where companyId = ? and classNameId = ?.
      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching view count entry, or null if a matching view count entry could not be found
    • findByC_CN_PrevAndNext

      ViewCountEntry[] findByC_CN_PrevAndNext(ViewCountEntryPK viewCountEntryPK, long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator) throws NoSuchEntryException
      Returns the view count entries before and after the current view count entry in the ordered set where companyId = ? and classNameId = ?.
      Parameters:
      viewCountEntryPK - the primary key of the current view count entry
      companyId - the company ID
      classNameId - the class name ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next view count entry
      Throws:
      NoSuchEntryException - if a view count entry with the primary key could not be found
    • removeByC_CN

      void removeByC_CN(long companyId, long classNameId)
      Removes all the view count entries where companyId = ? and classNameId = ? from the database.
      Parameters:
      companyId - the company ID
      classNameId - the class name ID
    • countByC_CN

      int countByC_CN(long companyId, long classNameId)
      Returns the number of view count entries where companyId = ? and classNameId = ?.
      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      Returns:
      the number of matching view count entries
    • cacheResult

      void cacheResult(ViewCountEntry viewCountEntry)
      Caches the view count entry in the entity cache if it is enabled.
      Parameters:
      viewCountEntry - the view count entry
    • cacheResult

      void cacheResult(List<ViewCountEntry> viewCountEntries)
      Caches the view count entries in the entity cache if it is enabled.
      Parameters:
      viewCountEntries - the view count entries
    • create

      ViewCountEntry create(ViewCountEntryPK viewCountEntryPK)
      Creates a new view count entry with the primary key. Does not add the view count entry to the database.
      Parameters:
      viewCountEntryPK - the primary key for the new view count entry
      Returns:
      the new view count entry
    • remove

      ViewCountEntry remove(ViewCountEntryPK viewCountEntryPK) throws NoSuchEntryException
      Removes the view count entry with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      viewCountEntryPK - the primary key of the view count entry
      Returns:
      the view count entry that was removed
      Throws:
      NoSuchEntryException - if a view count entry with the primary key could not be found
    • updateImpl

      ViewCountEntry updateImpl(ViewCountEntry viewCountEntry)
    • findByPrimaryKey

      ViewCountEntry findByPrimaryKey(ViewCountEntryPK viewCountEntryPK) throws NoSuchEntryException
      Returns the view count entry with the primary key or throws a NoSuchEntryException if it could not be found.
      Parameters:
      viewCountEntryPK - the primary key of the view count entry
      Returns:
      the view count entry
      Throws:
      NoSuchEntryException - if a view count entry with the primary key could not be found
    • fetchByPrimaryKey

      ViewCountEntry fetchByPrimaryKey(ViewCountEntryPK viewCountEntryPK)
      Returns the view count entry with the primary key or returns null if it could not be found.
      Parameters:
      viewCountEntryPK - the primary key of the view count entry
      Returns:
      the view count entry, or null if a view count entry with the primary key could not be found
    • findAll

      List<ViewCountEntry> findAll()
      Returns all the view count entries.
      Returns:
      the view count entries
    • findAll

      List<ViewCountEntry> findAll(int start, int end)
      Returns a range of all the view count entries.

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

      Parameters:
      start - the lower bound of the range of view count entries
      end - the upper bound of the range of view count entries (not inclusive)
      Returns:
      the range of view count entries
    • findAll

      List<ViewCountEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator)
      Returns an ordered range of all the view count entries.

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

      Parameters:
      start - the lower bound of the range of view count entries
      end - the upper bound of the range of view count entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of view count entries
    • findAll

      List<ViewCountEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the view count entries.

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

      Parameters:
      start - the lower bound of the range of view count entries
      end - the upper bound of the range of view count entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of view count entries
    • removeAll

      void removeAll()
      Removes all the view count entries from the database.
    • countAll

      int countAll()
      Returns the number of view count entries.
      Returns:
      the number of view count entries
    • getCompoundPKColumnNames

      Set<String> getCompoundPKColumnNames()