Interface CTCollectionTemplatePersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CTCollectionTemplate>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionintcountByCompanyId(long companyId) Returns the number of ct collection templates where companyId = ?.create(long ctCollectionTemplateId) Creates a new ct collection template with the primary key.fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> orderByComparator) Returns the first ct collection template in the ordered set where companyId = ?.fetchByPrimaryKey(long ctCollectionTemplateId) Returns the ct collection template with the primary key or returnsnullif it could not be found.intfilterCountByCompanyId(long companyId) Returns the number of ct collection templates that the user has permission to view where companyId = ?.default List<CTCollectionTemplate> filterFindByCompanyId(long companyId) Returns all the ct collection templates that the user has permission to view where companyId = ?.default List<CTCollectionTemplate> filterFindByCompanyId(long companyId, int start, int end) Returns a range of all the ct collection templates that the user has permission to view where companyId = ?.filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> orderByComparator) Returns an ordered range of all the ct collection templates that the user has permissions to view where companyId = ?.default List<CTCollectionTemplate> findByCompanyId(long companyId) Returns all the ct collection templates where companyId = ?.default List<CTCollectionTemplate> findByCompanyId(long companyId, int start, int end) Returns a range of all the ct collection templates where companyId = ?.default List<CTCollectionTemplate> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> orderByComparator) Returns an ordered range of all the ct collection templates where companyId = ?.findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ct collection templates where companyId = ?.findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> orderByComparator) Returns the first ct collection template in the ordered set where companyId = ?.findByPrimaryKey(long ctCollectionTemplateId) Returns the ct collection template with the primary key or throws aNoSuchCollectionTemplateExceptionif it could not be found.remove(long ctCollectionTemplateId) Removes the ct collection template with the primary key from the database.voidremoveByCompanyId(long companyId) Removes all the ct collection templates where companyId = ? from the database.updateImpl(CTCollectionTemplate ctCollectionTemplate) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, setDataSource, unregisterListener, update, update
-
Method Details
-
findByCompanyId
List<CTCollectionTemplate> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ct collection templates where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.change.tracking.model.impl.CTCollectionTemplateModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of ct collection templatesend- the upper bound of the range of ct collection 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 ct collection templates
-
findByCompanyId_First
CTCollectionTemplate findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> orderByComparator) throws NoSuchCollectionTemplateException Returns the first ct collection template in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching ct collection template
- Throws:
NoSuchCollectionTemplateException- if a matching ct collection template could not be found
-
fetchByCompanyId_First
CTCollectionTemplate fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> orderByComparator) Returns the first ct collection template in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching ct collection template, or
nullif a matching ct collection template could not be found
-
filterFindByCompanyId
List<CTCollectionTemplate> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> orderByComparator) Returns an ordered range of all the ct collection templates that the user has permissions to view where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.change.tracking.model.impl.CTCollectionTemplateModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of ct collection templatesend- the upper bound of the range of ct collection templates (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching ct collection templates that the user has permission to view
-
removeByCompanyId
void removeByCompanyId(long companyId) Removes all the ct collection templates where companyId = ? from the database.- Parameters:
companyId- the company ID
-
countByCompanyId
int countByCompanyId(long companyId) Returns the number of ct collection templates where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the number of matching ct collection templates
-
filterCountByCompanyId
int filterCountByCompanyId(long companyId) Returns the number of ct collection templates that the user has permission to view where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the number of matching ct collection templates that the user has permission to view
-
create
Creates a new ct collection template with the primary key. Does not add the ct collection template to the database.- Parameters:
ctCollectionTemplateId- the primary key for the new ct collection template- Returns:
- the new ct collection template
-
remove
Removes the ct collection template with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
ctCollectionTemplateId- the primary key of the ct collection template- Returns:
- the ct collection template that was removed
- Throws:
NoSuchCollectionTemplateException- if a ct collection template with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
CTCollectionTemplate findByPrimaryKey(long ctCollectionTemplateId) throws NoSuchCollectionTemplateException Returns the ct collection template with the primary key or throws aNoSuchCollectionTemplateExceptionif it could not be found.- Parameters:
ctCollectionTemplateId- the primary key of the ct collection template- Returns:
- the ct collection template
- Throws:
NoSuchCollectionTemplateException- if a ct collection template with the primary key could not be found
-
fetchByPrimaryKey
Returns the ct collection template with the primary key or returnsnullif it could not be found.- Parameters:
ctCollectionTemplateId- the primary key of the ct collection template- Returns:
- the ct collection template, or
nullif a ct collection template with the primary key could not be found
-
findByCompanyId
Returns all the ct collection templates where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the matching ct collection templates
-
findByCompanyId
Returns a range of all the ct collection templates where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.change.tracking.model.impl.CTCollectionTemplateModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of ct collection templatesend- the upper bound of the range of ct collection templates (not inclusive)- Returns:
- the range of matching ct collection templates
-
findByCompanyId
default List<CTCollectionTemplate> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> orderByComparator) Returns an ordered range of all the ct collection templates where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.change.tracking.model.impl.CTCollectionTemplateModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of ct collection templatesend- the upper bound of the range of ct collection templates (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching ct collection templates
-
filterFindByCompanyId
Returns all the ct collection templates that the user has permission to view where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the matching ct collection templates that the user has permission to view
-
filterFindByCompanyId
Returns a range of all the ct collection templates that the user has permission to view where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.change.tracking.model.impl.CTCollectionTemplateModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of ct collection templatesend- the upper bound of the range of ct collection templates (not inclusive)- Returns:
- the range of matching ct collection templates that the user has permission to view
-