@ProviderType public interface KBTemplatePersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<KBTemplate>
Caching information and settings can be found in portal.properties
com.liferay.knowledge.base.service.persistence.impl.KBTemplatePersistenceImpl,
KBTemplateUtil| Modifier and Type | Method and Description |
|---|---|
void |
cacheResult(KBTemplate kbTemplate)
Caches the k b template in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<KBTemplate> kbTemplates)
Caches the k b templates in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of k b templates.
|
int |
countByGroupId(long groupId)
Returns the number of k b templates where groupId = ?.
|
int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of k b templates where uuid = ? and companyId = ?.
|
int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of k b templates where uuid = ? and groupId = ?.
|
int |
countByUuid(java.lang.String uuid)
Returns the number of k b templates where uuid = ?.
|
KBTemplate |
create(long kbTemplateId)
Creates a new k b template with the primary key.
|
KBTemplate |
fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
Returns the first k b template in the ordered set where groupId = ?.
|
KBTemplate |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
Returns the last k b template in the ordered set where groupId = ?.
|
KBTemplate |
fetchByPrimaryKey(long kbTemplateId)
Returns the k b template with the primary key or returns
null if it could not be found. |
java.util.Map<java.io.Serializable,KBTemplate> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
KBTemplate |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
Returns the first k b template in the ordered set where uuid = ? and companyId = ?.
|
KBTemplate |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
Returns the last k b template in the ordered set where uuid = ? and companyId = ?.
|
KBTemplate |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
Returns the first k b template in the ordered set where uuid = ?.
|
KBTemplate |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the k b template where uuid = ? and groupId = ? or returns
null if it could not be found. |
KBTemplate |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean retrieveFromCache)
Returns the k b template where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
KBTemplate |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
Returns the last k b template in the ordered set where uuid = ?.
|
int |
filterCountByGroupId(long groupId)
Returns the number of k b templates that the user has permission to view where groupId = ?.
|
KBTemplate[] |
filterFindByGroupId_PrevAndNext(long kbTemplateId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
Returns the k b templates before and after the current k b template in the ordered set of k b templates that the user has permission to view where groupId = ?.
|
java.util.List<KBTemplate> |
filterFindByGroupId(long groupId)
Returns all the k b templates that the user has permission to view where groupId = ?.
|
java.util.List<KBTemplate> |
filterFindByGroupId(long groupId,
int start,
int end)
Returns a range of all the k b templates that the user has permission to view where groupId = ?.
|
java.util.List<KBTemplate> |
filterFindByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
Returns an ordered range of all the k b templates that the user has permissions to view where groupId = ?.
|
java.util.List<KBTemplate> |
findAll()
Returns all the k b templates.
|
java.util.List<KBTemplate> |
findAll(int start,
int end)
Returns a range of all the k b templates.
|
java.util.List<KBTemplate> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
Returns an ordered range of all the k b templates.
|
java.util.List<KBTemplate> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the k b templates.
|
KBTemplate |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
Returns the first k b template in the ordered set where groupId = ?.
|
KBTemplate |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
Returns the last k b template in the ordered set where groupId = ?.
|
KBTemplate[] |
findByGroupId_PrevAndNext(long kbTemplateId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
Returns the k b templates before and after the current k b template in the ordered set where groupId = ?.
|
java.util.List<KBTemplate> |
findByGroupId(long groupId)
Returns all the k b templates where groupId = ?.
|
java.util.List<KBTemplate> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the k b templates where groupId = ?.
|
java.util.List<KBTemplate> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
Returns an ordered range of all the k b templates where groupId = ?.
|
java.util.List<KBTemplate> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the k b templates where groupId = ?.
|
KBTemplate |
findByPrimaryKey(long kbTemplateId)
Returns the k b template with the primary key or throws a
NoSuchTemplateException if it could not be found. |
KBTemplate |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
Returns the first k b template in the ordered set where uuid = ? and companyId = ?.
|
KBTemplate |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
Returns the last k b template in the ordered set where uuid = ? and companyId = ?.
|
KBTemplate[] |
findByUuid_C_PrevAndNext(long kbTemplateId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
Returns the k b templates before and after the current k b template in the ordered set where uuid = ? and companyId = ?.
|
java.util.List<KBTemplate> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the k b templates where uuid = ? and companyId = ?.
|
java.util.List<KBTemplate> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the k b templates where uuid = ? and companyId = ?.
|
java.util.List<KBTemplate> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
Returns an ordered range of all the k b templates where uuid = ? and companyId = ?.
|
java.util.List<KBTemplate> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the k b templates where uuid = ? and companyId = ?.
|
KBTemplate |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
Returns the first k b template in the ordered set where uuid = ?.
|
KBTemplate |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the k b template where uuid = ? and groupId = ? or throws a
NoSuchTemplateException if it could not be found. |
KBTemplate |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
Returns the last k b template in the ordered set where uuid = ?.
|
KBTemplate[] |
findByUuid_PrevAndNext(long kbTemplateId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
Returns the k b templates before and after the current k b template in the ordered set where uuid = ?.
|
java.util.List<KBTemplate> |
findByUuid(java.lang.String uuid)
Returns all the k b templates where uuid = ?.
|
java.util.List<KBTemplate> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the k b templates where uuid = ?.
|
java.util.List<KBTemplate> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
Returns an ordered range of all the k b templates where uuid = ?.
|
java.util.List<KBTemplate> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the k b templates where uuid = ?.
|
java.util.Set<java.lang.String> |
getBadColumnNames() |
KBTemplate |
remove(long kbTemplateId)
Removes the k b template with the primary key from the database.
|
void |
removeAll()
Removes all the k b templates from the database.
|
void |
removeByGroupId(long groupId)
Removes all the k b templates where groupId = ? from the database.
|
void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the k b templates where uuid = ? and companyId = ? from the database.
|
KBTemplate |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the k b template where uuid = ? and groupId = ? from the database.
|
void |
removeByUuid(java.lang.String uuid)
Removes all the k b templates where uuid = ? from the database.
|
KBTemplate |
updateImpl(KBTemplate kbTemplate) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, updatejava.util.List<KBTemplate> findByUuid(java.lang.String uuid)
uuid - the uuidjava.util.List<KBTemplate> 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 KBTemplateModelImpl. 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 templatesend - the upper bound of the range of k b templates (not inclusive)java.util.List<KBTemplate> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> 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 KBTemplateModelImpl. 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 templatesend - the upper bound of the range of k b templates (not inclusive)orderByComparator - the comparator to order the results by (optionally null)java.util.List<KBTemplate> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> 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 KBTemplateModelImpl. 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 templatesend - the upper bound of the range of k b templates (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cacheKBTemplate findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) throws NoSuchTemplateException
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)NoSuchTemplateException - if a matching k b template could not be foundKBTemplate fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)null if a matching k b template could not be foundKBTemplate findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) throws NoSuchTemplateException
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)NoSuchTemplateException - if a matching k b template could not be foundKBTemplate fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)null if a matching k b template could not be foundKBTemplate[] findByUuid_PrevAndNext(long kbTemplateId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) throws NoSuchTemplateException
kbTemplateId - the primary key of the current k b templateuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)NoSuchTemplateException - if a k b template with the primary key could not be foundvoid removeByUuid(java.lang.String uuid)
uuid - the uuidint countByUuid(java.lang.String uuid)
uuid - the uuidKBTemplate findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchTemplateException
NoSuchTemplateException if it could not be found.uuid - the uuidgroupId - the group IDNoSuchTemplateException - if a matching k b template could not be foundKBTemplate 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 template could not be foundKBTemplate 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 template could not be foundKBTemplate removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchTemplateException
uuid - the uuidgroupId - the group IDNoSuchTemplateExceptionint countByUUID_G(java.lang.String uuid,
long groupId)
uuid - the uuidgroupId - the group IDjava.util.List<KBTemplate> findByUuid_C(java.lang.String uuid, long companyId)
uuid - the uuidcompanyId - the company IDjava.util.List<KBTemplate> 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 KBTemplateModelImpl. 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 templatesend - the upper bound of the range of k b templates (not inclusive)java.util.List<KBTemplate> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> 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 KBTemplateModelImpl. 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 templatesend - the upper bound of the range of k b templates (not inclusive)orderByComparator - the comparator to order the results by (optionally null)java.util.List<KBTemplate> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> 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 KBTemplateModelImpl. 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 templatesend - the upper bound of the range of k b templates (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cacheKBTemplate findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) throws NoSuchTemplateException
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchTemplateException - if a matching k b template could not be foundKBTemplate fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching k b template could not be foundKBTemplate findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) throws NoSuchTemplateException
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchTemplateException - if a matching k b template could not be foundKBTemplate fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching k b template could not be foundKBTemplate[] findByUuid_C_PrevAndNext(long kbTemplateId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) throws NoSuchTemplateException
kbTemplateId - the primary key of the current k b templateuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchTemplateException - if a k b template with the primary key could not be foundvoid removeByUuid_C(java.lang.String uuid,
long companyId)
uuid - the uuidcompanyId - the company IDint countByUuid_C(java.lang.String uuid,
long companyId)
uuid - the uuidcompanyId - the company IDjava.util.List<KBTemplate> findByGroupId(long groupId)
groupId - the group IDjava.util.List<KBTemplate> findByGroupId(long groupId, int start, int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from KBTemplateModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstart - the lower bound of the range of k b templatesend - the upper bound of the range of k b templates (not inclusive)java.util.List<KBTemplate> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> 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 KBTemplateModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstart - the lower bound of the range of k b templatesend - the upper bound of the range of k b templates (not inclusive)orderByComparator - the comparator to order the results by (optionally null)java.util.List<KBTemplate> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> 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 KBTemplateModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstart - the lower bound of the range of k b templatesend - the upper bound of the range of k b templates (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cacheKBTemplate findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) throws NoSuchTemplateException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchTemplateException - if a matching k b template could not be foundKBTemplate fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching k b template could not be foundKBTemplate findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) throws NoSuchTemplateException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchTemplateException - if a matching k b template could not be foundKBTemplate fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching k b template could not be foundKBTemplate[] findByGroupId_PrevAndNext(long kbTemplateId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) throws NoSuchTemplateException
kbTemplateId - the primary key of the current k b templategroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchTemplateException - if a k b template with the primary key could not be foundjava.util.List<KBTemplate> filterFindByGroupId(long groupId)
groupId - the group IDjava.util.List<KBTemplate> filterFindByGroupId(long groupId, int start, int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from KBTemplateModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstart - the lower bound of the range of k b templatesend - the upper bound of the range of k b templates (not inclusive)java.util.List<KBTemplate> filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> 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 KBTemplateModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstart - the lower bound of the range of k b templatesend - the upper bound of the range of k b templates (not inclusive)orderByComparator - the comparator to order the results by (optionally null)KBTemplate[] filterFindByGroupId_PrevAndNext(long kbTemplateId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) throws NoSuchTemplateException
kbTemplateId - the primary key of the current k b templategroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchTemplateException - if a k b template with the primary key could not be foundvoid removeByGroupId(long groupId)
groupId - the group IDint countByGroupId(long groupId)
groupId - the group IDint filterCountByGroupId(long groupId)
groupId - the group IDvoid cacheResult(KBTemplate kbTemplate)
kbTemplate - the k b templatevoid cacheResult(java.util.List<KBTemplate> kbTemplates)
kbTemplates - the k b templatesKBTemplate create(long kbTemplateId)
kbTemplateId - the primary key for the new k b templateKBTemplate remove(long kbTemplateId) throws NoSuchTemplateException
kbTemplateId - the primary key of the k b templateNoSuchTemplateException - if a k b template with the primary key could not be foundKBTemplate updateImpl(KBTemplate kbTemplate)
KBTemplate findByPrimaryKey(long kbTemplateId) throws NoSuchTemplateException
NoSuchTemplateException if it could not be found.kbTemplateId - the primary key of the k b templateNoSuchTemplateException - if a k b template with the primary key could not be foundKBTemplate fetchByPrimaryKey(long kbTemplateId)
null if it could not be found.kbTemplateId - the primary key of the k b templatenull if a k b template with the primary key could not be foundjava.util.Map<java.io.Serializable,KBTemplate> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
fetchByPrimaryKeys in interface com.liferay.portal.kernel.service.persistence.BasePersistence<KBTemplate>java.util.List<KBTemplate> findAll()
java.util.List<KBTemplate> 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 KBTemplateModelImpl. 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 templatesend - the upper bound of the range of k b templates (not inclusive)java.util.List<KBTemplate> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> 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 KBTemplateModelImpl. 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 templatesend - the upper bound of the range of k b templates (not inclusive)orderByComparator - the comparator to order the results by (optionally null)java.util.List<KBTemplate> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> 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 KBTemplateModelImpl. 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 templatesend - the upper bound of the range of k b templates (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachevoid removeAll()
int countAll()
java.util.Set<java.lang.String> getBadColumnNames()
getBadColumnNames in interface com.liferay.portal.kernel.service.persistence.BasePersistence<KBTemplate>