Interface CTMessagePersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CTMessage>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionintcountByCtCollectionId(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 = ?.fetchByPrimaryKey(long ctMessageId) Returns the ct message with the primary key or returnsnullif it could not be found.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 = ?.findByPrimaryKey(long ctMessageId) Returns the ct message with the primary key or throws aNoSuchMessageExceptionif it could not be found.remove(long ctMessageId) Removes the ct message with the primary key from the database.voidremoveByCtCollectionId(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
cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, setDataSource, unregisterListener, update, update
-
Method Details
-
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.change.tracking.model.impl.CTMessageModelImpl.- Parameters:
ctCollectionId- the ct collection IDstart- the lower bound of the range of ct messagesend- the upper bound of the range of ct messages (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 IDorderByComparator- the comparator to order the set by (optionallynull)- 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching ct message, or
nullif a matching ct message 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
-
create
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
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
-
findByPrimaryKey
Returns the ct message with the primary key or throws aNoSuchMessageExceptionif 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
Returns the ct message with the primary key or returnsnullif it could not be found.- Parameters:
ctMessageId- the primary key of the ct message- Returns:
- the ct message, or
nullif a ct message with the primary key could not be found
-
findByCtCollectionId
Returns all the ct messages where ctCollectionId = ?.- Parameters:
ctCollectionId- the ct collection ID- Returns:
- the matching ct messages
-
findByCtCollectionId
Returns a range of all the ct messages where ctCollectionId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.change.tracking.model.impl.CTMessageModelImpl.- Parameters:
ctCollectionId- the ct collection IDstart- the lower bound of the range of ct messagesend- the upper bound of the range of ct messages (not inclusive)- Returns:
- the range of matching ct messages
-
findByCtCollectionId
default 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.change.tracking.model.impl.CTMessageModelImpl.- Parameters:
ctCollectionId- the ct collection IDstart- the lower bound of the range of ct messagesend- the upper bound of the range of ct messages (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching ct messages
-