@ProviderType
public class KBFolderUtil
extends java.lang.Object
com.liferay.knowledge.base.service.persistence.impl.KBFolderPersistenceImpl 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
KBFolderPersistence,
com.liferay.knowledge.base.service.persistence.impl.KBFolderPersistenceImpl| Constructor and Description |
|---|
KBFolderUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cacheResult(KBFolder kbFolder)
Caches the k b folder in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<KBFolder> kbFolders)
Caches the k b folders in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(KBFolder kbFolder) |
static int |
countAll()
Returns the number of k b folders.
|
static int |
countByG_P_N(long groupId,
long parentKBFolderId,
java.lang.String name)
Returns the number of k b folders where groupId = ? and parentKBFolderId = ? and name = ?.
|
static int |
countByG_P_UT(long groupId,
long parentKBFolderId,
java.lang.String urlTitle)
Returns the number of k b folders where groupId = ? and parentKBFolderId = ? and urlTitle = ?.
|
static int |
countByG_P(long groupId,
long parentKBFolderId)
Returns the number of k b folders where groupId = ? and parentKBFolderId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of k b folders where uuid = ? and companyId = ?.
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of k b folders where uuid = ? and groupId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of k b folders where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static KBFolder |
create(long kbFolderId)
Creates a new k b folder with the primary key.
|
static KBFolder |
fetchByG_P_First(long groupId,
long parentKBFolderId,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
Returns the first k b folder in the ordered set where groupId = ? and parentKBFolderId = ?.
|
static KBFolder |
fetchByG_P_Last(long groupId,
long parentKBFolderId,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
Returns the last k b folder in the ordered set where groupId = ? and parentKBFolderId = ?.
|
static KBFolder |
fetchByG_P_N(long groupId,
long parentKBFolderId,
java.lang.String name)
Returns the k b folder where groupId = ? and parentKBFolderId = ? and name = ? or returns
null if it could not be found. |
static KBFolder |
fetchByG_P_N(long groupId,
long parentKBFolderId,
java.lang.String name,
boolean retrieveFromCache)
Returns the k b folder where groupId = ? and parentKBFolderId = ? and name = ? or returns
null if it could not be found, optionally using the finder cache. |
static KBFolder |
fetchByG_P_UT(long groupId,
long parentKBFolderId,
java.lang.String urlTitle)
Returns the k b folder where groupId = ? and parentKBFolderId = ? and urlTitle = ? or returns
null if it could not be found. |
static KBFolder |
fetchByG_P_UT(long groupId,
long parentKBFolderId,
java.lang.String urlTitle,
boolean retrieveFromCache)
Returns the k b folder where groupId = ? and parentKBFolderId = ? and urlTitle = ? or returns
null if it could not be found, optionally using the finder cache. |
static KBFolder |
fetchByPrimaryKey(long kbFolderId)
Returns the k b folder with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,KBFolder> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static KBFolder |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
Returns the first k b folder in the ordered set where uuid = ? and companyId = ?.
|
static KBFolder |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
Returns the last k b folder in the ordered set where uuid = ? and companyId = ?.
|
static KBFolder |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
Returns the first k b folder in the ordered set where uuid = ?.
|
static KBFolder |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the k b folder where uuid = ? and groupId = ? or returns
null if it could not be found. |
static KBFolder |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean retrieveFromCache)
Returns the k b folder where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
static KBFolder |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
Returns the last k b folder in the ordered set where uuid = ?.
|
static int |
filterCountByG_P(long groupId,
long parentKBFolderId)
Returns the number of k b folders that the user has permission to view where groupId = ? and parentKBFolderId = ?.
|
static KBFolder[] |
filterFindByG_P_PrevAndNext(long kbFolderId,
long groupId,
long parentKBFolderId,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
Returns the k b folders before and after the current k b folder in the ordered set of k b folders that the user has permission to view where groupId = ? and parentKBFolderId = ?.
|
static java.util.List<KBFolder> |
filterFindByG_P(long groupId,
long parentKBFolderId)
Returns all the k b folders that the user has permission to view where groupId = ? and parentKBFolderId = ?.
|
static java.util.List<KBFolder> |
filterFindByG_P(long groupId,
long parentKBFolderId,
int start,
int end)
Returns a range of all the k b folders that the user has permission to view where groupId = ? and parentKBFolderId = ?.
|
static java.util.List<KBFolder> |
filterFindByG_P(long groupId,
long parentKBFolderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
Returns an ordered range of all the k b folders that the user has permissions to view where groupId = ? and parentKBFolderId = ?.
|
static java.util.List<KBFolder> |
findAll()
Returns all the k b folders.
|
static java.util.List<KBFolder> |
findAll(int start,
int end)
Returns a range of all the k b folders.
|
static java.util.List<KBFolder> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
Returns an ordered range of all the k b folders.
|
static java.util.List<KBFolder> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the k b folders.
|
static KBFolder |
findByG_P_First(long groupId,
long parentKBFolderId,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
Returns the first k b folder in the ordered set where groupId = ? and parentKBFolderId = ?.
|
static KBFolder |
findByG_P_Last(long groupId,
long parentKBFolderId,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
Returns the last k b folder in the ordered set where groupId = ? and parentKBFolderId = ?.
|
static KBFolder |
findByG_P_N(long groupId,
long parentKBFolderId,
java.lang.String name)
Returns the k b folder where groupId = ? and parentKBFolderId = ? and name = ? or throws a
NoSuchFolderException if it could not be found. |
static KBFolder[] |
findByG_P_PrevAndNext(long kbFolderId,
long groupId,
long parentKBFolderId,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
Returns the k b folders before and after the current k b folder in the ordered set where groupId = ? and parentKBFolderId = ?.
|
static KBFolder |
findByG_P_UT(long groupId,
long parentKBFolderId,
java.lang.String urlTitle)
Returns the k b folder where groupId = ? and parentKBFolderId = ? and urlTitle = ? or throws a
NoSuchFolderException if it could not be found. |
static java.util.List<KBFolder> |
findByG_P(long groupId,
long parentKBFolderId)
Returns all the k b folders where groupId = ? and parentKBFolderId = ?.
|
static java.util.List<KBFolder> |
findByG_P(long groupId,
long parentKBFolderId,
int start,
int end)
Returns a range of all the k b folders where groupId = ? and parentKBFolderId = ?.
|
static java.util.List<KBFolder> |
findByG_P(long groupId,
long parentKBFolderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
Returns an ordered range of all the k b folders where groupId = ? and parentKBFolderId = ?.
|
static java.util.List<KBFolder> |
findByG_P(long groupId,
long parentKBFolderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the k b folders where groupId = ? and parentKBFolderId = ?.
|
static KBFolder |
findByPrimaryKey(long kbFolderId)
Returns the k b folder with the primary key or throws a
NoSuchFolderException if it could not be found. |
static KBFolder |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
Returns the first k b folder in the ordered set where uuid = ? and companyId = ?.
|
static KBFolder |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
Returns the last k b folder in the ordered set where uuid = ? and companyId = ?.
|
static KBFolder[] |
findByUuid_C_PrevAndNext(long kbFolderId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
Returns the k b folders before and after the current k b folder in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<KBFolder> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the k b folders where uuid = ? and companyId = ?.
|
static java.util.List<KBFolder> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the k b folders where uuid = ? and companyId = ?.
|
static java.util.List<KBFolder> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
Returns an ordered range of all the k b folders where uuid = ? and companyId = ?.
|
static java.util.List<KBFolder> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the k b folders where uuid = ? and companyId = ?.
|
static KBFolder |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
Returns the first k b folder in the ordered set where uuid = ?.
|
static KBFolder |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the k b folder where uuid = ? and groupId = ? or throws a
NoSuchFolderException if it could not be found. |
static KBFolder |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
Returns the last k b folder in the ordered set where uuid = ?.
|
static KBFolder[] |
findByUuid_PrevAndNext(long kbFolderId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
Returns the k b folders before and after the current k b folder in the ordered set where uuid = ?.
|
static java.util.List<KBFolder> |
findByUuid(java.lang.String uuid)
Returns all the k b folders where uuid = ?.
|
static java.util.List<KBFolder> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the k b folders where uuid = ?.
|
static java.util.List<KBFolder> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
Returns an ordered range of all the k b folders where uuid = ?.
|
static java.util.List<KBFolder> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the k b folders where uuid = ?.
|
static java.util.List<KBFolder> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<KBFolder> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<KBFolder> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) |
static java.util.Set<java.lang.String> |
getBadColumnNames() |
static KBFolderPersistence |
getPersistence() |
static KBFolder |
remove(long kbFolderId)
Removes the k b folder with the primary key from the database.
|
static void |
removeAll()
Removes all the k b folders from the database.
|
static KBFolder |
removeByG_P_N(long groupId,
long parentKBFolderId,
java.lang.String name)
Removes the k b folder where groupId = ? and parentKBFolderId = ? and name = ? from the database.
|
static KBFolder |
removeByG_P_UT(long groupId,
long parentKBFolderId,
java.lang.String urlTitle)
Removes the k b folder where groupId = ? and parentKBFolderId = ? and urlTitle = ? from the database.
|
static void |
removeByG_P(long groupId,
long parentKBFolderId)
Removes all the k b folders where groupId = ? and parentKBFolderId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the k b folders where uuid = ? and companyId = ? from the database.
|
static KBFolder |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the k b folder where uuid = ? and groupId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the k b folders where uuid = ? from the database.
|
static KBFolder |
update(KBFolder kbFolder) |
static KBFolder |
update(KBFolder kbFolder,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static KBFolder |
updateImpl(KBFolder kbFolder) |
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(KBFolder kbFolder)
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<KBFolder> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)public static java.util.List<KBFolder> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)public static java.util.List<KBFolder> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)public static KBFolder update(KBFolder kbFolder)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)public static KBFolder update(KBFolder kbFolder, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)public static java.util.List<KBFolder> findByUuid(java.lang.String uuid)
uuid - the uuidpublic static java.util.List<KBFolder> 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 KBFolderModelImpl. 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 foldersend - the upper bound of the range of k b folders (not inclusive)public static java.util.List<KBFolder> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> 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 KBFolderModelImpl. 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 foldersend - the upper bound of the range of k b folders (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<KBFolder> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> 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 KBFolderModelImpl. 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 foldersend - the upper bound of the range of k b folders (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static KBFolder findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)NoSuchFolderException - if a matching k b folder could not be foundpublic static KBFolder fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)null if a matching k b folder could not be foundpublic static KBFolder findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)NoSuchFolderException - if a matching k b folder could not be foundpublic static KBFolder fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)null if a matching k b folder could not be foundpublic static KBFolder[] findByUuid_PrevAndNext(long kbFolderId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException
kbFolderId - the primary key of the current k b folderuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)NoSuchFolderException - if a k b folder 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 KBFolder findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchFolderException
NoSuchFolderException if it could not be found.uuid - the uuidgroupId - the group IDNoSuchFolderException - if a matching k b folder could not be foundpublic static KBFolder 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 folder could not be foundpublic static KBFolder 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 folder could not be foundpublic static KBFolder removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchFolderException
uuid - the uuidgroupId - the group IDNoSuchFolderExceptionpublic static int countByUUID_G(java.lang.String uuid,
long groupId)
uuid - the uuidgroupId - the group IDpublic static java.util.List<KBFolder> findByUuid_C(java.lang.String uuid, long companyId)
uuid - the uuidcompanyId - the company IDpublic static java.util.List<KBFolder> 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 KBFolderModelImpl. 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 foldersend - the upper bound of the range of k b folders (not inclusive)public static java.util.List<KBFolder> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> 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 KBFolderModelImpl. 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 foldersend - the upper bound of the range of k b folders (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<KBFolder> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> 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 KBFolderModelImpl. 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 foldersend - the upper bound of the range of k b folders (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static KBFolder findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchFolderException - if a matching k b folder could not be foundpublic static KBFolder fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching k b folder could not be foundpublic static KBFolder findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchFolderException - if a matching k b folder could not be foundpublic static KBFolder fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching k b folder could not be foundpublic static KBFolder[] findByUuid_C_PrevAndNext(long kbFolderId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException
kbFolderId - the primary key of the current k b folderuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchFolderException - if a k b folder 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<KBFolder> findByG_P(long groupId, long parentKBFolderId)
groupId - the group IDparentKBFolderId - the parent k b folder IDpublic static java.util.List<KBFolder> findByG_P(long groupId, long parentKBFolderId, 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 KBFolderModelImpl. 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 IDparentKBFolderId - the parent k b folder IDstart - the lower bound of the range of k b foldersend - the upper bound of the range of k b folders (not inclusive)public static java.util.List<KBFolder> findByG_P(long groupId, long parentKBFolderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> 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 KBFolderModelImpl. 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 IDparentKBFolderId - the parent k b folder IDstart - the lower bound of the range of k b foldersend - the upper bound of the range of k b folders (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<KBFolder> findByG_P(long groupId, long parentKBFolderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> 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 KBFolderModelImpl. 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 IDparentKBFolderId - the parent k b folder IDstart - the lower bound of the range of k b foldersend - the upper bound of the range of k b folders (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static KBFolder findByG_P_First(long groupId, long parentKBFolderId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException
groupId - the group IDparentKBFolderId - the parent k b folder IDorderByComparator - the comparator to order the set by (optionally null)NoSuchFolderException - if a matching k b folder could not be foundpublic static KBFolder fetchByG_P_First(long groupId, long parentKBFolderId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
groupId - the group IDparentKBFolderId - the parent k b folder IDorderByComparator - the comparator to order the set by (optionally null)null if a matching k b folder could not be foundpublic static KBFolder findByG_P_Last(long groupId, long parentKBFolderId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException
groupId - the group IDparentKBFolderId - the parent k b folder IDorderByComparator - the comparator to order the set by (optionally null)NoSuchFolderException - if a matching k b folder could not be foundpublic static KBFolder fetchByG_P_Last(long groupId, long parentKBFolderId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
groupId - the group IDparentKBFolderId - the parent k b folder IDorderByComparator - the comparator to order the set by (optionally null)null if a matching k b folder could not be foundpublic static KBFolder[] findByG_P_PrevAndNext(long kbFolderId, long groupId, long parentKBFolderId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException
kbFolderId - the primary key of the current k b foldergroupId - the group IDparentKBFolderId - the parent k b folder IDorderByComparator - the comparator to order the set by (optionally null)NoSuchFolderException - if a k b folder with the primary key could not be foundpublic static java.util.List<KBFolder> filterFindByG_P(long groupId, long parentKBFolderId)
groupId - the group IDparentKBFolderId - the parent k b folder IDpublic static java.util.List<KBFolder> filterFindByG_P(long groupId, long parentKBFolderId, 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 KBFolderModelImpl. 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 IDparentKBFolderId - the parent k b folder IDstart - the lower bound of the range of k b foldersend - the upper bound of the range of k b folders (not inclusive)public static java.util.List<KBFolder> filterFindByG_P(long groupId, long parentKBFolderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> 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 KBFolderModelImpl. 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 IDparentKBFolderId - the parent k b folder IDstart - the lower bound of the range of k b foldersend - the upper bound of the range of k b folders (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static KBFolder[] filterFindByG_P_PrevAndNext(long kbFolderId, long groupId, long parentKBFolderId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException
kbFolderId - the primary key of the current k b foldergroupId - the group IDparentKBFolderId - the parent k b folder IDorderByComparator - the comparator to order the set by (optionally null)NoSuchFolderException - if a k b folder with the primary key could not be foundpublic static void removeByG_P(long groupId,
long parentKBFolderId)
groupId - the group IDparentKBFolderId - the parent k b folder IDpublic static int countByG_P(long groupId,
long parentKBFolderId)
groupId - the group IDparentKBFolderId - the parent k b folder IDpublic static int filterCountByG_P(long groupId,
long parentKBFolderId)
groupId - the group IDparentKBFolderId - the parent k b folder IDpublic static KBFolder findByG_P_N(long groupId, long parentKBFolderId, java.lang.String name) throws NoSuchFolderException
NoSuchFolderException if it could not be found.groupId - the group IDparentKBFolderId - the parent k b folder IDname - the nameNoSuchFolderException - if a matching k b folder could not be foundpublic static KBFolder fetchByG_P_N(long groupId, long parentKBFolderId, java.lang.String name)
null if it could not be found. Uses the finder cache.groupId - the group IDparentKBFolderId - the parent k b folder IDname - the namenull if a matching k b folder could not be foundpublic static KBFolder fetchByG_P_N(long groupId, long parentKBFolderId, java.lang.String name, boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.groupId - the group IDparentKBFolderId - the parent k b folder IDname - the nameretrieveFromCache - whether to retrieve from the finder cachenull if a matching k b folder could not be foundpublic static KBFolder removeByG_P_N(long groupId, long parentKBFolderId, java.lang.String name) throws NoSuchFolderException
groupId - the group IDparentKBFolderId - the parent k b folder IDname - the nameNoSuchFolderExceptionpublic static int countByG_P_N(long groupId,
long parentKBFolderId,
java.lang.String name)
groupId - the group IDparentKBFolderId - the parent k b folder IDname - the namepublic static KBFolder findByG_P_UT(long groupId, long parentKBFolderId, java.lang.String urlTitle) throws NoSuchFolderException
NoSuchFolderException if it could not be found.groupId - the group IDparentKBFolderId - the parent k b folder IDurlTitle - the url titleNoSuchFolderException - if a matching k b folder could not be foundpublic static KBFolder fetchByG_P_UT(long groupId, long parentKBFolderId, java.lang.String urlTitle)
null if it could not be found. Uses the finder cache.groupId - the group IDparentKBFolderId - the parent k b folder IDurlTitle - the url titlenull if a matching k b folder could not be foundpublic static KBFolder fetchByG_P_UT(long groupId, long parentKBFolderId, java.lang.String urlTitle, boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.groupId - the group IDparentKBFolderId - the parent k b folder IDurlTitle - the url titleretrieveFromCache - whether to retrieve from the finder cachenull if a matching k b folder could not be foundpublic static KBFolder removeByG_P_UT(long groupId, long parentKBFolderId, java.lang.String urlTitle) throws NoSuchFolderException
groupId - the group IDparentKBFolderId - the parent k b folder IDurlTitle - the url titleNoSuchFolderExceptionpublic static int countByG_P_UT(long groupId,
long parentKBFolderId,
java.lang.String urlTitle)
groupId - the group IDparentKBFolderId - the parent k b folder IDurlTitle - the url titlepublic static void cacheResult(KBFolder kbFolder)
kbFolder - the k b folderpublic static void cacheResult(java.util.List<KBFolder> kbFolders)
kbFolders - the k b folderspublic static KBFolder create(long kbFolderId)
kbFolderId - the primary key for the new k b folderpublic static KBFolder remove(long kbFolderId) throws NoSuchFolderException
kbFolderId - the primary key of the k b folderNoSuchFolderException - if a k b folder with the primary key could not be foundpublic static KBFolder findByPrimaryKey(long kbFolderId) throws NoSuchFolderException
NoSuchFolderException if it could not be found.kbFolderId - the primary key of the k b folderNoSuchFolderException - if a k b folder with the primary key could not be foundpublic static KBFolder fetchByPrimaryKey(long kbFolderId)
null if it could not be found.kbFolderId - the primary key of the k b foldernull if a k b folder with the primary key could not be foundpublic static java.util.Map<java.io.Serializable,KBFolder> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
public static java.util.List<KBFolder> findAll()
public static java.util.List<KBFolder> 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 KBFolderModelImpl. 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 foldersend - the upper bound of the range of k b folders (not inclusive)public static java.util.List<KBFolder> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> 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 KBFolderModelImpl. 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 foldersend - the upper bound of the range of k b folders (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<KBFolder> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> 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 KBFolderModelImpl. 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 foldersend - the upper bound of the range of k b folders (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 KBFolderPersistence getPersistence()