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
Constructor and Description |
---|
KBFolderUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(KBFolder kbFolder)
Caches the kb folder in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<KBFolder> kbFolders)
Caches the kb folders in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(KBFolder kbFolder) |
static int |
countAll()
Returns the number of kb folders.
|
static int |
countByCompanyId(long companyId)
Returns the number of kb folders where companyId = ?.
|
static int |
countByG_P_N(long groupId,
long parentKBFolderId,
java.lang.String name)
Returns the number of kb folders where groupId = ? and parentKBFolderId = ? and name = ?.
|
static int |
countByG_P_UT(long groupId,
long parentKBFolderId,
java.lang.String urlTitle)
Returns the number of kb folders where groupId = ? and parentKBFolderId = ? and urlTitle = ?.
|
static int |
countByG_P(long groupId,
long parentKBFolderId)
Returns the number of kb folders where groupId = ? and parentKBFolderId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of kb folders where uuid = ? and companyId = ?.
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of kb folders where uuid = ? and groupId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of kb folders where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static KBFolder |
create(long kbFolderId)
Creates a new kb folder with the primary key.
|
static KBFolder |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
Returns the first kb folder in the ordered set where companyId = ?.
|
static KBFolder |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
Returns the last kb folder in the ordered set where companyId = ?.
|
static KBFolder |
fetchByG_P_First(long groupId,
long parentKBFolderId,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
Returns the first kb 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 kb folder in the ordered set where groupId = ? and parentKBFolderId = ?.
|
static KBFolder |
fetchByG_P_N(long groupId,
long parentKBFolderId,
java.lang.String name)
Returns the kb 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 useFinderCache)
Returns the kb 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 kb 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 useFinderCache)
Returns the kb 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 kb 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 kb 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 kb 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 kb folder in the ordered set where uuid = ?.
|
static KBFolder |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the kb 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 useFinderCache)
Returns the kb 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 kb folder in the ordered set where uuid = ?.
|
static int |
filterCountByG_P(long groupId,
long parentKBFolderId)
Returns the number of kb 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 kb folders before and after the current kb folder in the ordered set of kb 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 kb 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 kb 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 kb folders that the user has permissions to view where groupId = ? and parentKBFolderId = ?.
|
static java.util.List<KBFolder> |
findAll()
Returns all the kb folders.
|
static java.util.List<KBFolder> |
findAll(int start,
int end)
Returns a range of all the kb 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 kb folders.
|
static java.util.List<KBFolder> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the kb folders.
|
static KBFolder |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
Returns the first kb folder in the ordered set where companyId = ?.
|
static KBFolder |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
Returns the last kb folder in the ordered set where companyId = ?.
|
static KBFolder[] |
findByCompanyId_PrevAndNext(long kbFolderId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
Returns the kb folders before and after the current kb folder in the ordered set where companyId = ?.
|
static java.util.List<KBFolder> |
findByCompanyId(long companyId)
Returns all the kb folders where companyId = ?.
|
static java.util.List<KBFolder> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the kb folders where companyId = ?.
|
static java.util.List<KBFolder> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
Returns an ordered range of all the kb folders where companyId = ?.
|
static java.util.List<KBFolder> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the kb folders where companyId = ?.
|
static KBFolder |
findByG_P_First(long groupId,
long parentKBFolderId,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
Returns the first kb 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 kb folder in the ordered set where groupId = ? and parentKBFolderId = ?.
|
static KBFolder |
findByG_P_N(long groupId,
long parentKBFolderId,
java.lang.String name)
Returns the kb 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 kb folders before and after the current kb folder in the ordered set where groupId = ? and parentKBFolderId = ?.
|
static KBFolder |
findByG_P_UT(long groupId,
long parentKBFolderId,
java.lang.String urlTitle)
Returns the kb 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 kb 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 kb 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 kb 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 useFinderCache)
Returns an ordered range of all the kb folders where groupId = ? and parentKBFolderId = ?.
|
static KBFolder |
findByPrimaryKey(long kbFolderId)
Returns the kb 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 kb 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 kb 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 kb folders before and after the current kb 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 kb 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 kb 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 kb 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 useFinderCache)
Returns an ordered range of all the kb folders where uuid = ? and companyId = ?.
|
static KBFolder |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
Returns the first kb folder in the ordered set where uuid = ?.
|
static KBFolder |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the kb 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 kb 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 kb folders before and after the current kb folder in the ordered set where uuid = ?.
|
static java.util.List<KBFolder> |
findByUuid(java.lang.String uuid)
Returns all the kb folders where uuid = ?.
|
static java.util.List<KBFolder> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the kb 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 kb 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 useFinderCache)
Returns an ordered range of all the kb 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 KBFolderPersistence |
getPersistence() |
static KBFolder |
remove(long kbFolderId)
Removes the kb folder with the primary key from the database.
|
static void |
removeAll()
Removes all the kb folders from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the kb folders where companyId = ? from the database.
|
static KBFolder |
removeByG_P_N(long groupId,
long parentKBFolderId,
java.lang.String name)
Removes the kb 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 kb folder where groupId = ? and parentKBFolderId = ? and urlTitle = ? from the database.
|
static void |
removeByG_P(long groupId,
long parentKBFolderId)
Removes all the kb folders where groupId = ? and parentKBFolderId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the kb folders where uuid = ? and companyId = ? from the database.
|
static KBFolder |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the kb folder where uuid = ? and groupId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the kb 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.Map<java.io.Serializable,KBFolder> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
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, then the query will include the default ORDER BY logic from KBFolderModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of kb foldersend
- the upper bound of the range of kb 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, then the query will include the default ORDER BY logic from KBFolderModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of kb foldersend
- the upper bound of the range of kb 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 useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBFolderModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of kb foldersend
- the upper bound of the range of kb folders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use 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 kb 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 kb 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 kb 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 kb 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 kb folderuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFolderException
- if a kb 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 kb 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 kb folder could not be foundpublic static KBFolder fetchByUUID_G(java.lang.String uuid, long groupId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.uuid
- the uuidgroupId
- the group IDuseFinderCache
- whether to use the finder cachenull
if a matching kb folder could not be foundpublic static KBFolder removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchFolderException
uuid
- the uuidgroupId
- the group IDNoSuchFolderException
public 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, then the query will include the default ORDER BY logic from KBFolderModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of kb foldersend
- the upper bound of the range of kb 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, then the query will include the default ORDER BY logic from KBFolderModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of kb foldersend
- the upper bound of the range of kb 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 useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBFolderModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of kb foldersend
- the upper bound of the range of kb folders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use 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 kb 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 kb 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 kb 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 kb 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 kb folderuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFolderException
- if a kb 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> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<KBFolder> findByCompanyId(long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBFolderModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of kb foldersend
- the upper bound of the range of kb folders (not inclusive)public static java.util.List<KBFolder> findByCompanyId(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, then the query will include the default ORDER BY logic from KBFolderModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of kb foldersend
- the upper bound of the range of kb folders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<KBFolder> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBFolderModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of kb foldersend
- the upper bound of the range of kb folders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static KBFolder findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFolderException
- if a matching kb folder could not be foundpublic static KBFolder fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kb folder could not be foundpublic static KBFolder findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFolderException
- if a matching kb folder could not be foundpublic static KBFolder fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kb folder could not be foundpublic static KBFolder[] findByCompanyId_PrevAndNext(long kbFolderId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException
kbFolderId
- the primary key of the current kb foldercompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFolderException
- if a kb folder with the primary key could not be foundpublic static void removeByCompanyId(long companyId)
companyId
- the company IDpublic static int countByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<KBFolder> findByG_P(long groupId, long parentKBFolderId)
groupId
- the group IDparentKBFolderId
- the parent kb 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, then the query will include the default ORDER BY logic from KBFolderModelImpl
.
groupId
- the group IDparentKBFolderId
- the parent kb folder IDstart
- the lower bound of the range of kb foldersend
- the upper bound of the range of kb 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, then the query will include the default ORDER BY logic from KBFolderModelImpl
.
groupId
- the group IDparentKBFolderId
- the parent kb folder IDstart
- the lower bound of the range of kb foldersend
- the upper bound of the range of kb 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 useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBFolderModelImpl
.
groupId
- the group IDparentKBFolderId
- the parent kb folder IDstart
- the lower bound of the range of kb foldersend
- the upper bound of the range of kb folders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use 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 kb folder IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFolderException
- if a matching kb 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 kb folder IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kb 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 kb folder IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFolderException
- if a matching kb 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 kb folder IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kb 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 kb foldergroupId
- the group IDparentKBFolderId
- the parent kb folder IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFolderException
- if a kb 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 kb 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, then the query will include the default ORDER BY logic from KBFolderModelImpl
.
groupId
- the group IDparentKBFolderId
- the parent kb folder IDstart
- the lower bound of the range of kb foldersend
- the upper bound of the range of kb 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, then the query will include the default ORDER BY logic from KBFolderModelImpl
.
groupId
- the group IDparentKBFolderId
- the parent kb folder IDstart
- the lower bound of the range of kb foldersend
- the upper bound of the range of kb 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 kb foldergroupId
- the group IDparentKBFolderId
- the parent kb folder IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFolderException
- if a kb folder with the primary key could not be foundpublic static void removeByG_P(long groupId, long parentKBFolderId)
groupId
- the group IDparentKBFolderId
- the parent kb folder IDpublic static int countByG_P(long groupId, long parentKBFolderId)
groupId
- the group IDparentKBFolderId
- the parent kb folder IDpublic static int filterCountByG_P(long groupId, long parentKBFolderId)
groupId
- the group IDparentKBFolderId
- the parent kb 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 kb folder IDname
- the nameNoSuchFolderException
- if a matching kb 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 kb folder IDname
- the namenull
if a matching kb folder could not be foundpublic static KBFolder fetchByG_P_N(long groupId, long parentKBFolderId, java.lang.String name, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.groupId
- the group IDparentKBFolderId
- the parent kb folder IDname
- the nameuseFinderCache
- whether to use the finder cachenull
if a matching kb 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 kb folder IDname
- the nameNoSuchFolderException
public static int countByG_P_N(long groupId, long parentKBFolderId, java.lang.String name)
groupId
- the group IDparentKBFolderId
- the parent kb 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 kb folder IDurlTitle
- the url titleNoSuchFolderException
- if a matching kb 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 kb folder IDurlTitle
- the url titlenull
if a matching kb folder could not be foundpublic static KBFolder fetchByG_P_UT(long groupId, long parentKBFolderId, java.lang.String urlTitle, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.groupId
- the group IDparentKBFolderId
- the parent kb folder IDurlTitle
- the url titleuseFinderCache
- whether to use the finder cachenull
if a matching kb 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 kb folder IDurlTitle
- the url titleNoSuchFolderException
public static int countByG_P_UT(long groupId, long parentKBFolderId, java.lang.String urlTitle)
groupId
- the group IDparentKBFolderId
- the parent kb folder IDurlTitle
- the url titlepublic static void cacheResult(KBFolder kbFolder)
kbFolder
- the kb folderpublic static void cacheResult(java.util.List<KBFolder> kbFolders)
kbFolders
- the kb folderspublic static KBFolder create(long kbFolderId)
kbFolderId
- the primary key for the new kb folderpublic static KBFolder remove(long kbFolderId) throws NoSuchFolderException
kbFolderId
- the primary key of the kb folderNoSuchFolderException
- if a kb 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 kb folderNoSuchFolderException
- if a kb 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 kb foldernull
if a kb folder with the primary key could not be foundpublic 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, then the query will include the default ORDER BY logic from KBFolderModelImpl
.
start
- the lower bound of the range of kb foldersend
- the upper bound of the range of kb 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, then the query will include the default ORDER BY logic from KBFolderModelImpl
.
start
- the lower bound of the range of kb foldersend
- the upper bound of the range of kb 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 useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from KBFolderModelImpl
.
start
- the lower bound of the range of kb foldersend
- the upper bound of the range of kb folders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static KBFolderPersistence getPersistence()