Class KBTemplateUtil
com.liferay.knowledge.base.service.persistence.impl.KBTemplatePersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(KBTemplate kbTemplate) Caches the kb template in the entity cache if it is enabled.static void
cacheResult
(List<KBTemplate> kbTemplates) Caches the kb templates in the entity cache if it is enabled.static void
static void
clearCache
(KBTemplate kbTemplate) static int
countAll()
Returns the number of kb templates.static int
countByGroupId
(long groupId) Returns the number of kb templates where groupId = ?.static int
countByUuid
(String uuid) Returns the number of kb templates where uuid = ?.static int
countByUuid_C
(String uuid, long companyId) Returns the number of kb templates where uuid = ? and companyId = ?.static int
countByUUID_G
(String uuid, long groupId) Returns the number of kb templates where uuid = ? and groupId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static KBTemplate
create
(long kbTemplateId) Creates a new kb template with the primary key.static KBTemplate
fetchByGroupId_First
(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) Returns the first kb template in the ordered set where groupId = ?.static KBTemplate
fetchByGroupId_Last
(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) Returns the last kb template in the ordered set where groupId = ?.static KBTemplate
fetchByPrimaryKey
(long kbTemplateId) Returns the kb template with the primary key or returnsnull
if it could not be found.static Map<Serializable,
KBTemplate> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static KBTemplate
fetchByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) Returns the first kb template in the ordered set where uuid = ? and companyId = ?.static KBTemplate
fetchByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) Returns the last kb template in the ordered set where uuid = ? and companyId = ?.static KBTemplate
fetchByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) Returns the first kb template in the ordered set where uuid = ?.static KBTemplate
fetchByUUID_G
(String uuid, long groupId) Returns the kb template where uuid = ? and groupId = ? or returnsnull
if it could not be found.static KBTemplate
fetchByUUID_G
(String uuid, long groupId, boolean useFinderCache) Returns the kb template where uuid = ? and groupId = ? or returnsnull
if it could not be found, optionally using the finder cache.static KBTemplate
fetchByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) Returns the last kb template in the ordered set where uuid = ?.static int
filterCountByGroupId
(long groupId) Returns the number of kb templates that the user has permission to view where groupId = ?.static List<KBTemplate>
filterFindByGroupId
(long groupId) Returns all the kb templates that the user has permission to view where groupId = ?.static List<KBTemplate>
filterFindByGroupId
(long groupId, int start, int end) Returns a range of all the kb templates that the user has permission to view where groupId = ?.static List<KBTemplate>
filterFindByGroupId
(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) Returns an ordered range of all the kb templates that the user has permissions to view where groupId = ?.static KBTemplate[]
filterFindByGroupId_PrevAndNext
(long kbTemplateId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) Returns the kb templates before and after the current kb template in the ordered set of kb templates that the user has permission to view where groupId = ?.static List<KBTemplate>
findAll()
Returns all the kb templates.static List<KBTemplate>
findAll
(int start, int end) Returns a range of all the kb templates.static List<KBTemplate>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) Returns an ordered range of all the kb templates.static List<KBTemplate>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb templates.static List<KBTemplate>
findByGroupId
(long groupId) Returns all the kb templates where groupId = ?.static List<KBTemplate>
findByGroupId
(long groupId, int start, int end) Returns a range of all the kb templates where groupId = ?.static List<KBTemplate>
findByGroupId
(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) Returns an ordered range of all the kb templates where groupId = ?.static List<KBTemplate>
findByGroupId
(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb templates where groupId = ?.static KBTemplate
findByGroupId_First
(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) Returns the first kb template in the ordered set where groupId = ?.static KBTemplate
findByGroupId_Last
(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) Returns the last kb template in the ordered set where groupId = ?.static KBTemplate[]
findByGroupId_PrevAndNext
(long kbTemplateId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) Returns the kb templates before and after the current kb template in the ordered set where groupId = ?.static KBTemplate
findByPrimaryKey
(long kbTemplateId) Returns the kb template with the primary key or throws aNoSuchTemplateException
if it could not be found.static List<KBTemplate>
findByUuid
(String uuid) Returns all the kb templates where uuid = ?.static List<KBTemplate>
findByUuid
(String uuid, int start, int end) Returns a range of all the kb templates where uuid = ?.static List<KBTemplate>
findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) Returns an ordered range of all the kb templates where uuid = ?.static List<KBTemplate>
findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb templates where uuid = ?.static List<KBTemplate>
findByUuid_C
(String uuid, long companyId) Returns all the kb templates where uuid = ? and companyId = ?.static List<KBTemplate>
findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the kb templates where uuid = ? and companyId = ?.static List<KBTemplate>
findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) Returns an ordered range of all the kb templates where uuid = ? and companyId = ?.static List<KBTemplate>
findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb templates where uuid = ? and companyId = ?.static KBTemplate
findByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) Returns the first kb template in the ordered set where uuid = ? and companyId = ?.static KBTemplate
findByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) Returns the last kb template in the ordered set where uuid = ? and companyId = ?.static KBTemplate[]
findByUuid_C_PrevAndNext
(long kbTemplateId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) Returns the kb templates before and after the current kb template in the ordered set where uuid = ? and companyId = ?.static KBTemplate
findByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) Returns the first kb template in the ordered set where uuid = ?.static KBTemplate
findByUUID_G
(String uuid, long groupId) Returns the kb template where uuid = ? and groupId = ? or throws aNoSuchTemplateException
if it could not be found.static KBTemplate
findByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) Returns the last kb template in the ordered set where uuid = ?.static KBTemplate[]
findByUuid_PrevAndNext
(long kbTemplateId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) Returns the kb templates before and after the current kb template in the ordered set where uuid = ?.static List<KBTemplate>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<KBTemplate>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<KBTemplate>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) static KBTemplatePersistence
static KBTemplate
remove
(long kbTemplateId) Removes the kb template with the primary key from the database.static void
Removes all the kb templates from the database.static void
removeByGroupId
(long groupId) Removes all the kb templates where groupId = ? from the database.static void
removeByUuid
(String uuid) Removes all the kb templates where uuid = ? from the database.static void
removeByUuid_C
(String uuid, long companyId) Removes all the kb templates where uuid = ? and companyId = ? from the database.static KBTemplate
removeByUUID_G
(String uuid, long groupId) Removes the kb template where uuid = ? and groupId = ? from the database.static void
setPersistence
(KBTemplatePersistence persistence) static KBTemplate
update
(KBTemplate kbTemplate) static KBTemplate
update
(KBTemplate kbTemplate, com.liferay.portal.kernel.service.ServiceContext serviceContext) static KBTemplate
updateImpl
(KBTemplate kbTemplate)
-
Constructor Details
-
KBTemplateUtil
public KBTemplateUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
- See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<KBTemplate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<KBTemplate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<KBTemplate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static KBTemplate update(KBTemplate kbTemplate, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByUuid
Returns all the kb templates where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching kb templates
-
findByUuid
Returns a range of all the kb templates where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBTemplateModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of kb templatesend
- the upper bound of the range of kb templates (not inclusive)- Returns:
- the range of matching kb templates
-
findByUuid
public static List<KBTemplate> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) Returns an ordered range of all the kb templates where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBTemplateModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of kb templatesend
- the upper bound of the range of kb templates (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching kb templates
-
findByUuid
public static List<KBTemplate> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb templates where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBTemplateModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of kb templatesend
- the upper bound of the range of kb templates (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching kb templates
-
findByUuid_First
public static KBTemplate findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) throws NoSuchTemplateException Returns the first kb template in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching kb template
- Throws:
NoSuchTemplateException
- if a matching kb template could not be foundNoSuchTemplateException
-
fetchByUuid_First
public static KBTemplate fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) Returns the first kb template in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching kb template, or
null
if a matching kb template could not be found
-
findByUuid_Last
public static KBTemplate findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) throws NoSuchTemplateException Returns the last kb template in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching kb template
- Throws:
NoSuchTemplateException
- if a matching kb template could not be foundNoSuchTemplateException
-
fetchByUuid_Last
public static KBTemplate fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) Returns the last kb template in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching kb template, or
null
if a matching kb template could not be found
-
findByUuid_PrevAndNext
public static KBTemplate[] findByUuid_PrevAndNext(long kbTemplateId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) throws NoSuchTemplateException Returns the kb templates before and after the current kb template in the ordered set where uuid = ?.- Parameters:
kbTemplateId
- the primary key of the current kb templateuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next kb template
- Throws:
NoSuchTemplateException
- if a kb template with the primary key could not be foundNoSuchTemplateException
-
removeByUuid
Removes all the kb templates where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of kb templates where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching kb templates
-
findByUUID_G
Returns the kb template where uuid = ? and groupId = ? or throws aNoSuchTemplateException
if it could not be found.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the matching kb template
- Throws:
NoSuchTemplateException
- if a matching kb template could not be foundNoSuchTemplateException
-
fetchByUUID_G
Returns the kb template where uuid = ? and groupId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the matching kb template, or
null
if a matching kb template could not be found
-
fetchByUUID_G
Returns the kb template where uuid = ? and groupId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
uuid
- the uuidgroupId
- the group IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching kb template, or
null
if a matching kb template could not be found
-
removeByUUID_G
Removes the kb template where uuid = ? and groupId = ? from the database.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the kb template that was removed
- Throws:
NoSuchTemplateException
-
countByUUID_G
Returns the number of kb templates where uuid = ? and groupId = ?.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the number of matching kb templates
-
findByUuid_C
Returns all the kb templates where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching kb templates
-
findByUuid_C
Returns a range of all the kb templates where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBTemplateModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of kb templatesend
- the upper bound of the range of kb templates (not inclusive)- Returns:
- the range of matching kb templates
-
findByUuid_C
public static List<KBTemplate> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) Returns an ordered range of all the kb templates where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBTemplateModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of kb templatesend
- the upper bound of the range of kb templates (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching kb templates
-
findByUuid_C
public static List<KBTemplate> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb templates where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBTemplateModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of kb templatesend
- the upper bound of the range of kb templates (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching kb templates
-
findByUuid_C_First
public static KBTemplate findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) throws NoSuchTemplateException Returns the first kb template in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching kb template
- Throws:
NoSuchTemplateException
- if a matching kb template could not be foundNoSuchTemplateException
-
fetchByUuid_C_First
public static KBTemplate fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) Returns the first kb template in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching kb template, or
null
if a matching kb template could not be found
-
findByUuid_C_Last
public static KBTemplate findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) throws NoSuchTemplateException Returns the last kb template in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching kb template
- Throws:
NoSuchTemplateException
- if a matching kb template could not be foundNoSuchTemplateException
-
fetchByUuid_C_Last
public static KBTemplate fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) Returns the last kb template in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching kb template, or
null
if a matching kb template could not be found
-
findByUuid_C_PrevAndNext
public static KBTemplate[] findByUuid_C_PrevAndNext(long kbTemplateId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) throws NoSuchTemplateException Returns the kb templates before and after the current kb template in the ordered set where uuid = ? and companyId = ?.- Parameters:
kbTemplateId
- the primary key of the current kb templateuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next kb template
- Throws:
NoSuchTemplateException
- if a kb template with the primary key could not be foundNoSuchTemplateException
-
removeByUuid_C
Removes all the kb templates where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of kb templates where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching kb templates
-
findByGroupId
Returns all the kb templates where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the matching kb templates
-
findByGroupId
Returns a range of all the kb templates where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBTemplateModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of kb templatesend
- the upper bound of the range of kb templates (not inclusive)- Returns:
- the range of matching kb templates
-
findByGroupId
public static List<KBTemplate> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) Returns an ordered range of all the kb templates where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBTemplateModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of kb templatesend
- the upper bound of the range of kb templates (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching kb templates
-
findByGroupId
public static List<KBTemplate> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb templates where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBTemplateModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of kb templatesend
- the upper bound of the range of kb templates (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching kb templates
-
findByGroupId_First
public static KBTemplate findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) throws NoSuchTemplateException Returns the first kb template in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching kb template
- Throws:
NoSuchTemplateException
- if a matching kb template could not be foundNoSuchTemplateException
-
fetchByGroupId_First
public static KBTemplate fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) Returns the first kb template in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching kb template, or
null
if a matching kb template could not be found
-
findByGroupId_Last
public static KBTemplate findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) throws NoSuchTemplateException Returns the last kb template in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching kb template
- Throws:
NoSuchTemplateException
- if a matching kb template could not be foundNoSuchTemplateException
-
fetchByGroupId_Last
public static KBTemplate fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) Returns the last kb template in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching kb template, or
null
if a matching kb template could not be found
-
findByGroupId_PrevAndNext
public static KBTemplate[] findByGroupId_PrevAndNext(long kbTemplateId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) throws NoSuchTemplateException Returns the kb templates before and after the current kb template in the ordered set where groupId = ?.- Parameters:
kbTemplateId
- the primary key of the current kb templategroupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next kb template
- Throws:
NoSuchTemplateException
- if a kb template with the primary key could not be foundNoSuchTemplateException
-
filterFindByGroupId
Returns all the kb templates that the user has permission to view where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the matching kb templates that the user has permission to view
-
filterFindByGroupId
Returns a range of all the kb templates that the user has permission to view where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBTemplateModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of kb templatesend
- the upper bound of the range of kb templates (not inclusive)- Returns:
- the range of matching kb templates that the user has permission to view
-
filterFindByGroupId
public static List<KBTemplate> filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) Returns an ordered range of all the kb templates that the user has permissions to view where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBTemplateModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of kb templatesend
- the upper bound of the range of kb templates (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching kb templates that the user has permission to view
-
filterFindByGroupId_PrevAndNext
public static KBTemplate[] filterFindByGroupId_PrevAndNext(long kbTemplateId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) throws NoSuchTemplateException Returns the kb templates before and after the current kb template in the ordered set of kb templates that the user has permission to view where groupId = ?.- Parameters:
kbTemplateId
- the primary key of the current kb templategroupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next kb template
- Throws:
NoSuchTemplateException
- if a kb template with the primary key could not be foundNoSuchTemplateException
-
removeByGroupId
public static void removeByGroupId(long groupId) Removes all the kb templates where groupId = ? from the database.- Parameters:
groupId
- the group ID
-
countByGroupId
public static int countByGroupId(long groupId) Returns the number of kb templates where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the number of matching kb templates
-
filterCountByGroupId
public static int filterCountByGroupId(long groupId) Returns the number of kb templates that the user has permission to view where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the number of matching kb templates that the user has permission to view
-
cacheResult
Caches the kb template in the entity cache if it is enabled.- Parameters:
kbTemplate
- the kb template
-
cacheResult
Caches the kb templates in the entity cache if it is enabled.- Parameters:
kbTemplates
- the kb templates
-
create
Creates a new kb template with the primary key. Does not add the kb template to the database.- Parameters:
kbTemplateId
- the primary key for the new kb template- Returns:
- the new kb template
-
remove
Removes the kb template with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
kbTemplateId
- the primary key of the kb template- Returns:
- the kb template that was removed
- Throws:
NoSuchTemplateException
- if a kb template with the primary key could not be foundNoSuchTemplateException
-
updateImpl
-
findByPrimaryKey
Returns the kb template with the primary key or throws aNoSuchTemplateException
if it could not be found.- Parameters:
kbTemplateId
- the primary key of the kb template- Returns:
- the kb template
- Throws:
NoSuchTemplateException
- if a kb template with the primary key could not be foundNoSuchTemplateException
-
fetchByPrimaryKey
Returns the kb template with the primary key or returnsnull
if it could not be found.- Parameters:
kbTemplateId
- the primary key of the kb template- Returns:
- the kb template, or
null
if a kb template with the primary key could not be found
-
findAll
Returns all the kb templates.- Returns:
- the kb templates
-
findAll
Returns a range of all the kb templates.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBTemplateModelImpl
.- Parameters:
start
- the lower bound of the range of kb templatesend
- the upper bound of the range of kb templates (not inclusive)- Returns:
- the range of kb templates
-
findAll
public static List<KBTemplate> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) Returns an ordered range of all the kb templates.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBTemplateModelImpl
.- Parameters:
start
- the lower bound of the range of kb templatesend
- the upper bound of the range of kb templates (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of kb templates
-
findAll
public static List<KBTemplate> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kb templates.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKBTemplateModelImpl
.- Parameters:
start
- the lower bound of the range of kb templatesend
- the upper bound of the range of kb templates (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of kb templates
-
removeAll
public static void removeAll()Removes all the kb templates from the database. -
countAll
public static int countAll()Returns the number of kb templates.- Returns:
- the number of kb templates
-
getPersistence
-
setPersistence
-