Interface CTMessagePersistence

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

@ProviderType public interface CTMessagePersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CTMessage>
The persistence interface for the ct message 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 message in the entity cache if it is enabled.
    void
    cacheResult(List<CTMessage> ctMessages)
    Caches the ct messages in the entity cache if it is enabled.
    int
    Returns the number of ct messages.
    int
    countByCtCollectionId(long ctCollectionId)
    Returns the number of ct messages where ctCollectionId = ?.
    create(long ctMessageId)
    Creates a new ct message with the primary key.
    fetchByCtCollectionId_First(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator)
    Returns the first ct message in the ordered set where ctCollectionId = ?.
    fetchByCtCollectionId_Last(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator)
    Returns the last ct message in the ordered set where ctCollectionId = ?.
    fetchByPrimaryKey(long ctMessageId)
    Returns the ct message with the primary key or returns null if it could not be found.
    Returns all the ct messages.
    findAll(int start, int end)
    Returns a range of all the ct messages.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator)
    Returns an ordered range of all the ct messages.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the ct messages.
    findByCtCollectionId(long ctCollectionId)
    Returns all the ct messages where ctCollectionId = ?.
    findByCtCollectionId(long ctCollectionId, int start, int end)
    Returns a range of all the ct messages where ctCollectionId = ?.
    findByCtCollectionId(long ctCollectionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator)
    Returns an ordered range of all the ct messages where ctCollectionId = ?.
    findByCtCollectionId(long ctCollectionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the ct messages where ctCollectionId = ?.
    findByCtCollectionId_First(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator)
    Returns the first ct message in the ordered set where ctCollectionId = ?.
    findByCtCollectionId_Last(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator)
    Returns the last ct message in the ordered set where ctCollectionId = ?.
    findByCtCollectionId_PrevAndNext(long ctMessageId, long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator)
    Returns the ct messages before and after the current ct message in the ordered set where ctCollectionId = ?.
    findByPrimaryKey(long ctMessageId)
    Returns the ct message with the primary key or throws a NoSuchMessageException if it could not be found.
    remove(long ctMessageId)
    Removes the ct message with the primary key from the database.
    void
    Removes all the ct messages from the database.
    void
    removeByCtCollectionId(long ctCollectionId)
    Removes all the ct messages where ctCollectionId = ? from the database.
    updateImpl(CTMessage ctMessage)
     

    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<CTMessage> findByCtCollectionId(long ctCollectionId)
      Returns all the ct messages where ctCollectionId = ?.
      Parameters:
      ctCollectionId - the ct collection ID
      Returns:
      the matching ct messages
    • findByCtCollectionId

      List<CTMessage> findByCtCollectionId(long ctCollectionId, int start, int end)
      Returns a range of all the ct messages 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 CTMessageModelImpl.

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

      List<CTMessage> findByCtCollectionId(long ctCollectionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator)
      Returns an ordered range of all the ct messages 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 CTMessageModelImpl.

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

      List<CTMessage> findByCtCollectionId(long ctCollectionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the ct messages 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 CTMessageModelImpl.

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

      CTMessage findByCtCollectionId_First(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator) throws NoSuchMessageException
      Returns the first ct message 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 message
      Throws:
      NoSuchMessageException - if a matching ct message could not be found
    • fetchByCtCollectionId_First

      CTMessage fetchByCtCollectionId_First(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator)
      Returns the first ct message 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 message, or null if a matching ct message could not be found
    • findByCtCollectionId_Last

      CTMessage findByCtCollectionId_Last(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator) throws NoSuchMessageException
      Returns the last ct message 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 message
      Throws:
      NoSuchMessageException - if a matching ct message could not be found
    • fetchByCtCollectionId_Last

      CTMessage fetchByCtCollectionId_Last(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator)
      Returns the last ct message 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 message, or null if a matching ct message could not be found
    • findByCtCollectionId_PrevAndNext

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

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

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

      void cacheResult(CTMessage ctMessage)
      Caches the ct message in the entity cache if it is enabled.
      Parameters:
      ctMessage - the ct message
    • cacheResult

      void cacheResult(List<CTMessage> ctMessages)
      Caches the ct messages in the entity cache if it is enabled.
      Parameters:
      ctMessages - the ct messages
    • create

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

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

      CTMessage updateImpl(CTMessage ctMessage)
    • findByPrimaryKey

      CTMessage findByPrimaryKey(long ctMessageId) throws NoSuchMessageException
      Returns the ct message with the primary key or throws a NoSuchMessageException if it could not be found.
      Parameters:
      ctMessageId - the primary key of the ct message
      Returns:
      the ct message
      Throws:
      NoSuchMessageException - if a ct message with the primary key could not be found
    • fetchByPrimaryKey

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

      List<CTMessage> findAll()
      Returns all the ct messages.
      Returns:
      the ct messages
    • findAll

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

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

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

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

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

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

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

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

      Parameters:
      start - the lower bound of the range of ct messages
      end - the upper bound of the range of ct messages (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 messages
    • removeAll

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

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