Interface CTCommentPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CTComment>
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 comments where ctCollectionId = ?.intcountByCtEntryId(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 = ?.fetchByCtEntryId_First(long ctEntryId, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator) Returns the first ct comment in the ordered set where ctEntryId = ?.fetchByPrimaryKey(long ctCommentId) Returns the ct comment with the primary key or returnsnullif it could not be found.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 = ?.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 = ?.findByPrimaryKey(long ctCommentId) Returns the ct comment with the primary key or throws aNoSuchCommentExceptionif it could not be found.remove(long ctCommentId) Removes the ct comment with the primary key from the database.voidremoveByCtCollectionId(long ctCollectionId) Removes all the ct comments where ctCollectionId = ? from the database.voidremoveByCtEntryId(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
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<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 - 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.CTCommentModelImpl.- Parameters:
ctCollectionId- the ct collection IDstart- the lower bound of the range of ct commentsend- the upper bound of the range of ct comments (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 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 IDorderByComparator- the comparator to order the set by (optionallynull)- 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching ct comment, or
nullif a matching ct comment 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, 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 - 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.CTCommentModelImpl.- Parameters:
ctEntryId- the ct entry IDstart- the lower bound of the range of ct commentsend- the upper bound of the range of ct comments (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 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 IDorderByComparator- the comparator to order the set by (optionallynull)- 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching ct comment, or
nullif a matching ct comment 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
-
create
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
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
-
findByPrimaryKey
Returns the ct comment with the primary key or throws aNoSuchCommentExceptionif 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
Returns the ct comment with the primary key or returnsnullif it could not be found.- Parameters:
ctCommentId- the primary key of the ct comment- Returns:
- the ct comment, or
nullif a ct comment with the primary key could not be found
-
findByCtCollectionId
Returns all the ct comments where ctCollectionId = ?.- Parameters:
ctCollectionId- the ct collection ID- Returns:
- the matching ct comments
-
findByCtCollectionId
Returns a range of all the ct comments 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.CTCommentModelImpl.- Parameters:
ctCollectionId- the ct collection IDstart- the lower bound of the range of ct commentsend- the upper bound of the range of ct comments (not inclusive)- Returns:
- the range of matching ct comments
-
findByCtCollectionId
default 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 - 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.CTCommentModelImpl.- Parameters:
ctCollectionId- the ct collection IDstart- the lower bound of the range of ct commentsend- the upper bound of the range of ct comments (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching ct comments
-
findByCtEntryId
Returns all the ct comments where ctEntryId = ?.- Parameters:
ctEntryId- the ct entry ID- Returns:
- the matching ct comments
-
findByCtEntryId
Returns a range of all the ct comments where ctEntryId = ?.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.CTCommentModelImpl.- Parameters:
ctEntryId- the ct entry IDstart- the lower bound of the range of ct commentsend- the upper bound of the range of ct comments (not inclusive)- Returns:
- the range of matching ct comments
-
findByCtEntryId
default 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 - 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.CTCommentModelImpl.- Parameters:
ctEntryId- the ct entry IDstart- the lower bound of the range of ct commentsend- the upper bound of the range of ct comments (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching ct comments
-