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 void
cacheResult
(KBComment kbComment) Caches the kb comment in the entity cache if it is enabled.static void
cacheResult
(List<KBComment> kbComments) Caches the kb comments in the entity cache if it is enabled.static void
static void
clearCache
(KBComment kbComment) static int
countAll()
Returns the number of kb comments.static int
countByC_C
(long classNameId, long classPK) Returns the number of kb comments where classNameId = ? and classPK = ?.static int
countByC_C_S
(long classNameId, long classPK, int status) Returns the number of kb comments where classNameId = ? and classPK = ? and status = ?.static int
countByC_C_S
(long classNameId, long classPK, int[] statuses) Returns the number of kb comments where classNameId = ? and classPK = ? and status = any ?.static int
countByG_C
(long groupId, long classNameId) Returns the number of kb comments where groupId = ? and classNameId = ?.static int
countByG_S
(long groupId, int status) Returns the number of kb comments where groupId = ? and status = ?.static int
countByGroupId
(long groupId) Returns the number of kb comments where groupId = ?.static int
countByU_C_C
(long userId, long classNameId, long classPK) Returns the number of kb comments where userId = ? and classNameId = ? and classPK = ?.static int
countByUuid
(String uuid) Returns the number of kb comments where uuid = ?.static int
countByUuid_C
(String uuid, long companyId) Returns the number of kb comments where uuid = ? and companyId = ?.static int
countByUUID_G
(String uuid, long groupId) Returns the number of kb comments where uuid = ? and groupId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static KBComment
create
(long kbCommentId) Creates a new kb comment with the primary key.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 = ?.static KBComment
fetchByC_C_Last
(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the last kb comment in the ordered set where classNameId = ? and classPK = ?.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 = ?.static KBComment
fetchByC_C_S_Last
(long classNameId, long classPK, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the last kb comment in the ordered set where classNameId = ? and classPK = ? and status = ?.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 = ?.static KBComment
fetchByG_C_Last
(long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the last kb comment in the ordered set where groupId = ? and classNameId = ?.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 = ?.static KBComment
fetchByG_S_Last
(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the last kb comment in the ordered set where groupId = ? and status = ?.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 = ?.static KBComment
fetchByGroupId_Last
(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the last kb comment in the ordered set where groupId = ?.static KBComment
fetchByPrimaryKey
(long kbCommentId) Returns the kb comment with the primary key or returnsnull
if it could not be found.static Map<Serializable,
KBComment> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) 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 = ?.static KBComment
fetchByU_C_C_Last
(long userId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the last kb comment in the ordered set where userId = ? and classNameId = ? and classPK = ?.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 = ?.static KBComment
fetchByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the last kb comment in the ordered set where uuid = ? and companyId = ?.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 = ?.static KBComment
fetchByUUID_G
(String uuid, long groupId) Returns the kb comment where uuid = ? and groupId = ? or returnsnull
if it could not be found.static KBComment
fetchByUUID_G
(String uuid, long groupId, boolean useFinderCache) Returns the kb comment where uuid = ? and groupId = ? or returnsnull
if it could not be found, optionally using the finder cache.static KBComment
fetchByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the last kb comment in the ordered set where uuid = ?.findAll()
Returns all the kb comments.findAll
(int start, int end) Returns a range of all the kb comments.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns an ordered range of all the kb comments.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb comments.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 KBComment
findByC_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 KBComment
findByC_C_Last
(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the last kb comment in the ordered set where classNameId = ? and classPK = ?.static KBComment[]
findByC_C_PrevAndNext
(long kbCommentId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the kb comments before and after the current 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 KBComment
findByC_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 KBComment
findByC_C_S_Last
(long classNameId, long classPK, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the last kb comment in the ordered set where classNameId = ? and classPK = ? and status = ?.static KBComment[]
findByC_C_S_PrevAndNext
(long kbCommentId, long classNameId, long classPK, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the kb comments before and after the current 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 KBComment
findByG_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 KBComment
findByG_C_Last
(long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the last kb comment in the ordered set where groupId = ? and classNameId = ?.static KBComment[]
findByG_C_PrevAndNext
(long kbCommentId, long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the kb comments before and after the current 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 KBComment
findByG_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 KBComment
findByG_S_Last
(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the last kb comment in the ordered set where groupId = ? and status = ?.static KBComment[]
findByG_S_PrevAndNext
(long kbCommentId, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the kb comments before and after the current 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 KBComment
findByGroupId_First
(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the first kb comment in the ordered set where groupId = ?.static KBComment
findByGroupId_Last
(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the last kb comment in the ordered set where groupId = ?.static KBComment[]
findByGroupId_PrevAndNext
(long kbCommentId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the kb comments before and after the current kb comment in the ordered set where groupId = ?.static KBComment
findByPrimaryKey
(long kbCommentId) Returns the kb comment with the primary key or throws aNoSuchCommentException
if 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 KBComment
findByU_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 KBComment
findByU_C_C_Last
(long userId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the last kb comment in the ordered set where userId = ? and classNameId = ? and classPK = ?.static KBComment[]
findByU_C_C_PrevAndNext
(long kbCommentId, long userId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the kb comments before and after the current 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 KBComment
findByUuid_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 KBComment
findByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the last kb comment in the ordered set where uuid = ? and companyId = ?.static KBComment[]
findByUuid_C_PrevAndNext
(long kbCommentId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the kb comments before and after the current kb comment in the ordered set where uuid = ? and companyId = ?.static KBComment
findByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the first kb comment in the ordered set where uuid = ?.static KBComment
findByUUID_G
(String uuid, long groupId) Returns the kb comment where uuid = ? and groupId = ? or throws aNoSuchCommentException
if it could not be found.static KBComment
findByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the last kb comment in the ordered set where uuid = ?.static KBComment[]
findByUuid_PrevAndNext
(long kbCommentId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the kb comments before and after the current kb comment in the ordered set where uuid = ?.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 KBCommentPersistence
static KBComment
remove
(long kbCommentId) Removes the kb comment with the primary key from the database.static void
Removes all the kb comments from the database.static void
removeByC_C
(long classNameId, long classPK) Removes all the kb comments where classNameId = ? and classPK = ? from the database.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.static void
removeByG_C
(long groupId, long classNameId) Removes all the kb comments where groupId = ? and classNameId = ? from the database.static void
removeByG_S
(long groupId, int status) Removes all the kb comments where groupId = ? and status = ? from the database.static void
removeByGroupId
(long groupId) Removes all the kb comments where groupId = ? from the database.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.static void
removeByUuid
(String uuid) Removes all the kb comments where uuid = ? from the database.static void
removeByUuid_C
(String uuid, long companyId) Removes all the kb comments where uuid = ? and companyId = ? from the database.static KBComment
removeByUUID_G
(String uuid, long groupId) Removes the kb comment where uuid = ? and groupId = ? from the database.static void
setPersistence
(KBCommentPersistence persistence) static KBComment
static KBComment
static KBComment
updateImpl
(KBComment kbComment)
-
Constructor Details
-
KBCommentUtil
public KBCommentUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
- See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<KBComment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<KBComment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
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:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static KBComment update(KBComment kbComment, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBCommentModelImpl
.- 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBCommentModelImpl
.- 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
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBCommentModelImpl
.- 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
- Throws:
NoSuchCommentException
- if a matching kb comment could not be foundNoSuchCommentException
-
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
null
if a matching kb comment could not be found
-
findByUuid_Last
public static KBComment findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException Returns the last kb comment in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching kb comment
- Throws:
NoSuchCommentException
- if a matching kb comment could not be foundNoSuchCommentException
-
fetchByUuid_Last
public static KBComment fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the last kb comment in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching kb comment, or
null
if a matching kb comment could not be found
-
findByUuid_PrevAndNext
public static KBComment[] findByUuid_PrevAndNext(long kbCommentId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException Returns the kb comments before and after the current kb comment in the ordered set where uuid = ?.- Parameters:
kbCommentId
- the primary key of the current kb commentuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next kb comment
- Throws:
NoSuchCommentException
- if a kb comment with the primary key could not be foundNoSuchCommentException
-
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 aNoSuchCommentException
if it could not be found.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the matching kb comment
- Throws:
NoSuchCommentException
- if a matching kb comment could not be foundNoSuchCommentException
-
fetchByUUID_G
Returns the kb comment where uuid = ? and groupId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the matching kb comment, or
null
if a matching kb comment could not be found
-
fetchByUUID_G
Returns the kb comment where uuid = ? and groupId = ? or returnsnull
if 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
null
if 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
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBCommentModelImpl
.- 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBCommentModelImpl
.- 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
-
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBCommentModelImpl
.- 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
- Throws:
NoSuchCommentException
- if a matching kb comment could not be foundNoSuchCommentException
-
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
null
if a matching kb comment could not be found
-
findByUuid_C_Last
public static KBComment findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException Returns the last 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 last matching kb comment
- Throws:
NoSuchCommentException
- if a matching kb comment could not be foundNoSuchCommentException
-
fetchByUuid_C_Last
public static KBComment fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the last 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 last matching kb comment, or
null
if a matching kb comment could not be found
-
findByUuid_C_PrevAndNext
public static KBComment[] findByUuid_C_PrevAndNext(long kbCommentId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException Returns the kb comments before and after the current kb comment in the ordered set where uuid = ? and companyId = ?.- Parameters:
kbCommentId
- the primary key of the current kb commentuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next kb comment
- Throws:
NoSuchCommentException
- if a kb comment with the primary key could not be foundNoSuchCommentException
-
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
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBCommentModelImpl
.- 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBCommentModelImpl
.- 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
-
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBCommentModelImpl
.- 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
- Throws:
NoSuchCommentException
- if a matching kb comment could not be foundNoSuchCommentException
-
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
null
if a matching kb comment could not be found
-
findByGroupId_Last
public static KBComment findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException Returns the last kb comment in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching kb comment
- Throws:
NoSuchCommentException
- if a matching kb comment could not be foundNoSuchCommentException
-
fetchByGroupId_Last
public static KBComment fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the last kb comment in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching kb comment, or
null
if a matching kb comment could not be found
-
findByGroupId_PrevAndNext
public static KBComment[] findByGroupId_PrevAndNext(long kbCommentId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException Returns the kb comments before and after the current kb comment in the ordered set where groupId = ?.- Parameters:
kbCommentId
- the primary key of the current kb commentgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next kb comment
- Throws:
NoSuchCommentException
- if a kb comment with the primary key could not be foundNoSuchCommentException
-
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
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBCommentModelImpl
.- 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBCommentModelImpl
.- 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_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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBCommentModelImpl
.- 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
- Throws:
NoSuchCommentException
- if a matching kb comment could not be foundNoSuchCommentException
-
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
null
if a matching kb comment could not be found
-
findByG_C_Last
public static KBComment findByG_C_Last(long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException Returns the last 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 last matching kb comment
- Throws:
NoSuchCommentException
- if a matching kb comment could not be foundNoSuchCommentException
-
fetchByG_C_Last
public static KBComment fetchByG_C_Last(long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the last 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 last matching kb comment, or
null
if a matching kb comment could not be found
-
findByG_C_PrevAndNext
public static KBComment[] findByG_C_PrevAndNext(long kbCommentId, long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException Returns the kb comments before and after the current kb comment in the ordered set where groupId = ? and classNameId = ?.- Parameters:
kbCommentId
- the primary key of the current kb commentgroupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next kb comment
- Throws:
NoSuchCommentException
- if a kb comment with the primary key could not be foundNoSuchCommentException
-
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
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBCommentModelImpl
.- 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBCommentModelImpl
.- 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
-
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBCommentModelImpl
.- 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
- Throws:
NoSuchCommentException
- if a matching kb comment could not be foundNoSuchCommentException
-
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
null
if a matching kb comment could not be found
-
findByG_S_Last
public static KBComment findByG_S_Last(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException Returns the last 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 last matching kb comment
- Throws:
NoSuchCommentException
- if a matching kb comment could not be foundNoSuchCommentException
-
fetchByG_S_Last
public static KBComment fetchByG_S_Last(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the last 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 last matching kb comment, or
null
if a matching kb comment could not be found
-
findByG_S_PrevAndNext
public static KBComment[] findByG_S_PrevAndNext(long kbCommentId, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException Returns the kb comments before and after the current kb comment in the ordered set where groupId = ? and status = ?.- Parameters:
kbCommentId
- the primary key of the current kb commentgroupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next kb comment
- Throws:
NoSuchCommentException
- if a kb comment with the primary key could not be foundNoSuchCommentException
-
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
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBCommentModelImpl
.- 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBCommentModelImpl
.- 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
-
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBCommentModelImpl
.- 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
- Throws:
NoSuchCommentException
- if a matching kb comment could not be foundNoSuchCommentException
-
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
null
if a matching kb comment could not be found
-
findByC_C_Last
public static KBComment findByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException Returns the last 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 last matching kb comment
- Throws:
NoSuchCommentException
- if a matching kb comment could not be foundNoSuchCommentException
-
fetchByC_C_Last
public static KBComment fetchByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the last 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 last matching kb comment, or
null
if a matching kb comment could not be found
-
findByC_C_PrevAndNext
public static KBComment[] findByC_C_PrevAndNext(long kbCommentId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException Returns the kb comments before and after the current kb comment in the ordered set where classNameId = ? and classPK = ?.- Parameters:
kbCommentId
- the primary key of the current kb commentclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next kb comment
- Throws:
NoSuchCommentException
- if a kb comment with the primary key could not be foundNoSuchCommentException
-
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
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBCommentModelImpl
.- 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBCommentModelImpl
.- 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
-
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBCommentModelImpl
.- 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
- Throws:
NoSuchCommentException
- if a matching kb comment could not be foundNoSuchCommentException
-
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
null
if a matching kb comment could not be found
-
findByU_C_C_Last
public static KBComment findByU_C_C_Last(long userId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException Returns the last 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 last matching kb comment
- Throws:
NoSuchCommentException
- if a matching kb comment could not be foundNoSuchCommentException
-
fetchByU_C_C_Last
public static KBComment fetchByU_C_C_Last(long userId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the last 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 last matching kb comment, or
null
if a matching kb comment could not be found
-
findByU_C_C_PrevAndNext
public static KBComment[] findByU_C_C_PrevAndNext(long kbCommentId, long userId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException Returns the kb comments before and after the current kb comment in the ordered set where userId = ? and classNameId = ? and classPK = ?.- Parameters:
kbCommentId
- the primary key of the current kb commentuserId
- the user IDclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next kb comment
- Throws:
NoSuchCommentException
- if a kb comment with the primary key could not be foundNoSuchCommentException
-
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
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBCommentModelImpl
.- 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBCommentModelImpl
.- 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
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBCommentModelImpl
.- 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
- Throws:
NoSuchCommentException
- if a matching kb comment could not be foundNoSuchCommentException
-
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
null
if a matching kb comment could not be found
-
findByC_C_S_Last
public static KBComment findByC_C_S_Last(long classNameId, long classPK, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException Returns the last 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 last matching kb comment
- Throws:
NoSuchCommentException
- if a matching kb comment could not be foundNoSuchCommentException
-
fetchByC_C_S_Last
public static KBComment fetchByC_C_S_Last(long classNameId, long classPK, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns the last 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 last matching kb comment, or
null
if a matching kb comment could not be found
-
findByC_C_S_PrevAndNext
public static KBComment[] findByC_C_S_PrevAndNext(long kbCommentId, long classNameId, long classPK, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException Returns the kb comments before and after the current kb comment in the ordered set where classNameId = ? and classPK = ? and status = ?.- Parameters:
kbCommentId
- the primary key of the current kb commentclassNameId
- the class name IDclassPK
- the class pkstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next kb comment
- Throws:
NoSuchCommentException
- if a kb comment with the primary key could not be foundNoSuchCommentException
-
findByC_C_S
Returns all the kb comments where classNameId = ? and classPK = ? and status = any ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBCommentModelImpl
.- 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBCommentModelImpl
.- 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBCommentModelImpl
.- 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
-
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBCommentModelImpl
.- 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
-
cacheResult
Caches the kb comment in the entity cache if it is enabled.- Parameters:
kbComment
- the kb comment
-
cacheResult
Caches the kb comments in the entity cache if it is enabled.- Parameters:
kbComments
- the 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
- Throws:
NoSuchCommentException
- if a kb comment with the primary key could not be foundNoSuchCommentException
-
updateImpl
-
findByPrimaryKey
Returns the kb comment with the primary key or throws aNoSuchCommentException
if it could not be found.- Parameters:
kbCommentId
- the primary key of the kb comment- Returns:
- the kb comment
- Throws:
NoSuchCommentException
- if a kb comment with the primary key could not be foundNoSuchCommentException
-
fetchByPrimaryKey
Returns the kb comment with the primary key or returnsnull
if it could not be found.- Parameters:
kbCommentId
- the primary key of the kb comment- Returns:
- the kb comment, or
null
if a kb comment with the primary key could not be found
-
findAll
Returns all the kb comments.- Returns:
- the kb comments
-
findAll
Returns a range of all the kb comments.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBCommentModelImpl
.- Parameters:
start
- the lower bound of the range of kb commentsend
- the upper bound of the range of kb comments (not inclusive)- Returns:
- the range of kb comments
-
findAll
public static List<KBComment> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) Returns an ordered range of all the kb comments.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBCommentModelImpl
.- Parameters:
start
- 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 kb comments
-
findAll
public static List<KBComment> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb comments.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBCommentModelImpl
.- Parameters:
start
- 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 kb comments
-
removeAll
public static void removeAll()Removes all the kb comments from the database. -
countAll
public static int countAll()Returns the number of kb comments.- Returns:
- the number of kb comments
-
getPersistence
-
setPersistence
-