@ProviderType public interface KBTemplatePersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<KBTemplate>
Caching information and settings can be found in portal.properties
KBTemplateUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(KBTemplate kbTemplate)
Caches the kb template in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<KBTemplate> kbTemplates)
Caches the kb templates in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of kb templates.
|
int |
countByGroupId(long groupId)
Returns the number of kb templates where groupId = ?.
|
int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of kb templates where uuid = ? and companyId = ?.
|
int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of kb templates where uuid = ? and groupId = ?.
|
int |
countByUuid(java.lang.String uuid)
Returns the number of kb templates where uuid = ?.
|
KBTemplate |
create(long kbTemplateId)
Creates a new kb template with the primary key.
|
KBTemplate |
fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
Returns the first kb template in the ordered set where groupId = ?.
|
KBTemplate |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
Returns the last kb template in the ordered set where groupId = ?.
|
KBTemplate |
fetchByPrimaryKey(long kbTemplateId)
Returns the kb template with the primary key or returns
null if it could not be found. |
KBTemplate |
fetchByUuid_C_First(java.lang.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 = ?.
|
KBTemplate |
fetchByUuid_C_Last(java.lang.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 = ?.
|
KBTemplate |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
Returns the first kb template in the ordered set where uuid = ?.
|
KBTemplate |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the kb template where uuid = ? and groupId = ? or returns
null if it could not be found. |
KBTemplate |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean useFinderCache)
Returns the kb 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 kb template in the ordered set where uuid = ?.
|
int |
filterCountByGroupId(long groupId)
Returns the number of kb 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 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 = ?.
|
java.util.List<KBTemplate> |
filterFindByGroupId(long groupId)
Returns all the kb 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 kb 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 kb templates that the user has permissions to view where groupId = ?.
|
java.util.List<KBTemplate> |
findAll()
Returns all the kb templates.
|
java.util.List<KBTemplate> |
findAll(int start,
int end)
Returns a range of all the kb 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 kb templates.
|
java.util.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.
|
KBTemplate |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
Returns the first kb template in the ordered set where groupId = ?.
|
KBTemplate |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
Returns the last kb template in the ordered set where groupId = ?.
|
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 = ?.
|
java.util.List<KBTemplate> |
findByGroupId(long groupId)
Returns all the kb templates where groupId = ?.
|
java.util.List<KBTemplate> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the kb 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 kb templates where groupId = ?.
|
java.util.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 = ?.
|
KBTemplate |
findByPrimaryKey(long kbTemplateId)
Returns the kb 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 kb 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 kb 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 kb templates before and after the current kb template in the ordered set where uuid = ? and companyId = ?.
|
java.util.List<KBTemplate> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the kb 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 kb 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 kb 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 useFinderCache)
Returns an ordered range of all the kb templates where uuid = ? and companyId = ?.
|
KBTemplate |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
Returns the first kb template in the ordered set where uuid = ?.
|
KBTemplate |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the kb 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 kb 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 kb templates before and after the current kb template in the ordered set where uuid = ?.
|
java.util.List<KBTemplate> |
findByUuid(java.lang.String uuid)
Returns all the kb templates where uuid = ?.
|
java.util.List<KBTemplate> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the kb 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 kb 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 useFinderCache)
Returns an ordered range of all the kb templates where uuid = ?.
|
KBTemplate |
remove(long kbTemplateId)
Removes the kb template with the primary key from the database.
|
void |
removeAll()
Removes all the kb templates from the database.
|
void |
removeByGroupId(long groupId)
Removes all the kb templates where groupId = ? from the database.
|
void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the kb templates where uuid = ? and companyId = ? from the database.
|
KBTemplate |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the kb template where uuid = ? and groupId = ? from the database.
|
void |
removeByUuid(java.lang.String uuid)
Removes all the kb templates where uuid = ? from the database.
|
KBTemplate |
updateImpl(KBTemplate kbTemplate) |
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.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, then the query will include the default ORDER BY logic from KBTemplateModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of kb templatesend
- the upper bound of the range of kb 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, then the query will include the default ORDER BY logic from KBTemplateModelImpl
.
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 (optionally null
)java.util.List<KBTemplate> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> 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 KBTemplateModelImpl
.
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 (optionally null
)useFinderCache
- whether to use 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 kb 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 kb 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 kb 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 kb 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 kb templateuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTemplateException
- if a kb 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 kb 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 kb template could not be foundKBTemplate 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 template could not be foundKBTemplate removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchTemplateException
uuid
- the uuidgroupId
- the group IDNoSuchTemplateException
int 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, then the query will include the default ORDER BY logic from KBTemplateModelImpl
.
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)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, then the query will include the default ORDER BY logic from KBTemplateModelImpl
.
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 (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 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 KBTemplateModelImpl
.
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 (optionally null
)useFinderCache
- whether to use 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 kb 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 kb 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 kb 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 kb 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 kb templateuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTemplateException
- if a kb 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, then the query will include the default ORDER BY logic from KBTemplateModelImpl
.
groupId
- the group IDstart
- the lower bound of the range of kb templatesend
- the upper bound of the range of kb 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, then the query will include the default ORDER BY logic from KBTemplateModelImpl
.
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 (optionally null
)java.util.List<KBTemplate> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> 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 KBTemplateModelImpl
.
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 (optionally null
)useFinderCache
- whether to use 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 kb 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 kb 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 kb 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 kb 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 kb templategroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTemplateException
- if a kb 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, then the query will include the default ORDER BY logic from KBTemplateModelImpl
.
groupId
- the group IDstart
- the lower bound of the range of kb templatesend
- the upper bound of the range of kb 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, then the query will include the default ORDER BY logic from KBTemplateModelImpl
.
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 (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 kb templategroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTemplateException
- if a kb 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 kb templatevoid cacheResult(java.util.List<KBTemplate> kbTemplates)
kbTemplates
- the kb templatesKBTemplate create(long kbTemplateId)
kbTemplateId
- the primary key for the new kb templateKBTemplate remove(long kbTemplateId) throws NoSuchTemplateException
kbTemplateId
- the primary key of the kb templateNoSuchTemplateException
- if a kb 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 kb templateNoSuchTemplateException
- if a kb 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 kb templatenull
if a kb template with the primary key could not be foundjava.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, then the query will include the default ORDER BY logic from KBTemplateModelImpl
.
start
- the lower bound of the range of kb templatesend
- the upper bound of the range of kb 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, then the query will include the default ORDER BY logic from KBTemplateModelImpl
.
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 (optionally null
)java.util.List<KBTemplate> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> 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 KBTemplateModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()