public class KBCommentUtil
extends java.lang.Object
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
KBCommentPersistence
Constructor and Description |
---|
KBCommentUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(KBComment kbComment)
Caches the kb comment in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<KBComment> kbComments)
Caches the kb comments in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(KBComment kbComment) |
static int |
countAll()
Returns the number of kb comments.
|
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 |
countByC_C(long classNameId,
long classPK)
Returns the number of kb comments where classNameId = ? and classPK = ?.
|
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_C(java.lang.String uuid,
long companyId)
Returns the number of kb comments where uuid = ? and companyId = ?.
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of kb comments where uuid = ? and groupId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of kb comments where uuid = ?.
|
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 returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,KBComment> |
fetchByPrimaryKeys(java.util.Set<java.io.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(java.lang.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(java.lang.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(java.lang.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(java.lang.String uuid,
long groupId)
Returns the kb comment where uuid = ? and groupId = ? or returns
null if it could not be found. |
static KBComment |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean useFinderCache)
Returns the kb comment where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
static KBComment |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
Returns the last kb comment in the ordered set where uuid = ?.
|
static java.util.List<KBComment> |
findAll()
Returns all the kb comments.
|
static java.util.List<KBComment> |
findAll(int start,
int end)
Returns a range of all the kb comments.
|
static java.util.List<KBComment> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
Returns an ordered range of all the kb comments.
|
static java.util.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.
|
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 = ?.
|
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 = ?.
|
static java.util.List<KBComment> |
findByC_C_S(long classNameId,
long classPK,
int status)
Returns all the kb comments where classNameId = ? and classPK = ? and status = ?.
|
static java.util.List<KBComment> |
findByC_C_S(long classNameId,
long classPK,
int[] statuses)
Returns all the kb comments where classNameId = ? and classPK = ? and status = any ?.
|
static java.util.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 ?.
|
static java.util.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 ?.
|
static java.util.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.
|
static java.util.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 = ?.
|
static java.util.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 = ?.
|
static java.util.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 = ?.
|
static java.util.List<KBComment> |
findByC_C(long classNameId,
long classPK)
Returns all the kb comments where classNameId = ? and classPK = ?.
|
static java.util.List<KBComment> |
findByC_C(long classNameId,
long classPK,
int start,
int end)
Returns a range of all the kb comments where classNameId = ? and classPK = ?.
|
static java.util.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 = ?.
|
static java.util.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 = ?.
|
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 = ?.
|
static java.util.List<KBComment> |
findByG_C(long groupId,
long classNameId)
Returns all the kb comments where groupId = ? and classNameId = ?.
|
static java.util.List<KBComment> |
findByG_C(long groupId,
long classNameId,
int start,
int end)
Returns a range of all the kb comments where groupId = ? and classNameId = ?.
|
static java.util.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 = ?.
|
static java.util.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 = ?.
|
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 = ?.
|
static java.util.List<KBComment> |
findByG_S(long groupId,
int status)
Returns all the kb comments where groupId = ? and status = ?.
|
static java.util.List<KBComment> |
findByG_S(long groupId,
int status,
int start,
int end)
Returns a range of all the kb comments where groupId = ? and status = ?.
|
static java.util.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 = ?.
|
static java.util.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 = ?.
|
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 java.util.List<KBComment> |
findByGroupId(long groupId)
Returns all the kb comments where groupId = ?.
|
static java.util.List<KBComment> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the kb comments where groupId = ?.
|
static java.util.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 = ?.
|
static java.util.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 = ?.
|
static KBComment |
findByPrimaryKey(long kbCommentId)
Returns the kb comment with the primary key or throws a
NoSuchCommentException if it could not be found. |
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 = ?.
|
static java.util.List<KBComment> |
findByU_C_C(long userId,
long classNameId,
long classPK)
Returns all the kb comments where userId = ? and classNameId = ? and classPK = ?.
|
static java.util.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 = ?.
|
static java.util.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 = ?.
|
static java.util.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 = ?.
|
static KBComment |
findByUuid_C_First(java.lang.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(java.lang.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,
java.lang.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 java.util.List<KBComment> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the kb comments where uuid = ? and companyId = ?.
|
static java.util.List<KBComment> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the kb comments where uuid = ? and companyId = ?.
|
static java.util.List<KBComment> |
findByUuid_C(java.lang.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 = ?.
|
static java.util.List<KBComment> |
findByUuid_C(java.lang.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_First(java.lang.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(java.lang.String uuid,
long groupId)
Returns the kb comment where uuid = ? and groupId = ? or throws a
NoSuchCommentException if it could not be found. |
static KBComment |
findByUuid_Last(java.lang.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,
java.lang.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 = ?.
|
static java.util.List<KBComment> |
findByUuid(java.lang.String uuid)
Returns all the kb comments where uuid = ?.
|
static java.util.List<KBComment> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the kb comments where uuid = ?.
|
static java.util.List<KBComment> |
findByUuid(java.lang.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 = ?.
|
static java.util.List<KBComment> |
findByUuid(java.lang.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 = ?.
|
static java.util.List<KBComment> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<KBComment> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<KBComment> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) |
static KBCommentPersistence |
getPersistence() |
static KBComment |
remove(long kbCommentId)
Removes the kb comment with the primary key from the database.
|
static void |
removeAll()
Removes all the kb comments 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 |
removeByC_C(long classNameId,
long classPK)
Removes all the kb comments where classNameId = ? and classPK = ? 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_C(java.lang.String uuid,
long companyId)
Removes all the kb comments where uuid = ? and companyId = ? from the database.
|
static KBComment |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the kb comment where uuid = ? and groupId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the kb comments where uuid = ? from the database.
|
static KBComment |
update(KBComment kbComment) |
static KBComment |
update(KBComment kbComment,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static KBComment |
updateImpl(KBComment kbComment) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(KBComment kbComment)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,KBComment> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<KBComment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<KBComment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<KBComment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static KBComment update(KBComment kbComment)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static KBComment update(KBComment kbComment, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<KBComment> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<KBComment> findByUuid(java.lang.String uuid, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBCommentModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of kb commentsend
- the upper bound of the range of kb comments (not inclusive)public static java.util.List<KBComment> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBCommentModelImpl
.
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 (optionally null
)public static java.util.List<KBComment> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBCommentModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static KBComment findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCommentException
- if a matching kb comment could not be foundpublic static KBComment fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kb comment could not be foundpublic static KBComment findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCommentException
- if a matching kb comment could not be foundpublic static KBComment fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kb comment could not be foundpublic static KBComment[] findByUuid_PrevAndNext(long kbCommentId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
kbCommentId
- the primary key of the current kb commentuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCommentException
- if a kb comment with the primary key could not be foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static KBComment findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchCommentException
NoSuchCommentException
if it could not be found.uuid
- the uuidgroupId
- the group IDNoSuchCommentException
- if a matching kb comment could not be foundpublic static KBComment fetchByUUID_G(java.lang.String uuid, long groupId)
null
if it could not be found. Uses the finder cache.uuid
- the uuidgroupId
- the group IDnull
if a matching kb comment could not be foundpublic static KBComment fetchByUUID_G(java.lang.String uuid, long groupId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.uuid
- the uuidgroupId
- the group IDuseFinderCache
- whether to use the finder cachenull
if a matching kb comment could not be foundpublic static KBComment removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchCommentException
uuid
- the uuidgroupId
- the group IDNoSuchCommentException
public static int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDpublic static java.util.List<KBComment> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<KBComment> findByUuid_C(java.lang.String uuid, long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBCommentModelImpl
.
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)public static java.util.List<KBComment> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBCommentModelImpl
.
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 (optionally null
)public static java.util.List<KBComment> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBCommentModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static KBComment findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCommentException
- if a matching kb comment could not be foundpublic static KBComment fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kb comment could not be foundpublic static KBComment findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCommentException
- if a matching kb comment could not be foundpublic static KBComment fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kb comment could not be foundpublic static KBComment[] findByUuid_C_PrevAndNext(long kbCommentId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
kbCommentId
- the primary key of the current kb commentuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCommentException
- if a kb comment with the primary key could not be foundpublic static void removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<KBComment> findByGroupId(long groupId)
groupId
- the group IDpublic static java.util.List<KBComment> findByGroupId(long groupId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBCommentModelImpl
.
groupId
- the group IDstart
- the lower bound of the range of kb commentsend
- the upper bound of the range of kb comments (not inclusive)public static java.util.List<KBComment> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBCommentModelImpl
.
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 (optionally null
)public static java.util.List<KBComment> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBCommentModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static KBComment findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCommentException
- if a matching kb comment could not be foundpublic static KBComment fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kb comment could not be foundpublic static KBComment findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCommentException
- if a matching kb comment could not be foundpublic static KBComment fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kb comment could not be foundpublic static KBComment[] findByGroupId_PrevAndNext(long kbCommentId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
kbCommentId
- the primary key of the current kb commentgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCommentException
- if a kb comment with the primary key could not be foundpublic static void removeByGroupId(long groupId)
groupId
- the group IDpublic static int countByGroupId(long groupId)
groupId
- the group IDpublic static java.util.List<KBComment> findByG_C(long groupId, long classNameId)
groupId
- the group IDclassNameId
- the class name IDpublic static java.util.List<KBComment> findByG_C(long groupId, long classNameId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBCommentModelImpl
.
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)public static java.util.List<KBComment> findByG_C(long groupId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBCommentModelImpl
.
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 (optionally null
)public static java.util.List<KBComment> findByG_C(long groupId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBCommentModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static KBComment findByG_C_First(long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
groupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCommentException
- if a matching kb comment could not be foundpublic static KBComment fetchByG_C_First(long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
groupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kb comment could not be foundpublic static KBComment findByG_C_Last(long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
groupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCommentException
- if a matching kb comment could not be foundpublic static KBComment fetchByG_C_Last(long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
groupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kb comment could not be foundpublic static KBComment[] findByG_C_PrevAndNext(long kbCommentId, long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
kbCommentId
- the primary key of the current kb commentgroupId
- the group IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCommentException
- if a kb comment with the primary key could not be foundpublic static void removeByG_C(long groupId, long classNameId)
groupId
- the group IDclassNameId
- the class name IDpublic static int countByG_C(long groupId, long classNameId)
groupId
- the group IDclassNameId
- the class name IDpublic static java.util.List<KBComment> findByG_S(long groupId, int status)
groupId
- the group IDstatus
- the statuspublic static java.util.List<KBComment> findByG_S(long groupId, int status, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBCommentModelImpl
.
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)public static java.util.List<KBComment> findByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBCommentModelImpl
.
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 (optionally null
)public static java.util.List<KBComment> findByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBCommentModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static KBComment findByG_S_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
groupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCommentException
- if a matching kb comment could not be foundpublic static KBComment fetchByG_S_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
groupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kb comment could not be foundpublic static KBComment findByG_S_Last(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
groupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCommentException
- if a matching kb comment could not be foundpublic static KBComment fetchByG_S_Last(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
groupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kb comment could not be foundpublic static KBComment[] findByG_S_PrevAndNext(long kbCommentId, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
kbCommentId
- the primary key of the current kb commentgroupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCommentException
- if a kb comment with the primary key could not be foundpublic static void removeByG_S(long groupId, int status)
groupId
- the group IDstatus
- the statuspublic static int countByG_S(long groupId, int status)
groupId
- the group IDstatus
- the statuspublic static java.util.List<KBComment> findByC_C(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkpublic static java.util.List<KBComment> findByC_C(long classNameId, long classPK, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBCommentModelImpl
.
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)public static java.util.List<KBComment> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBCommentModelImpl
.
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 (optionally null
)public static java.util.List<KBComment> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBCommentModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static KBComment findByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCommentException
- if a matching kb comment could not be foundpublic static KBComment fetchByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kb comment could not be foundpublic static KBComment findByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCommentException
- if a matching kb comment could not be foundpublic static KBComment fetchByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kb comment could not be foundpublic static KBComment[] findByC_C_PrevAndNext(long kbCommentId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
kbCommentId
- the primary key of the current kb commentclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCommentException
- if a kb comment with the primary key could not be foundpublic static void removeByC_C(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkpublic static int countByC_C(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkpublic static java.util.List<KBComment> findByU_C_C(long userId, long classNameId, long classPK)
userId
- the user IDclassNameId
- the class name IDclassPK
- the class pkpublic static java.util.List<KBComment> findByU_C_C(long userId, long classNameId, long classPK, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBCommentModelImpl
.
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)public static java.util.List<KBComment> findByU_C_C(long userId, long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBCommentModelImpl
.
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 (optionally null
)public static java.util.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)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBCommentModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static KBComment findByU_C_C_First(long userId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
userId
- the user IDclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCommentException
- if a matching kb comment could not be foundpublic static KBComment fetchByU_C_C_First(long userId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
userId
- the user IDclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kb comment could not be foundpublic static KBComment findByU_C_C_Last(long userId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
userId
- the user IDclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCommentException
- if a matching kb comment could not be foundpublic static KBComment fetchByU_C_C_Last(long userId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
userId
- the user IDclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kb comment could not be foundpublic static KBComment[] findByU_C_C_PrevAndNext(long kbCommentId, long userId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
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 (optionally null
)NoSuchCommentException
- if a kb comment with the primary key could not be foundpublic static void removeByU_C_C(long userId, long classNameId, long classPK)
userId
- the user IDclassNameId
- the class name IDclassPK
- the class pkpublic static int countByU_C_C(long userId, long classNameId, long classPK)
userId
- the user IDclassNameId
- the class name IDclassPK
- the class pkpublic static java.util.List<KBComment> findByC_C_S(long classNameId, long classPK, int status)
classNameId
- the class name IDclassPK
- the class pkstatus
- the statuspublic static java.util.List<KBComment> findByC_C_S(long classNameId, long classPK, int status, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBCommentModelImpl
.
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)public static java.util.List<KBComment> findByC_C_S(long classNameId, long classPK, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBCommentModelImpl
.
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 (optionally null
)public static java.util.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)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBCommentModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static KBComment findByC_C_S_First(long classNameId, long classPK, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
classNameId
- the class name IDclassPK
- the class pkstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCommentException
- if a matching kb comment could not be foundpublic static KBComment fetchByC_C_S_First(long classNameId, long classPK, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
classNameId
- the class name IDclassPK
- the class pkstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kb comment could not be foundpublic static KBComment findByC_C_S_Last(long classNameId, long classPK, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
classNameId
- the class name IDclassPK
- the class pkstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCommentException
- if a matching kb comment could not be foundpublic static KBComment fetchByC_C_S_Last(long classNameId, long classPK, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
classNameId
- the class name IDclassPK
- the class pkstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kb comment could not be foundpublic static KBComment[] findByC_C_S_PrevAndNext(long kbCommentId, long classNameId, long classPK, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
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 (optionally null
)NoSuchCommentException
- if a kb comment with the primary key could not be foundpublic static java.util.List<KBComment> findByC_C_S(long classNameId, long classPK, int[] statuses)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBCommentModelImpl
.
classNameId
- the class name IDclassPK
- the class pkstatuses
- the statusespublic static java.util.List<KBComment> findByC_C_S(long classNameId, long classPK, int[] statuses, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBCommentModelImpl
.
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)public static java.util.List<KBComment> findByC_C_S(long classNameId, long classPK, int[] statuses, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBCommentModelImpl
.
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 (optionally null
)public static java.util.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)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBCommentModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeByC_C_S(long classNameId, long classPK, int status)
classNameId
- the class name IDclassPK
- the class pkstatus
- the statuspublic static int countByC_C_S(long classNameId, long classPK, int status)
classNameId
- the class name IDclassPK
- the class pkstatus
- the statuspublic static int countByC_C_S(long classNameId, long classPK, int[] statuses)
classNameId
- the class name IDclassPK
- the class pkstatuses
- the statusespublic static void cacheResult(KBComment kbComment)
kbComment
- the kb commentpublic static void cacheResult(java.util.List<KBComment> kbComments)
kbComments
- the kb commentspublic static KBComment create(long kbCommentId)
kbCommentId
- the primary key for the new kb commentpublic static KBComment remove(long kbCommentId) throws NoSuchCommentException
kbCommentId
- the primary key of the kb commentNoSuchCommentException
- if a kb comment with the primary key could not be foundpublic static KBComment findByPrimaryKey(long kbCommentId) throws NoSuchCommentException
NoSuchCommentException
if it could not be found.kbCommentId
- the primary key of the kb commentNoSuchCommentException
- if a kb comment with the primary key could not be foundpublic static KBComment fetchByPrimaryKey(long kbCommentId)
null
if it could not be found.kbCommentId
- the primary key of the kb commentnull
if a kb comment with the primary key could not be foundpublic static java.util.List<KBComment> findAll()
public static java.util.List<KBComment> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBCommentModelImpl
.
start
- the lower bound of the range of kb commentsend
- the upper bound of the range of kb comments (not inclusive)public static java.util.List<KBComment> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBCommentModelImpl
.
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 (optionally null
)public static java.util.List<KBComment> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBCommentModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static KBCommentPersistence getPersistence()