@ProviderType
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,
com.liferay.knowledge.base.service.persistence.impl.KBCommentPersistenceImpl| Constructor and Description |
|---|
KBCommentUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cacheResult(KBComment kbComment)
Caches the k b comment in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<KBComment> kbComments)
Caches the k b comments in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(KBComment kbComment) |
static int |
countAll()
Returns the number of k b comments.
|
static int |
countByC_C_S(long classNameId,
long classPK,
int status)
Returns the number of k b comments where classNameId = ? and classPK = ? and status = ?.
|
static int |
countByC_C_S(long classNameId,
long classPK,
int[] statuses)
Returns the number of k b comments where classNameId = ? and classPK = ? and status = any ?.
|
static int |
countByC_C(long classNameId,
long classPK)
Returns the number of k b comments where classNameId = ? and classPK = ?.
|
static int |
countByG_C(long groupId,
long classNameId)
Returns the number of k b comments where groupId = ? and classNameId = ?.
|
static int |
countByG_S(long groupId,
int status)
Returns the number of k b comments where groupId = ? and status = ?.
|
static int |
countByGroupId(long groupId)
Returns the number of k b comments where groupId = ?.
|
static int |
countByU_C_C(long userId,
long classNameId,
long classPK)
Returns the number of k b comments where userId = ? and classNameId = ? and classPK = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of k b comments where uuid = ? and companyId = ?.
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of k b comments where uuid = ? and groupId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of k b comments where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static KBComment |
create(long kbCommentId)
Creates a new k b 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 k b 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 k b 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 k b 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 k b 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 k b 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 k b 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 k b 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 k b 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 k b comment in the ordered set where groupId = ?.
|
static KBComment |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
Returns the last k b comment in the ordered set where groupId = ?.
|
static KBComment |
fetchByPrimaryKey(long kbCommentId)
Returns the k b 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 k b 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 k b 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 k b 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 k b 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 k b comment in the ordered set where uuid = ?.
|
static KBComment |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the k b 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 retrieveFromCache)
Returns the k b 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 k b comment in the ordered set where uuid = ?.
|
static java.util.List<KBComment> |
findAll()
Returns all the k b comments.
|
static java.util.List<KBComment> |
findAll(int start,
int end)
Returns a range of all the k b 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 k b comments.
|
static java.util.List<KBComment> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the k b comments.
|
static KBComment |
findByC_C_First(long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
Returns the first k b 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 k b 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 k b comments before and after the current k b 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 k b 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 k b 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 k b comments before and after the current k b 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 k b comments where classNameId = ? and classPK = ? and status = ?.
|
static java.util.List<KBComment> |
findByC_C_S(long classNameId,
long classPK,
int[] statuses)
Returns all the k b 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 k b 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 k b 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 retrieveFromCache)
Returns an ordered range of all the k b 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 k b 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 k b 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 retrieveFromCache)
Returns an ordered range of all the k b comments where classNameId = ? and classPK = ? and status = ?.
|
static java.util.List<KBComment> |
findByC_C(long classNameId,
long classPK)
Returns all the k b 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 k b 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 k b 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 retrieveFromCache)
Returns an ordered range of all the k b 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 k b 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 k b 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 k b comments before and after the current k b comment in the ordered set where groupId = ? and classNameId = ?.
|
static java.util.List<KBComment> |
findByG_C(long groupId,
long classNameId)
Returns all the k b 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 k b 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 k b 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 retrieveFromCache)
Returns an ordered range of all the k b 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 k b 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 k b 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 k b comments before and after the current k b comment in the ordered set where groupId = ? and status = ?.
|
static java.util.List<KBComment> |
findByG_S(long groupId,
int status)
Returns all the k b 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 k b 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 k b 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 retrieveFromCache)
Returns an ordered range of all the k b comments where groupId = ? and status = ?.
|
static KBComment |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
Returns the first k b comment in the ordered set where groupId = ?.
|
static KBComment |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
Returns the last k b 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 k b comments before and after the current k b comment in the ordered set where groupId = ?.
|
static java.util.List<KBComment> |
findByGroupId(long groupId)
Returns all the k b comments where groupId = ?.
|
static java.util.List<KBComment> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the k b 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 k b comments where groupId = ?.
|
static java.util.List<KBComment> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the k b comments where groupId = ?.
|
static KBComment |
findByPrimaryKey(long kbCommentId)
Returns the k b 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 k b 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 k b 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 k b comments before and after the current k b 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 k b 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 k b 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 k b 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 retrieveFromCache)
Returns an ordered range of all the k b 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 k b 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 k b 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 k b comments before and after the current k b 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 k b 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 k b 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 k b 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 retrieveFromCache)
Returns an ordered range of all the k b comments where uuid = ? and companyId = ?.
|
static KBComment |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
Returns the first k b comment in the ordered set where uuid = ?.
|
static KBComment |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the k b 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 k b 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 k b comments before and after the current k b comment in the ordered set where uuid = ?.
|
static java.util.List<KBComment> |
findByUuid(java.lang.String uuid)
Returns all the k b comments where uuid = ?.
|
static java.util.List<KBComment> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the k b 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 k b 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 retrieveFromCache)
Returns an ordered range of all the k b 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 java.util.Set<java.lang.String> |
getBadColumnNames() |
static KBCommentPersistence |
getPersistence() |
static KBComment |
remove(long kbCommentId)
Removes the k b comment with the primary key from the database.
|
static void |
removeAll()
Removes all the k b comments from the database.
|
static void |
removeByC_C_S(long classNameId,
long classPK,
int status)
Removes all the k b comments where classNameId = ? and classPK = ? and status = ? from the database.
|
static void |
removeByC_C(long classNameId,
long classPK)
Removes all the k b comments where classNameId = ? and classPK = ? from the database.
|
static void |
removeByG_C(long groupId,
long classNameId)
Removes all the k b comments where groupId = ? and classNameId = ? from the database.
|
static void |
removeByG_S(long groupId,
int status)
Removes all the k b comments where groupId = ? and status = ? from the database.
|
static void |
removeByGroupId(long groupId)
Removes all the k b comments where groupId = ? from the database.
|
static void |
removeByU_C_C(long userId,
long classNameId,
long classPK)
Removes all the k b comments where userId = ? and classNameId = ? and classPK = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the k b comments where uuid = ? and companyId = ? from the database.
|
static KBComment |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the k b comment where uuid = ? and groupId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the k b 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.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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from KBCommentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid - the uuidstart - the lower bound of the range of k b commentsend - the upper bound of the range of k b 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from KBCommentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid - the uuidstart - the lower bound of the range of k b commentsend - the upper bound of the range of k b 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 retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from KBCommentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid - the uuidstart - the lower bound of the range of k b commentsend - the upper bound of the range of k b comments (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from 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 k b 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 k b 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 k b 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 k b 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 k b commentuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)NoSuchCommentException - if a k b 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 k b 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 k b comment could not be foundpublic static KBComment fetchByUUID_G(java.lang.String uuid, long groupId, boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.uuid - the uuidgroupId - the group IDretrieveFromCache - whether to retrieve from the finder cachenull if a matching k b comment could not be foundpublic static KBComment removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchCommentException
uuid - the uuidgroupId - the group IDNoSuchCommentExceptionpublic 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from KBCommentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid - the uuidcompanyId - the company IDstart - the lower bound of the range of k b commentsend - the upper bound of the range of k b 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from KBCommentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid - the uuidcompanyId - the company IDstart - the lower bound of the range of k b commentsend - the upper bound of the range of k b 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 retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from KBCommentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid - the uuidcompanyId - the company IDstart - the lower bound of the range of k b commentsend - the upper bound of the range of k b comments (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from 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 k b 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 k b 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 k b 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 k b 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 k b commentuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchCommentException - if a k b 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from KBCommentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstart - the lower bound of the range of k b commentsend - the upper bound of the range of k b 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from KBCommentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstart - the lower bound of the range of k b commentsend - the upper bound of the range of k b 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 retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from KBCommentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstart - the lower bound of the range of k b commentsend - the upper bound of the range of k b comments (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from 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 k b 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 k b 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 k b 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 k b 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 k b commentgroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchCommentException - if a k b 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from KBCommentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDclassNameId - the class name IDstart - the lower bound of the range of k b commentsend - the upper bound of the range of k b 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from KBCommentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDclassNameId - the class name IDstart - the lower bound of the range of k b commentsend - the upper bound of the range of k b 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 retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from KBCommentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDclassNameId - the class name IDstart - the lower bound of the range of k b commentsend - the upper bound of the range of k b comments (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from 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 k b 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 k b 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 k b 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 k b 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 k b commentgroupId - the group IDclassNameId - the class name IDorderByComparator - the comparator to order the set by (optionally null)NoSuchCommentException - if a k b 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from KBCommentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstatus - the statusstart - the lower bound of the range of k b commentsend - the upper bound of the range of k b 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from KBCommentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstatus - the statusstart - the lower bound of the range of k b commentsend - the upper bound of the range of k b 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 retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from KBCommentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstatus - the statusstart - the lower bound of the range of k b commentsend - the upper bound of the range of k b comments (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from 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 k b 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 k b 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 k b 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 k b 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 k b commentgroupId - the group IDstatus - the statusorderByComparator - the comparator to order the set by (optionally null)NoSuchCommentException - if a k b 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 p kpublic 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from KBCommentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
classNameId - the class name IDclassPK - the class p kstart - the lower bound of the range of k b commentsend - the upper bound of the range of k b 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from KBCommentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
classNameId - the class name IDclassPK - the class p kstart - the lower bound of the range of k b commentsend - the upper bound of the range of k b 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 retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from KBCommentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
classNameId - the class name IDclassPK - the class p kstart - the lower bound of the range of k b commentsend - the upper bound of the range of k b comments (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from 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 p korderByComparator - the comparator to order the set by (optionally null)NoSuchCommentException - if a matching k b 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 p korderByComparator - the comparator to order the set by (optionally null)null if a matching k b 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 p korderByComparator - the comparator to order the set by (optionally null)NoSuchCommentException - if a matching k b 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 p korderByComparator - the comparator to order the set by (optionally null)null if a matching k b 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 k b commentclassNameId - the class name IDclassPK - the class p korderByComparator - the comparator to order the set by (optionally null)NoSuchCommentException - if a k b comment with the primary key could not be foundpublic static void removeByC_C(long classNameId,
long classPK)
classNameId - the class name IDclassPK - the class p kpublic static int countByC_C(long classNameId,
long classPK)
classNameId - the class name IDclassPK - the class p kpublic static java.util.List<KBComment> findByU_C_C(long userId, long classNameId, long classPK)
userId - the user IDclassNameId - the class name IDclassPK - the class p kpublic 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from KBCommentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId - the user IDclassNameId - the class name IDclassPK - the class p kstart - the lower bound of the range of k b commentsend - the upper bound of the range of k b 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from KBCommentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId - the user IDclassNameId - the class name IDclassPK - the class p kstart - the lower bound of the range of k b commentsend - the upper bound of the range of k b 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 retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from KBCommentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId - the user IDclassNameId - the class name IDclassPK - the class p kstart - the lower bound of the range of k b commentsend - the upper bound of the range of k b comments (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from 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 p korderByComparator - the comparator to order the set by (optionally null)NoSuchCommentException - if a matching k b 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 p korderByComparator - the comparator to order the set by (optionally null)null if a matching k b 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 p korderByComparator - the comparator to order the set by (optionally null)NoSuchCommentException - if a matching k b 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 p korderByComparator - the comparator to order the set by (optionally null)null if a matching k b 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 k b commentuserId - the user IDclassNameId - the class name IDclassPK - the class p korderByComparator - the comparator to order the set by (optionally null)NoSuchCommentException - if a k b 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 p kpublic static int countByU_C_C(long userId,
long classNameId,
long classPK)
userId - the user IDclassNameId - the class name IDclassPK - the class p kpublic static java.util.List<KBComment> findByC_C_S(long classNameId, long classPK, int status)
classNameId - the class name IDclassPK - the class p kstatus - 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from KBCommentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
classNameId - the class name IDclassPK - the class p kstatus - the statusstart - the lower bound of the range of k b commentsend - the upper bound of the range of k b 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from KBCommentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
classNameId - the class name IDclassPK - the class p kstatus - the statusstart - the lower bound of the range of k b commentsend - the upper bound of the range of k b 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 retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from KBCommentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
classNameId - the class name IDclassPK - the class p kstatus - the statusstart - the lower bound of the range of k b commentsend - the upper bound of the range of k b comments (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from 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 p kstatus - the statusorderByComparator - the comparator to order the set by (optionally null)NoSuchCommentException - if a matching k b 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 p kstatus - the statusorderByComparator - the comparator to order the set by (optionally null)null if a matching k b 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 p kstatus - the statusorderByComparator - the comparator to order the set by (optionally null)NoSuchCommentException - if a matching k b 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 p kstatus - the statusorderByComparator - the comparator to order the set by (optionally null)null if a matching k b 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 k b commentclassNameId - the class name IDclassPK - the class p kstatus - the statusorderByComparator - the comparator to order the set by (optionally null)NoSuchCommentException - if a k b 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from KBCommentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
classNameId - the class name IDclassPK - the class p kstatuses - 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from KBCommentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
classNameId - the class name IDclassPK - the class p kstatuses - the statusesstart - the lower bound of the range of k b commentsend - the upper bound of the range of k b 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from KBCommentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
classNameId - the class name IDclassPK - the class p kstatuses - the statusesstart - the lower bound of the range of k b commentsend - the upper bound of the range of k b 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 retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from KBCommentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
classNameId - the class name IDclassPK - the class p kstatus - the statusstart - the lower bound of the range of k b commentsend - the upper bound of the range of k b comments (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static void removeByC_C_S(long classNameId,
long classPK,
int status)
classNameId - the class name IDclassPK - the class p kstatus - the statuspublic static int countByC_C_S(long classNameId,
long classPK,
int status)
classNameId - the class name IDclassPK - the class p kstatus - the statuspublic static int countByC_C_S(long classNameId,
long classPK,
int[] statuses)
classNameId - the class name IDclassPK - the class p kstatuses - the statusespublic static void cacheResult(KBComment kbComment)
kbComment - the k b commentpublic static void cacheResult(java.util.List<KBComment> kbComments)
kbComments - the k b commentspublic static KBComment create(long kbCommentId)
kbCommentId - the primary key for the new k b commentpublic static KBComment remove(long kbCommentId) throws NoSuchCommentException
kbCommentId - the primary key of the k b commentNoSuchCommentException - if a k b 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 k b commentNoSuchCommentException - if a k b 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 k b commentnull if a k b comment with the primary key could not be foundpublic static java.util.Map<java.io.Serializable,KBComment> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
public 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from KBCommentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of k b commentsend - the upper bound of the range of k b 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from KBCommentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of k b commentsend - the upper bound of the range of k b 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 retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from KBCommentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of k b commentsend - the upper bound of the range of k b comments (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static void removeAll()
public static int countAll()
public static java.util.Set<java.lang.String> getBadColumnNames()
public static KBCommentPersistence getPersistence()