Class CTCollectionTemplateUtil
com.liferay.change.tracking.service.persistence.impl.CTCollectionTemplatePersistenceImpl
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
(CTCollectionTemplate ctCollectionTemplate) Caches the ct collection template in the entity cache if it is enabled.static void
cacheResult
(List<CTCollectionTemplate> ctCollectionTemplates) Caches the ct collection templates in the entity cache if it is enabled.static void
static void
clearCache
(CTCollectionTemplate ctCollectionTemplate) static int
countAll()
Returns the number of ct collection templates.static int
countByCompanyId
(long companyId) Returns the number of ct collection templates where companyId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CTCollectionTemplate
create
(long ctCollectionTemplateId) Creates a new ct collection template with the primary key.static 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 = ?.static CTCollectionTemplate
fetchByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> orderByComparator) Returns the last ct collection template in the ordered set where companyId = ?.static CTCollectionTemplate
fetchByPrimaryKey
(long ctCollectionTemplateId) Returns the ct collection template with the primary key or returnsnull
if it could not be found.static Map<Serializable,
CTCollectionTemplate> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static int
filterCountByCompanyId
(long companyId) Returns the number of ct collection templates that the user has permission to view where companyId = ?.static List<CTCollectionTemplate>
filterFindByCompanyId
(long companyId) Returns all the ct collection templates that the user has permission to view where companyId = ?.static 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 = ?.static 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 = ?.static CTCollectionTemplate[]
filterFindByCompanyId_PrevAndNext
(long ctCollectionTemplateId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> orderByComparator) Returns the ct collection templates before and after the current ct collection template in the ordered set of ct collection templates that the user has permission to view where companyId = ?.static List<CTCollectionTemplate>
findAll()
Returns all the ct collection templates.static List<CTCollectionTemplate>
findAll
(int start, int end) Returns a range of all the ct collection templates.static List<CTCollectionTemplate>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> orderByComparator) Returns an ordered range of all the ct collection templates.static List<CTCollectionTemplate>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ct collection templates.static List<CTCollectionTemplate>
findByCompanyId
(long companyId) Returns all the ct collection templates where companyId = ?.static List<CTCollectionTemplate>
findByCompanyId
(long companyId, int start, int end) Returns a range of all the ct collection templates where companyId = ?.static 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 = ?.static 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 = ?.static CTCollectionTemplate
findByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> orderByComparator) Returns the first ct collection template in the ordered set where companyId = ?.static CTCollectionTemplate
findByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> orderByComparator) Returns the last ct collection template in the ordered set where companyId = ?.static CTCollectionTemplate[]
findByCompanyId_PrevAndNext
(long ctCollectionTemplateId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> orderByComparator) Returns the ct collection templates before and after the current ct collection template in the ordered set where companyId = ?.static CTCollectionTemplate
findByPrimaryKey
(long ctCollectionTemplateId) Returns the ct collection template with the primary key or throws aNoSuchCollectionTemplateException
if it could not be found.static List<CTCollectionTemplate>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CTCollectionTemplate>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CTCollectionTemplate>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> orderByComparator) static CTCollectionTemplate
remove
(long ctCollectionTemplateId) Removes the ct collection template with the primary key from the database.static void
Removes all the ct collection templates from the database.static void
removeByCompanyId
(long companyId) Removes all the ct collection templates where companyId = ? from the database.static void
setPersistence
(CTCollectionTemplatePersistence persistence) static CTCollectionTemplate
update
(CTCollectionTemplate ctCollectionTemplate) static CTCollectionTemplate
update
(CTCollectionTemplate ctCollectionTemplate, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CTCollectionTemplate
updateImpl
(CTCollectionTemplate ctCollectionTemplate)
-
Constructor Details
-
CTCollectionTemplateUtil
public CTCollectionTemplateUtil()
-
-
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
public static Map<Serializable,CTCollectionTemplate> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CTCollectionTemplate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CTCollectionTemplate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CTCollectionTemplate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CTCollectionTemplate update(CTCollectionTemplate ctCollectionTemplate, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
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 - 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 fromCTCollectionTemplateModelImpl
.- 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
public static 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 - 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 fromCTCollectionTemplateModelImpl
.- 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
-
findByCompanyId
public static 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 - 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 fromCTCollectionTemplateModelImpl
.- 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
public static 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 foundNoSuchCollectionTemplateException
-
fetchByCompanyId_First
public static 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
null
if a matching ct collection template could not be found
-
findByCompanyId_Last
public static CTCollectionTemplate findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> orderByComparator) throws NoSuchCollectionTemplateException Returns the last ct collection template in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ct collection template
- Throws:
NoSuchCollectionTemplateException
- if a matching ct collection template could not be foundNoSuchCollectionTemplateException
-
fetchByCompanyId_Last
public static CTCollectionTemplate fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> orderByComparator) Returns the last ct collection template in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ct collection template, or
null
if a matching ct collection template could not be found
-
findByCompanyId_PrevAndNext
public static CTCollectionTemplate[] findByCompanyId_PrevAndNext(long ctCollectionTemplateId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> orderByComparator) throws NoSuchCollectionTemplateException Returns the ct collection templates before and after the current ct collection template in the ordered set where companyId = ?.- Parameters:
ctCollectionTemplateId
- the primary key of the current ct collection templatecompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next ct collection template
- Throws:
NoSuchCollectionTemplateException
- if a ct collection template with the primary key could not be foundNoSuchCollectionTemplateException
-
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 - 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 fromCTCollectionTemplateModelImpl
.- 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
-
filterFindByCompanyId
public static 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 - 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 fromCTCollectionTemplateModelImpl
.- 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
-
filterFindByCompanyId_PrevAndNext
public static CTCollectionTemplate[] filterFindByCompanyId_PrevAndNext(long ctCollectionTemplateId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> orderByComparator) throws NoSuchCollectionTemplateException Returns the ct collection templates before and after the current ct collection template in the ordered set of ct collection templates that the user has permission to view where companyId = ?.- Parameters:
ctCollectionTemplateId
- the primary key of the current ct collection templatecompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next ct collection template
- Throws:
NoSuchCollectionTemplateException
- if a ct collection template with the primary key could not be foundNoSuchCollectionTemplateException
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the ct collection templates where companyId = ? from the database.- Parameters:
companyId
- the company ID
-
countByCompanyId
public static 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
public static 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
-
cacheResult
Caches the ct collection template in the entity cache if it is enabled.- Parameters:
ctCollectionTemplate
- the ct collection template
-
cacheResult
Caches the ct collection templates in the entity cache if it is enabled.- Parameters:
ctCollectionTemplates
- the ct collection templates
-
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
public static CTCollectionTemplate remove(long ctCollectionTemplateId) throws NoSuchCollectionTemplateException 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 foundNoSuchCollectionTemplateException
-
updateImpl
-
findByPrimaryKey
public static CTCollectionTemplate findByPrimaryKey(long ctCollectionTemplateId) throws NoSuchCollectionTemplateException Returns the ct collection template with the primary key or throws aNoSuchCollectionTemplateException
if 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 foundNoSuchCollectionTemplateException
-
fetchByPrimaryKey
Returns the ct collection template with the primary key or returnsnull
if it could not be found.- Parameters:
ctCollectionTemplateId
- the primary key of the ct collection template- Returns:
- the ct collection template, or
null
if a ct collection template with the primary key could not be found
-
findAll
Returns all the ct collection templates.- Returns:
- the ct collection templates
-
findAll
Returns a range of all the ct collection 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 fromCTCollectionTemplateModelImpl
.- Parameters:
start
- 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 ct collection templates
-
findAll
public static List<CTCollectionTemplate> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> orderByComparator) Returns an ordered range of all the ct collection 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 fromCTCollectionTemplateModelImpl
.- Parameters:
start
- 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 ct collection templates
-
findAll
public static List<CTCollectionTemplate> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ct collection 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 fromCTCollectionTemplateModelImpl
.- Parameters:
start
- 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 ct collection templates
-
removeAll
public static void removeAll()Removes all the ct collection templates from the database. -
countAll
public static int countAll()Returns the number of ct collection templates.- Returns:
- the number of ct collection templates
-
getPersistence
-
setPersistence
-