Interface CTCommentPersistence

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

@ProviderType public interface CTCommentPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CTComment>
The persistence interface for the ct comment service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Caches the ct comment in the entity cache if it is enabled.
    void
    cacheResult(List<CTComment> ctComments)
    Caches the ct comments in the entity cache if it is enabled.
    int
    Returns the number of ct comments.
    int
    countByCtCollectionId(long ctCollectionId)
    Returns the number of ct comments where ctCollectionId = ?.
    int
    countByCtEntryId(long ctEntryId)
    Returns the number of ct comments where ctEntryId = ?.
    create(long ctCommentId)
    Creates a new ct comment with the primary key.
    fetchByCtCollectionId_First(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
    Returns the first ct comment in the ordered set where ctCollectionId = ?.
    fetchByCtCollectionId_Last(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
    Returns the last ct comment in the ordered set where ctCollectionId = ?.
    fetchByCtEntryId_First(long ctEntryId, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
    Returns the first ct comment in the ordered set where ctEntryId = ?.
    fetchByCtEntryId_Last(long ctEntryId, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
    Returns the last ct comment in the ordered set where ctEntryId = ?.
    fetchByPrimaryKey(long ctCommentId)
    Returns the ct comment with the primary key or returns null if it could not be found.
    Returns all the ct comments.
    findAll(int start, int end)
    Returns a range of all the ct comments.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
    Returns an ordered range of all the ct comments.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the ct comments.
    findByCtCollectionId(long ctCollectionId)
    Returns all the ct comments where ctCollectionId = ?.
    findByCtCollectionId(long ctCollectionId, int start, int end)
    Returns a range of all the ct comments where ctCollectionId = ?.
    findByCtCollectionId(long ctCollectionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
    Returns an ordered range of all the ct comments where ctCollectionId = ?.
    findByCtCollectionId(long ctCollectionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the ct comments where ctCollectionId = ?.
    findByCtCollectionId_First(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
    Returns the first ct comment in the ordered set where ctCollectionId = ?.
    findByCtCollectionId_Last(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
    Returns the last ct comment in the ordered set where ctCollectionId = ?.
    findByCtCollectionId_PrevAndNext(long ctCommentId, long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
    Returns the ct comments before and after the current ct comment in the ordered set where ctCollectionId = ?.
    findByCtEntryId(long ctEntryId)
    Returns all the ct comments where ctEntryId = ?.
    findByCtEntryId(long ctEntryId, int start, int end)
    Returns a range of all the ct comments where ctEntryId = ?.
    findByCtEntryId(long ctEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
    Returns an ordered range of all the ct comments where ctEntryId = ?.
    findByCtEntryId(long ctEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the ct comments where ctEntryId = ?.
    findByCtEntryId_First(long ctEntryId, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
    Returns the first ct comment in the ordered set where ctEntryId = ?.
    findByCtEntryId_Last(long ctEntryId, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
    Returns the last ct comment in the ordered set where ctEntryId = ?.
    findByCtEntryId_PrevAndNext(long ctCommentId, long ctEntryId, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
    Returns the ct comments before and after the current ct comment in the ordered set where ctEntryId = ?.
    findByPrimaryKey(long ctCommentId)
    Returns the ct comment with the primary key or throws a NoSuchCommentException if it could not be found.
    remove(long ctCommentId)
    Removes the ct comment with the primary key from the database.
    void
    Removes all the ct comments from the database.
    void
    removeByCtCollectionId(long ctCollectionId)
    Removes all the ct comments where ctCollectionId = ? from the database.
    void
    removeByCtEntryId(long ctEntryId)
    Removes all the ct comments where ctEntryId = ? from the database.
    updateImpl(CTComment ctComment)
     

    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

    • findByCtCollectionId

      List<CTComment> findByCtCollectionId(long ctCollectionId)
      Returns all the ct comments where ctCollectionId = ?.
      Parameters:
      ctCollectionId - the ct collection ID
      Returns:
      the matching ct comments
    • findByCtCollectionId

      List<CTComment> findByCtCollectionId(long ctCollectionId, int start, int end)
      Returns a range of all the ct comments where ctCollectionId = ?.

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

      Parameters:
      ctCollectionId - the ct collection ID
      start - the lower bound of the range of ct comments
      end - the upper bound of the range of ct comments (not inclusive)
      Returns:
      the range of matching ct comments
    • findByCtCollectionId

      List<CTComment> findByCtCollectionId(long ctCollectionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
      Returns an ordered range of all the ct comments where ctCollectionId = ?.

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

      Parameters:
      ctCollectionId - the ct collection ID
      start - the lower bound of the range of ct comments
      end - the upper bound of the range of ct comments (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching ct comments
    • findByCtCollectionId

      List<CTComment> findByCtCollectionId(long ctCollectionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the ct comments where ctCollectionId = ?.

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

      Parameters:
      ctCollectionId - the ct collection ID
      start - the lower bound of the range of ct comments
      end - the upper bound of the range of ct comments (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 ct comments
    • findByCtCollectionId_First

      CTComment findByCtCollectionId_First(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator) throws NoSuchCommentException
      Returns the first ct comment in the ordered set where ctCollectionId = ?.
      Parameters:
      ctCollectionId - the ct collection ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ct comment
      Throws:
      NoSuchCommentException - if a matching ct comment could not be found
    • fetchByCtCollectionId_First

      CTComment fetchByCtCollectionId_First(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
      Returns the first ct comment in the ordered set where ctCollectionId = ?.
      Parameters:
      ctCollectionId - the ct collection ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ct comment, or null if a matching ct comment could not be found
    • findByCtCollectionId_Last

      CTComment findByCtCollectionId_Last(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator) throws NoSuchCommentException
      Returns the last ct comment in the ordered set where ctCollectionId = ?.
      Parameters:
      ctCollectionId - the ct collection ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ct comment
      Throws:
      NoSuchCommentException - if a matching ct comment could not be found
    • fetchByCtCollectionId_Last

      CTComment fetchByCtCollectionId_Last(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
      Returns the last ct comment in the ordered set where ctCollectionId = ?.
      Parameters:
      ctCollectionId - the ct collection ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ct comment, or null if a matching ct comment could not be found
    • findByCtCollectionId_PrevAndNext

      CTComment[] findByCtCollectionId_PrevAndNext(long ctCommentId, long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator) throws NoSuchCommentException
      Returns the ct comments before and after the current ct comment in the ordered set where ctCollectionId = ?.
      Parameters:
      ctCommentId - the primary key of the current ct comment
      ctCollectionId - the ct collection ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next ct comment
      Throws:
      NoSuchCommentException - if a ct comment with the primary key could not be found
    • removeByCtCollectionId

      void removeByCtCollectionId(long ctCollectionId)
      Removes all the ct comments where ctCollectionId = ? from the database.
      Parameters:
      ctCollectionId - the ct collection ID
    • countByCtCollectionId

      int countByCtCollectionId(long ctCollectionId)
      Returns the number of ct comments where ctCollectionId = ?.
      Parameters:
      ctCollectionId - the ct collection ID
      Returns:
      the number of matching ct comments
    • findByCtEntryId

      List<CTComment> findByCtEntryId(long ctEntryId)
      Returns all the ct comments where ctEntryId = ?.
      Parameters:
      ctEntryId - the ct entry ID
      Returns:
      the matching ct comments
    • findByCtEntryId

      List<CTComment> findByCtEntryId(long ctEntryId, int start, int end)
      Returns a range of all the ct comments where ctEntryId = ?.

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

      Parameters:
      ctEntryId - the ct entry ID
      start - the lower bound of the range of ct comments
      end - the upper bound of the range of ct comments (not inclusive)
      Returns:
      the range of matching ct comments
    • findByCtEntryId

      List<CTComment> findByCtEntryId(long ctEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
      Returns an ordered range of all the ct comments where ctEntryId = ?.

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

      Parameters:
      ctEntryId - the ct entry ID
      start - the lower bound of the range of ct comments
      end - the upper bound of the range of ct comments (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching ct comments
    • findByCtEntryId

      List<CTComment> findByCtEntryId(long ctEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the ct comments where ctEntryId = ?.

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

      Parameters:
      ctEntryId - the ct entry ID
      start - the lower bound of the range of ct comments
      end - the upper bound of the range of ct comments (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 ct comments
    • findByCtEntryId_First

      CTComment findByCtEntryId_First(long ctEntryId, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator) throws NoSuchCommentException
      Returns the first ct comment in the ordered set where ctEntryId = ?.
      Parameters:
      ctEntryId - the ct entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ct comment
      Throws:
      NoSuchCommentException - if a matching ct comment could not be found
    • fetchByCtEntryId_First

      CTComment fetchByCtEntryId_First(long ctEntryId, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
      Returns the first ct comment in the ordered set where ctEntryId = ?.
      Parameters:
      ctEntryId - the ct entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ct comment, or null if a matching ct comment could not be found
    • findByCtEntryId_Last

      CTComment findByCtEntryId_Last(long ctEntryId, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator) throws NoSuchCommentException
      Returns the last ct comment in the ordered set where ctEntryId = ?.
      Parameters:
      ctEntryId - the ct entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ct comment
      Throws:
      NoSuchCommentException - if a matching ct comment could not be found
    • fetchByCtEntryId_Last

      CTComment fetchByCtEntryId_Last(long ctEntryId, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
      Returns the last ct comment in the ordered set where ctEntryId = ?.
      Parameters:
      ctEntryId - the ct entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ct comment, or null if a matching ct comment could not be found
    • findByCtEntryId_PrevAndNext

      CTComment[] findByCtEntryId_PrevAndNext(long ctCommentId, long ctEntryId, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator) throws NoSuchCommentException
      Returns the ct comments before and after the current ct comment in the ordered set where ctEntryId = ?.
      Parameters:
      ctCommentId - the primary key of the current ct comment
      ctEntryId - the ct entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next ct comment
      Throws:
      NoSuchCommentException - if a ct comment with the primary key could not be found
    • removeByCtEntryId

      void removeByCtEntryId(long ctEntryId)
      Removes all the ct comments where ctEntryId = ? from the database.
      Parameters:
      ctEntryId - the ct entry ID
    • countByCtEntryId

      int countByCtEntryId(long ctEntryId)
      Returns the number of ct comments where ctEntryId = ?.
      Parameters:
      ctEntryId - the ct entry ID
      Returns:
      the number of matching ct comments
    • cacheResult

      void cacheResult(CTComment ctComment)
      Caches the ct comment in the entity cache if it is enabled.
      Parameters:
      ctComment - the ct comment
    • cacheResult

      void cacheResult(List<CTComment> ctComments)
      Caches the ct comments in the entity cache if it is enabled.
      Parameters:
      ctComments - the ct comments
    • create

      CTComment create(long ctCommentId)
      Creates a new ct comment with the primary key. Does not add the ct comment to the database.
      Parameters:
      ctCommentId - the primary key for the new ct comment
      Returns:
      the new ct comment
    • remove

      CTComment remove(long ctCommentId) throws NoSuchCommentException
      Removes the ct comment with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      ctCommentId - the primary key of the ct comment
      Returns:
      the ct comment that was removed
      Throws:
      NoSuchCommentException - if a ct comment with the primary key could not be found
    • updateImpl

      CTComment updateImpl(CTComment ctComment)
    • findByPrimaryKey

      CTComment findByPrimaryKey(long ctCommentId) throws NoSuchCommentException
      Returns the ct comment with the primary key or throws a NoSuchCommentException if it could not be found.
      Parameters:
      ctCommentId - the primary key of the ct comment
      Returns:
      the ct comment
      Throws:
      NoSuchCommentException - if a ct comment with the primary key could not be found
    • fetchByPrimaryKey

      CTComment fetchByPrimaryKey(long ctCommentId)
      Returns the ct comment with the primary key or returns null if it could not be found.
      Parameters:
      ctCommentId - the primary key of the ct comment
      Returns:
      the ct comment, or null if a ct comment with the primary key could not be found
    • findAll

      List<CTComment> findAll()
      Returns all the ct comments.
      Returns:
      the ct comments
    • findAll

      List<CTComment> findAll(int start, int end)
      Returns a range of all the ct comments.

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

      Parameters:
      start - the lower bound of the range of ct comments
      end - the upper bound of the range of ct comments (not inclusive)
      Returns:
      the range of ct comments
    • findAll

      List<CTComment> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
      Returns an ordered range of all the ct comments.

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

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

      List<CTComment> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the ct comments.

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

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

      void removeAll()
      Removes all the ct comments from the database.
    • countAll

      int countAll()
      Returns the number of ct comments.
      Returns:
      the number of ct comments