Class KBCommentUtil
com.liferay.knowledge.base.service.persistence.impl.KBCommentPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(KBComment kbComment) static voidcacheResult(List<KBComment> kbComments) static voidstatic voidclearCache(KBComment kbComment) static intcountByC_C(long classNameId, long classPK) Returns the number of kb comments where classNameId = ? and classPK = ?.static intcountByC_C_S(long classNameId, long classPK, int status) Returns the number of kb comments where classNameId = ? and classPK = ? and status = ?.static intcountByC_C_S(long classNameId, long classPK, int[] statuses) Returns the number of kb comments where classNameId = ? and classPK = ? and status = any ?.static intcountByG_C(long groupId, long classNameId) Returns the number of kb comments where groupId = ? and classNameId = ?.static intcountByG_S(long groupId, int status) Returns the number of kb comments where groupId = ? and status = ?.static intcountByGroupId(long groupId) Returns the number of kb comments where groupId = ?.static intcountByU_C_C(long userId, long classNameId, long classPK) Returns the number of kb comments where userId = ? and classNameId = ? and classPK = ?.static intcountByUuid(String uuid) Returns the number of kb comments where uuid = ?.static intcountByUuid_C(String uuid, long companyId) Returns the number of kb comments where uuid = ? and companyId = ?.static intcountByUUID_G(String uuid, long groupId) Returns the number of kb comments where uuid = ? and groupId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static KBCommentcreate(long kbCommentId) Creates a new kb comment with the primary key.static KBCommentfetchByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the first kb comment in the ordered set where classNameId = ? and classPK = ?.static KBCommentfetchByC_C_S_First(long classNameId, long classPK, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the first kb comment in the ordered set where classNameId = ? and classPK = ? and status = ?.static KBCommentfetchByG_C_First(long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the first kb comment in the ordered set where groupId = ? and classNameId = ?.static KBCommentfetchByG_S_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the first kb comment in the ordered set where groupId = ? and status = ?.static KBCommentfetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the first kb comment in the ordered set where groupId = ?.static KBCommentfetchByPrimaryKey(long kbCommentId) Returns the kb comment with the primary key or returnsnullif it could not be found.static Map<Serializable, KBComment> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static KBCommentfetchByU_C_C_First(long userId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the first kb comment in the ordered set where userId = ? and classNameId = ? and classPK = ?.static KBCommentfetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the first kb comment in the ordered set where uuid = ? and companyId = ?.static KBCommentfetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the first kb comment in the ordered set where uuid = ?.static KBCommentfetchByUUID_G(String uuid, long groupId) Returns the kb comment where uuid = ? and groupId = ? or returnsnullif it could not be found.static KBCommentfetchByUUID_G(String uuid, long groupId, boolean useFinderCache) Returns the kb comment where uuid = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.findByC_C(long classNameId, long classPK) Returns all the kb comments where classNameId = ? and classPK = ?.findByC_C(long classNameId, long classPK, int start, int end) Returns a range of all the kb comments where classNameId = ? and classPK = ?.findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns an ordered range of all the kb comments where classNameId = ? and classPK = ?.findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb comments where classNameId = ? and classPK = ?.static KBCommentfindByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the first kb comment in the ordered set where classNameId = ? and classPK = ?.findByC_C_S(long classNameId, long classPK, int status) Returns all the kb comments where classNameId = ? and classPK = ? and status = ?.findByC_C_S(long classNameId, long classPK, int[] statuses) Returns all the kb comments where classNameId = ? and classPK = ? and status = any ?.findByC_C_S(long classNameId, long classPK, int[] statuses, int start, int end) Returns a range of all the kb comments where classNameId = ? and classPK = ? and status = any ?.findByC_C_S(long classNameId, long classPK, int[] statuses, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns an ordered range of all the kb comments where classNameId = ? and classPK = ? and status = any ?.findByC_C_S(long classNameId, long classPK, int[] statuses, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb comments where classNameId = ? and classPK = ? and status = ?, optionally using the finder cache.findByC_C_S(long classNameId, long classPK, int status, int start, int end) Returns a range of all the kb comments where classNameId = ? and classPK = ? and status = ?.findByC_C_S(long classNameId, long classPK, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns an ordered range of all the kb comments where classNameId = ? and classPK = ? and status = ?.findByC_C_S(long classNameId, long classPK, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb comments where classNameId = ? and classPK = ? and status = ?.static KBCommentfindByC_C_S_First(long classNameId, long classPK, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the first kb comment in the ordered set where classNameId = ? and classPK = ? and status = ?.findByG_C(long groupId, long classNameId) Returns all the kb comments where groupId = ? and classNameId = ?.findByG_C(long groupId, long classNameId, int start, int end) Returns a range of all the kb comments where groupId = ? and classNameId = ?.findByG_C(long groupId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns an ordered range of all the kb comments where groupId = ? and classNameId = ?.findByG_C(long groupId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb comments where groupId = ? and classNameId = ?.static KBCommentfindByG_C_First(long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the first kb comment in the ordered set where groupId = ? and classNameId = ?.findByG_S(long groupId, int status) Returns all the kb comments where groupId = ? and status = ?.findByG_S(long groupId, int status, int start, int end) Returns a range of all the kb comments where groupId = ? and status = ?.findByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns an ordered range of all the kb comments where groupId = ? and status = ?.findByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb comments where groupId = ? and status = ?.static KBCommentfindByG_S_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the first kb comment in the ordered set where groupId = ? and status = ?.findByGroupId(long groupId) Returns all the kb comments where groupId = ?.findByGroupId(long groupId, int start, int end) Returns a range of all the kb comments where groupId = ?.findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns an ordered range of all the kb comments where groupId = ?.findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb comments where groupId = ?.static KBCommentfindByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the first kb comment in the ordered set where groupId = ?.static KBCommentfindByPrimaryKey(long kbCommentId) Returns the kb comment with the primary key or throws aNoSuchCommentExceptionif it could not be found.findByU_C_C(long userId, long classNameId, long classPK) Returns all the kb comments where userId = ? and classNameId = ? and classPK = ?.findByU_C_C(long userId, long classNameId, long classPK, int start, int end) Returns a range of all the kb comments where userId = ? and classNameId = ? and classPK = ?.findByU_C_C(long userId, long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns an ordered range of all the kb comments where userId = ? and classNameId = ? and classPK = ?.findByU_C_C(long userId, long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb comments where userId = ? and classNameId = ? and classPK = ?.static KBCommentfindByU_C_C_First(long userId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the first kb comment in the ordered set where userId = ? and classNameId = ? and classPK = ?.findByUuid(String uuid) Returns all the kb comments where uuid = ?.findByUuid(String uuid, int start, int end) Returns a range of all the kb comments where uuid = ?.findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns an ordered range of all the kb comments where uuid = ?.findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb comments where uuid = ?.findByUuid_C(String uuid, long companyId) Returns all the kb comments where uuid = ? and companyId = ?.findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the kb comments where uuid = ? and companyId = ?.findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns an ordered range of all the kb comments where uuid = ? and companyId = ?.findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb comments where uuid = ? and companyId = ?.static KBCommentfindByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the first kb comment in the ordered set where uuid = ? and companyId = ?.static KBCommentfindByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the first kb comment in the ordered set where uuid = ?.static KBCommentfindByUUID_G(String uuid, long groupId) Returns the kb comment where uuid = ? and groupId = ? or throws aNoSuchCommentExceptionif it could not be found.findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) static KBCommentPersistencestatic KBCommentremove(long kbCommentId) Removes the kb comment with the primary key from the database.static voidremoveByC_C(long classNameId, long classPK) Removes all the kb comments where classNameId = ? and classPK = ? from the database.static voidremoveByC_C_S(long classNameId, long classPK, int status) Removes all the kb comments where classNameId = ? and classPK = ? and status = ? from the database.static voidremoveByG_C(long groupId, long classNameId) Removes all the kb comments where groupId = ? and classNameId = ? from the database.static voidremoveByG_S(long groupId, int status) Removes all the kb comments where groupId = ? and status = ? from the database.static voidremoveByGroupId(long groupId) Removes all the kb comments where groupId = ? from the database.static voidremoveByU_C_C(long userId, long classNameId, long classPK) Removes all the kb comments where userId = ? and classNameId = ? and classPK = ? from the database.static voidremoveByUuid(String uuid) Removes all the kb comments where uuid = ? from the database.static voidremoveByUuid_C(String uuid, long companyId) Removes all the kb comments where uuid = ? and companyId = ? from the database.static KBCommentremoveByUUID_G(String uuid, long groupId) Removes the kb comment where uuid = ? and groupId = ? from the database.static voidsetPersistence(KBCommentPersistence persistence) static KBCommentstatic KBCommentstatic KBCommentupdateImpl(KBComment kbComment)
-
Constructor Details
-
KBCommentUtil
public KBCommentUtil()
-
-
Method Details
-
cacheResult
- See Also:
-
cacheResult
- See Also:
-
clearCache
public static void clearCache()- See Also:
-
clearCache
- See Also:
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
fetchByPrimaryKeys
- See Also:
-
findWithDynamicQuery
public static List<KBComment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<KBComment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
findWithDynamicQuery
public static List<KBComment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) - See Also:
-
update
- See Also:
-
update
public static KBComment update(KBComment kbComment, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
findByUuid
public static List<KBComment> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb comments where uuid = ?.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.knowledge.base.model.impl.KBCommentModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of kb commentsend- the upper bound of the range of kb 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 kb comments
-
findByUuid_First
public static KBComment findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException Returns the first kb comment in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching kb comment
-
fetchByUuid_First
public static KBComment fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the first kb comment in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching kb comment, or
nullif a matching kb comment could not be found
-
removeByUuid
Removes all the kb comments where uuid = ? from the database.- Parameters:
uuid- the uuid
-
countByUuid
Returns the number of kb comments where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the number of matching kb comments
-
findByUUID_G
Returns the kb comment where uuid = ? and groupId = ? or throws aNoSuchCommentExceptionif it could not be found.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the matching kb comment
-
fetchByUUID_G
Returns the kb comment where uuid = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
uuid- the uuidgroupId- the group IDuseFinderCache- whether to use the finder cache- Returns:
- the matching kb comment, or
nullif a matching kb comment could not be found
-
removeByUUID_G
Removes the kb comment where uuid = ? and groupId = ? from the database.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the kb comment that was removed
- Throws:
NoSuchCommentException
-
countByUUID_G
Returns the number of kb comments where uuid = ? and groupId = ?.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the number of matching kb comments
-
findByUuid_C
public static List<KBComment> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb comments where uuid = ? and companyId = ?.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.knowledge.base.model.impl.KBCommentModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of kb commentsend- the upper bound of the range of kb 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 kb comments
-
findByUuid_C_First
public static KBComment findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException Returns the first kb comment in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching kb comment
-
fetchByUuid_C_First
public static KBComment fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the first kb comment in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching kb comment, or
nullif a matching kb comment could not be found
-
removeByUuid_C
Removes all the kb comments where uuid = ? and companyId = ? from the database.- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of kb comments where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching kb comments
-
findByGroupId
public static List<KBComment> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb comments where groupId = ?.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.knowledge.base.model.impl.KBCommentModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of kb commentsend- the upper bound of the range of kb 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 kb comments
-
findByGroupId_First
public static KBComment findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException Returns the first kb comment in the ordered set where groupId = ?.- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching kb comment
-
fetchByGroupId_First
public static KBComment fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the first kb comment in the ordered set where groupId = ?.- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching kb comment, or
nullif a matching kb comment could not be found
-
removeByGroupId
public static void removeByGroupId(long groupId) Removes all the kb comments where groupId = ? from the database.- Parameters:
groupId- the group ID
-
countByGroupId
public static int countByGroupId(long groupId) Returns the number of kb comments where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the number of matching kb comments
-
findByG_C
public static List<KBComment> findByG_C(long groupId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb comments where groupId = ? and classNameId = ?.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.knowledge.base.model.impl.KBCommentModelImpl.- Parameters:
groupId- the group IDclassNameId- the class name IDstart- the lower bound of the range of kb commentsend- the upper bound of the range of kb 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 kb comments
-
findByG_C_First
public static KBComment findByG_C_First(long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException Returns the first kb comment in the ordered set where groupId = ? and classNameId = ?.- Parameters:
groupId- the group IDclassNameId- the class name IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching kb comment
-
fetchByG_C_First
public static KBComment fetchByG_C_First(long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the first kb comment in the ordered set where groupId = ? and classNameId = ?.- Parameters:
groupId- the group IDclassNameId- the class name IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching kb comment, or
nullif a matching kb comment could not be found
-
removeByG_C
public static void removeByG_C(long groupId, long classNameId) Removes all the kb comments where groupId = ? and classNameId = ? from the database.- Parameters:
groupId- the group IDclassNameId- the class name ID
-
countByG_C
public static int countByG_C(long groupId, long classNameId) Returns the number of kb comments where groupId = ? and classNameId = ?.- Parameters:
groupId- the group IDclassNameId- the class name ID- Returns:
- the number of matching kb comments
-
findByG_S
public static List<KBComment> findByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb comments where groupId = ? and status = ?.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.knowledge.base.model.impl.KBCommentModelImpl.- Parameters:
groupId- the group IDstatus- the statusstart- the lower bound of the range of kb commentsend- the upper bound of the range of kb 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 kb comments
-
findByG_S_First
public static KBComment findByG_S_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException Returns the first kb comment in the ordered set where groupId = ? and status = ?.- Parameters:
groupId- the group IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching kb comment
-
fetchByG_S_First
public static KBComment fetchByG_S_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the first kb comment in the ordered set where groupId = ? and status = ?.- Parameters:
groupId- the group IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching kb comment, or
nullif a matching kb comment could not be found
-
removeByG_S
public static void removeByG_S(long groupId, int status) Removes all the kb comments where groupId = ? and status = ? from the database.- Parameters:
groupId- the group IDstatus- the status
-
countByG_S
public static int countByG_S(long groupId, int status) Returns the number of kb comments where groupId = ? and status = ?.- Parameters:
groupId- the group IDstatus- the status- Returns:
- the number of matching kb comments
-
findByC_C
public static List<KBComment> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb comments where classNameId = ? and classPK = ?.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.knowledge.base.model.impl.KBCommentModelImpl.- Parameters:
classNameId- the class name IDclassPK- the class pkstart- the lower bound of the range of kb commentsend- the upper bound of the range of kb 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 kb comments
-
findByC_C_First
public static KBComment findByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException Returns the first kb comment in the ordered set where classNameId = ? and classPK = ?.- Parameters:
classNameId- the class name IDclassPK- the class pkorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching kb comment
-
fetchByC_C_First
public static KBComment fetchByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the first kb comment in the ordered set where classNameId = ? and classPK = ?.- Parameters:
classNameId- the class name IDclassPK- the class pkorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching kb comment, or
nullif a matching kb comment could not be found
-
removeByC_C
public static void removeByC_C(long classNameId, long classPK) Removes all the kb comments where classNameId = ? and classPK = ? from the database.- Parameters:
classNameId- the class name IDclassPK- the class pk
-
countByC_C
public static int countByC_C(long classNameId, long classPK) Returns the number of kb comments where classNameId = ? and classPK = ?.- Parameters:
classNameId- the class name IDclassPK- the class pk- Returns:
- the number of matching kb comments
-
findByU_C_C
public static List<KBComment> findByU_C_C(long userId, long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb comments where userId = ? and classNameId = ? and classPK = ?.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.knowledge.base.model.impl.KBCommentModelImpl.- Parameters:
userId- the user IDclassNameId- the class name IDclassPK- the class pkstart- the lower bound of the range of kb commentsend- the upper bound of the range of kb 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 kb comments
-
findByU_C_C_First
public static KBComment findByU_C_C_First(long userId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException Returns the first kb comment in the ordered set where userId = ? and classNameId = ? and classPK = ?.- Parameters:
userId- the user IDclassNameId- the class name IDclassPK- the class pkorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching kb comment
-
fetchByU_C_C_First
public static KBComment fetchByU_C_C_First(long userId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the first kb comment in the ordered set where userId = ? and classNameId = ? and classPK = ?.- Parameters:
userId- the user IDclassNameId- the class name IDclassPK- the class pkorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching kb comment, or
nullif a matching kb comment could not be found
-
removeByU_C_C
public static void removeByU_C_C(long userId, long classNameId, long classPK) Removes all the kb comments where userId = ? and classNameId = ? and classPK = ? from the database.- Parameters:
userId- the user IDclassNameId- the class name IDclassPK- the class pk
-
countByU_C_C
public static int countByU_C_C(long userId, long classNameId, long classPK) Returns the number of kb comments where userId = ? and classNameId = ? and classPK = ?.- Parameters:
userId- the user IDclassNameId- the class name IDclassPK- the class pk- Returns:
- the number of matching kb comments
-
findByC_C_S
public static List<KBComment> findByC_C_S(long classNameId, long classPK, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb comments where classNameId = ? and classPK = ? and status = ?.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.knowledge.base.model.impl.KBCommentModelImpl.- Parameters:
classNameId- the class name IDclassPK- the class pkstatus- the statusstart- the lower bound of the range of kb commentsend- the upper bound of the range of kb 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 kb comments
-
findByC_C_S_First
public static KBComment findByC_C_S_First(long classNameId, long classPK, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException Returns the first kb comment in the ordered set where classNameId = ? and classPK = ? and status = ?.- Parameters:
classNameId- the class name IDclassPK- the class pkstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching kb comment
-
fetchByC_C_S_First
public static KBComment fetchByC_C_S_First(long classNameId, long classPK, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the first kb comment in the ordered set where classNameId = ? and classPK = ? and status = ?.- Parameters:
classNameId- the class name IDclassPK- the class pkstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching kb comment, or
nullif a matching kb comment could not be found
-
findByC_C_S
public static List<KBComment> findByC_C_S(long classNameId, long classPK, int[] statuses, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb comments where classNameId = ? and classPK = ? and status = ?, optionally using the finder cache.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.knowledge.base.model.impl.KBCommentModelImpl.- Parameters:
classNameId- the class name IDclassPK- the class pkstatuses- the statusesstart- the lower bound of the range of kb commentsend- the upper bound of the range of kb 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 kb comments
-
removeByC_C_S
public static void removeByC_C_S(long classNameId, long classPK, int status) Removes all the kb comments where classNameId = ? and classPK = ? and status = ? from the database.- Parameters:
classNameId- the class name IDclassPK- the class pkstatus- the status
-
countByC_C_S
public static int countByC_C_S(long classNameId, long classPK, int status) Returns the number of kb comments where classNameId = ? and classPK = ? and status = ?.- Parameters:
classNameId- the class name IDclassPK- the class pkstatus- the status- Returns:
- the number of matching kb comments
-
countByC_C_S
public static int countByC_C_S(long classNameId, long classPK, int[] statuses) Returns the number of kb comments where classNameId = ? and classPK = ? and status = any ?.- Parameters:
classNameId- the class name IDclassPK- the class pkstatuses- the statuses- Returns:
- the number of matching kb comments
-
create
Creates a new kb comment with the primary key. Does not add the kb comment to the database.- Parameters:
kbCommentId- the primary key for the new kb comment- Returns:
- the new kb comment
-
remove
Removes the kb comment with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
kbCommentId- the primary key of the kb comment- Returns:
- the kb comment that was removed
-
updateImpl
-
findByPrimaryKey
Returns the kb comment with the primary key or throws aNoSuchCommentExceptionif it could not be found.- Parameters:
kbCommentId- the primary key of the kb comment- Returns:
- the kb comment
-
fetchByPrimaryKey
Returns the kb comment with the primary key or returnsnullif it could not be found.- Parameters:
kbCommentId- the primary key of the kb comment- Returns:
- the kb comment, or
nullif a kb comment with the primary key could not be found
-
fetchByUUID_G
Returns the kb comment where uuid = ? and groupId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the matching kb comment, or
nullif a matching kb comment could not be found
-
findByUuid
Returns all the kb comments where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching kb comments
-
findByUuid
Returns a range of all the kb comments where uuid = ?.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.knowledge.base.model.impl.KBCommentModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of kb commentsend- the upper bound of the range of kb comments (not inclusive)- Returns:
- the range of matching kb comments
-
findByUuid
public static List<KBComment> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns an ordered range of all the kb comments where uuid = ?.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.knowledge.base.model.impl.KBCommentModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of kb commentsend- the upper bound of the range of kb comments (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching kb comments
-
findByUuid_C
Returns all the kb comments where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching kb comments
-
findByUuid_C
Returns a range of all the kb comments where uuid = ? and companyId = ?.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.knowledge.base.model.impl.KBCommentModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of kb commentsend- the upper bound of the range of kb comments (not inclusive)- Returns:
- the range of matching kb comments
-
findByUuid_C
public static List<KBComment> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns an ordered range of all the kb comments where uuid = ? and companyId = ?.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.knowledge.base.model.impl.KBCommentModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of kb commentsend- the upper bound of the range of kb comments (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching kb comments
-
findByGroupId
Returns all the kb comments where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the matching kb comments
-
findByGroupId
Returns a range of all the kb comments where groupId = ?.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.knowledge.base.model.impl.KBCommentModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of kb commentsend- the upper bound of the range of kb comments (not inclusive)- Returns:
- the range of matching kb comments
-
findByGroupId
public static List<KBComment> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns an ordered range of all the kb comments where groupId = ?.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.knowledge.base.model.impl.KBCommentModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of kb commentsend- the upper bound of the range of kb comments (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching kb comments
-
findByG_C
Returns all the kb comments where groupId = ? and classNameId = ?.- Parameters:
groupId- the group IDclassNameId- the class name ID- Returns:
- the matching kb comments
-
findByG_C
Returns a range of all the kb comments where groupId = ? and classNameId = ?.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.knowledge.base.model.impl.KBCommentModelImpl.- Parameters:
groupId- the group IDclassNameId- the class name IDstart- the lower bound of the range of kb commentsend- the upper bound of the range of kb comments (not inclusive)- Returns:
- the range of matching kb comments
-
findByG_C
public static List<KBComment> findByG_C(long groupId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns an ordered range of all the kb comments where groupId = ? and classNameId = ?.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.knowledge.base.model.impl.KBCommentModelImpl.- Parameters:
groupId- the group IDclassNameId- the class name IDstart- the lower bound of the range of kb commentsend- the upper bound of the range of kb comments (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching kb comments
-
findByG_S
Returns all the kb comments where groupId = ? and status = ?.- Parameters:
groupId- the group IDstatus- the status- Returns:
- the matching kb comments
-
findByG_S
Returns a range of all the kb comments where groupId = ? and status = ?.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.knowledge.base.model.impl.KBCommentModelImpl.- Parameters:
groupId- the group IDstatus- the statusstart- the lower bound of the range of kb commentsend- the upper bound of the range of kb comments (not inclusive)- Returns:
- the range of matching kb comments
-
findByG_S
public static List<KBComment> findByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns an ordered range of all the kb comments where groupId = ? and status = ?.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.knowledge.base.model.impl.KBCommentModelImpl.- Parameters:
groupId- the group IDstatus- the statusstart- the lower bound of the range of kb commentsend- the upper bound of the range of kb comments (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching kb comments
-
findByC_C
Returns all the kb comments where classNameId = ? and classPK = ?.- Parameters:
classNameId- the class name IDclassPK- the class pk- Returns:
- the matching kb comments
-
findByC_C
Returns a range of all the kb comments where classNameId = ? and classPK = ?.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.knowledge.base.model.impl.KBCommentModelImpl.- Parameters:
classNameId- the class name IDclassPK- the class pkstart- the lower bound of the range of kb commentsend- the upper bound of the range of kb comments (not inclusive)- Returns:
- the range of matching kb comments
-
findByC_C
public static List<KBComment> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns an ordered range of all the kb comments where classNameId = ? and classPK = ?.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.knowledge.base.model.impl.KBCommentModelImpl.- Parameters:
classNameId- the class name IDclassPK- the class pkstart- the lower bound of the range of kb commentsend- the upper bound of the range of kb comments (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching kb comments
-
findByU_C_C
Returns all the kb comments where userId = ? and classNameId = ? and classPK = ?.- Parameters:
userId- the user IDclassNameId- the class name IDclassPK- the class pk- Returns:
- the matching kb comments
-
findByU_C_C
public static List<KBComment> findByU_C_C(long userId, long classNameId, long classPK, int start, int end) Returns a range of all the kb comments where userId = ? and classNameId = ? and classPK = ?.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.knowledge.base.model.impl.KBCommentModelImpl.- Parameters:
userId- the user IDclassNameId- the class name IDclassPK- the class pkstart- the lower bound of the range of kb commentsend- the upper bound of the range of kb comments (not inclusive)- Returns:
- the range of matching kb comments
-
findByU_C_C
public static List<KBComment> findByU_C_C(long userId, long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns an ordered range of all the kb comments where userId = ? and classNameId = ? and classPK = ?.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.knowledge.base.model.impl.KBCommentModelImpl.- Parameters:
userId- the user IDclassNameId- the class name IDclassPK- the class pkstart- the lower bound of the range of kb commentsend- the upper bound of the range of kb comments (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching kb comments
-
findByC_C_S
Returns all the kb comments where classNameId = ? and classPK = ? and status = ?.- Parameters:
classNameId- the class name IDclassPK- the class pkstatus- the status- Returns:
- the matching kb comments
-
findByC_C_S
public static List<KBComment> findByC_C_S(long classNameId, long classPK, int status, int start, int end) Returns a range of all the kb comments where classNameId = ? and classPK = ? and status = ?.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.knowledge.base.model.impl.KBCommentModelImpl.- Parameters:
classNameId- the class name IDclassPK- the class pkstatus- the statusstart- the lower bound of the range of kb commentsend- the upper bound of the range of kb comments (not inclusive)- Returns:
- the range of matching kb comments
-
findByC_C_S
public static List<KBComment> findByC_C_S(long classNameId, long classPK, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns an ordered range of all the kb comments where classNameId = ? and classPK = ? and status = ?.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.knowledge.base.model.impl.KBCommentModelImpl.- Parameters:
classNameId- the class name IDclassPK- the class pkstatus- the statusstart- the lower bound of the range of kb commentsend- the upper bound of the range of kb comments (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching kb comments
-
findByC_C_S
Returns all the kb comments where classNameId = ? and classPK = ? and status = any ?.- Parameters:
classNameId- the class name IDclassPK- the class pkstatuses- the statuses- Returns:
- the matching kb comments
-
findByC_C_S
public static List<KBComment> findByC_C_S(long classNameId, long classPK, int[] statuses, int start, int end) Returns a range of all the kb comments where classNameId = ? and classPK = ? and status = any ?.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.knowledge.base.model.impl.KBCommentModelImpl.- Parameters:
classNameId- the class name IDclassPK- the class pkstatuses- the statusesstart- the lower bound of the range of kb commentsend- the upper bound of the range of kb comments (not inclusive)- Returns:
- the range of matching kb comments
-
findByC_C_S
public static List<KBComment> findByC_C_S(long classNameId, long classPK, int[] statuses, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns an ordered range of all the kb comments where classNameId = ? and classPK = ? and status = any ?.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.knowledge.base.model.impl.KBCommentModelImpl.- Parameters:
classNameId- the class name IDclassPK- the class pkstatuses- the statusesstart- the lower bound of the range of kb commentsend- the upper bound of the range of kb comments (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching kb comments
-
getPersistence
-
setPersistence
-