@ProviderType public interface CTCollectionTemplatePersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CTCollectionTemplate>
Caching information and settings can be found in portal.properties
CTCollectionTemplateUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(CTCollectionTemplate ctCollectionTemplate)
Caches the ct collection template in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CTCollectionTemplate> ctCollectionTemplates)
Caches the ct collection templates in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of ct collection templates.
|
int |
countByCompanyId(long companyId)
Returns the number of ct collection templates where companyId = ?.
|
CTCollectionTemplate |
create(long ctCollectionTemplateId)
Creates a new ct collection template with the primary key.
|
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 = ?.
|
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 = ?.
|
CTCollectionTemplate |
fetchByPrimaryKey(long ctCollectionTemplateId)
Returns the ct collection template with the primary key or returns
null if it could not be found. |
int |
filterCountByCompanyId(long companyId)
Returns the number of ct collection templates that the user has permission to view where companyId = ?.
|
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 = ?.
|
java.util.List<CTCollectionTemplate> |
filterFindByCompanyId(long companyId)
Returns all the ct collection templates that the user has permission to view where companyId = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CTCollectionTemplate> |
findAll()
Returns all the ct collection templates.
|
java.util.List<CTCollectionTemplate> |
findAll(int start,
int end)
Returns a range of all the ct collection templates.
|
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.
|
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.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CTCollectionTemplate> |
findByCompanyId(long companyId)
Returns all the ct collection templates where companyId = ?.
|
java.util.List<CTCollectionTemplate> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the ct collection templates where companyId = ?.
|
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 = ?.
|
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 = ?.
|
CTCollectionTemplate |
findByPrimaryKey(long ctCollectionTemplateId)
Returns the ct collection template with the primary key or throws a
NoSuchCollectionTemplateException if it could not be found. |
CTCollectionTemplate |
remove(long ctCollectionTemplateId)
Removes the ct collection template with the primary key from the database.
|
void |
removeAll()
Removes all the ct collection templates from the database.
|
void |
removeByCompanyId(long companyId)
Removes all the ct collection templates where companyId = ? from the database.
|
CTCollectionTemplate |
updateImpl(CTCollectionTemplate ctCollectionTemplate) |
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<CTCollectionTemplate> findByCompanyId(long companyId)
companyId
- the company IDjava.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)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
)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 cacheCTCollectionTemplate 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 foundCTCollectionTemplate 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 foundCTCollectionTemplate 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 foundCTCollectionTemplate 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 foundCTCollectionTemplate[] 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 foundjava.util.List<CTCollectionTemplate> filterFindByCompanyId(long companyId)
companyId
- the company IDjava.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)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
)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 foundvoid removeByCompanyId(long companyId)
companyId
- the company IDint countByCompanyId(long companyId)
companyId
- the company IDint filterCountByCompanyId(long companyId)
companyId
- the company IDvoid cacheResult(CTCollectionTemplate ctCollectionTemplate)
ctCollectionTemplate
- the ct collection templatevoid cacheResult(java.util.List<CTCollectionTemplate> ctCollectionTemplates)
ctCollectionTemplates
- the ct collection templatesCTCollectionTemplate create(long ctCollectionTemplateId)
ctCollectionTemplateId
- the primary key for the new ct collection templateCTCollectionTemplate 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 foundCTCollectionTemplate updateImpl(CTCollectionTemplate ctCollectionTemplate)
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 foundCTCollectionTemplate 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 foundjava.util.List<CTCollectionTemplate> findAll()
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)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
)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 cachevoid removeAll()
int countAll()