public class CTCollectionTemplateUtil
extends java.lang.Object
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
CTCollectionTemplatePersistence
Constructor and Description |
---|
CTCollectionTemplateUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CTCollectionTemplate ctCollectionTemplate)
Caches the ct collection template in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CTCollectionTemplate> ctCollectionTemplates)
Caches the ct collection templates in the entity cache if it is enabled.
|
static void |
clearCache() |
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 returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CTCollectionTemplate> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static int |
filterCountByCompanyId(long companyId)
Returns the number of ct collection templates that the user has permission 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 java.util.List<CTCollectionTemplate> |
filterFindByCompanyId(long companyId)
Returns all the ct collection templates that the user has permission to view where companyId = ?.
|
static java.util.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 java.util.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 java.util.List<CTCollectionTemplate> |
findAll()
Returns all the ct collection templates.
|
static java.util.List<CTCollectionTemplate> |
findAll(int start,
int end)
Returns a range of all the ct collection templates.
|
static java.util.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 java.util.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 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 java.util.List<CTCollectionTemplate> |
findByCompanyId(long companyId)
Returns all the ct collection templates where companyId = ?.
|
static java.util.List<CTCollectionTemplate> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the ct collection templates where companyId = ?.
|
static java.util.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 java.util.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 |
findByPrimaryKey(long ctCollectionTemplateId)
Returns the ct collection template with the primary key or throws a
NoSuchCollectionTemplateException if it could not be found. |
static java.util.List<CTCollectionTemplate> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CTCollectionTemplate> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CTCollectionTemplate> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> orderByComparator) |
static CTCollectionTemplatePersistence |
getPersistence() |
static CTCollectionTemplate |
remove(long ctCollectionTemplateId)
Removes the ct collection template with the primary key from the database.
|
static void |
removeAll()
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) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CTCollectionTemplate ctCollectionTemplate)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,CTCollectionTemplate> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CTCollectionTemplate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CTCollectionTemplate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CTCollectionTemplate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CTCollectionTemplate update(CTCollectionTemplate ctCollectionTemplate)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CTCollectionTemplate update(CTCollectionTemplate ctCollectionTemplate, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CTCollectionTemplate> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CTCollectionTemplate> findByCompanyId(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 CTCollectionTemplateModelImpl
.
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)public static java.util.List<CTCollectionTemplate> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> 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 CTCollectionTemplateModelImpl
.
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 (optionally null
)public static java.util.List<CTCollectionTemplate> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> 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 CTCollectionTemplateModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CTCollectionTemplate findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> orderByComparator) throws NoSuchCollectionTemplateException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCollectionTemplateException
- if a matching ct collection template could not be foundpublic static CTCollectionTemplate fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct collection template could not be foundpublic static CTCollectionTemplate findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> orderByComparator) throws NoSuchCollectionTemplateException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCollectionTemplateException
- if a matching ct collection template could not be foundpublic static CTCollectionTemplate fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct collection template could not be foundpublic static CTCollectionTemplate[] findByCompanyId_PrevAndNext(long ctCollectionTemplateId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> orderByComparator) throws NoSuchCollectionTemplateException
ctCollectionTemplateId
- the primary key of the current ct collection templatecompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCollectionTemplateException
- if a ct collection template with the primary key could not be foundpublic static java.util.List<CTCollectionTemplate> filterFindByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CTCollectionTemplate> filterFindByCompanyId(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 CTCollectionTemplateModelImpl
.
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)public static java.util.List<CTCollectionTemplate> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> 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 CTCollectionTemplateModelImpl
.
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 (optionally null
)public static CTCollectionTemplate[] filterFindByCompanyId_PrevAndNext(long ctCollectionTemplateId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> orderByComparator) throws NoSuchCollectionTemplateException
ctCollectionTemplateId
- the primary key of the current ct collection templatecompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCollectionTemplateException
- if a ct collection template with the primary key could not be foundpublic static void removeByCompanyId(long companyId)
companyId
- the company IDpublic static int countByCompanyId(long companyId)
companyId
- the company IDpublic static int filterCountByCompanyId(long companyId)
companyId
- the company IDpublic static void cacheResult(CTCollectionTemplate ctCollectionTemplate)
ctCollectionTemplate
- the ct collection templatepublic static void cacheResult(java.util.List<CTCollectionTemplate> ctCollectionTemplates)
ctCollectionTemplates
- the ct collection templatespublic static CTCollectionTemplate create(long ctCollectionTemplateId)
ctCollectionTemplateId
- the primary key for the new ct collection templatepublic static CTCollectionTemplate remove(long ctCollectionTemplateId) throws NoSuchCollectionTemplateException
ctCollectionTemplateId
- the primary key of the ct collection templateNoSuchCollectionTemplateException
- if a ct collection template with the primary key could not be foundpublic static CTCollectionTemplate updateImpl(CTCollectionTemplate ctCollectionTemplate)
public static CTCollectionTemplate findByPrimaryKey(long ctCollectionTemplateId) throws NoSuchCollectionTemplateException
NoSuchCollectionTemplateException
if it could not be found.ctCollectionTemplateId
- the primary key of the ct collection templateNoSuchCollectionTemplateException
- if a ct collection template with the primary key could not be foundpublic static CTCollectionTemplate fetchByPrimaryKey(long ctCollectionTemplateId)
null
if it could not be found.ctCollectionTemplateId
- the primary key of the ct collection templatenull
if a ct collection template with the primary key could not be foundpublic static java.util.List<CTCollectionTemplate> findAll()
public static java.util.List<CTCollectionTemplate> 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 CTCollectionTemplateModelImpl
.
start
- the lower bound of the range of ct collection templatesend
- the upper bound of the range of ct collection templates (not inclusive)public static java.util.List<CTCollectionTemplate> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> 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 CTCollectionTemplateModelImpl
.
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 (optionally null
)public static java.util.List<CTCollectionTemplate> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollectionTemplate> 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 CTCollectionTemplateModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static CTCollectionTemplatePersistence getPersistence()
public static void setPersistence(CTCollectionTemplatePersistence persistence)