@ProviderType public interface CTCollectionPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CTCollection>
Caching information and settings can be found in portal.properties
CTCollectionUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(CTCollection ctCollection)
Caches the ct collection in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CTCollection> ctCollections)
Caches the ct collections in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of ct collections.
|
int |
countByC_S(long companyId,
int status)
Returns the number of ct collections where companyId = ? and status = ?.
|
int |
countByC_S(long companyId,
int[] statuses)
Returns the number of ct collections where companyId = ? and status = any ?.
|
int |
countByCompanyId(long companyId)
Returns the number of ct collections where companyId = ?.
|
int |
countBySchemaVersionId(long schemaVersionId)
Returns the number of ct collections where schemaVersionId = ?.
|
CTCollection |
create(long ctCollectionId)
Creates a new ct collection with the primary key.
|
CTCollection |
fetchByC_S_First(long companyId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns the first ct collection in the ordered set where companyId = ? and status = ?.
|
CTCollection |
fetchByC_S_Last(long companyId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns the last ct collection in the ordered set where companyId = ? and status = ?.
|
CTCollection |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns the first ct collection in the ordered set where companyId = ?.
|
CTCollection |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns the last ct collection in the ordered set where companyId = ?.
|
CTCollection |
fetchByPrimaryKey(long ctCollectionId)
Returns the ct collection with the primary key or returns
null if it could not be found. |
CTCollection |
fetchBySchemaVersionId_First(long schemaVersionId,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns the first ct collection in the ordered set where schemaVersionId = ?.
|
CTCollection |
fetchBySchemaVersionId_Last(long schemaVersionId,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns the last ct collection in the ordered set where schemaVersionId = ?.
|
int |
filterCountByC_S(long companyId,
int status)
Returns the number of ct collections that the user has permission to view where companyId = ? and status = ?.
|
int |
filterCountByC_S(long companyId,
int[] statuses)
Returns the number of ct collections that the user has permission to view where companyId = ? and status = any ?.
|
int |
filterCountByCompanyId(long companyId)
Returns the number of ct collections that the user has permission to view where companyId = ?.
|
int |
filterCountBySchemaVersionId(long schemaVersionId)
Returns the number of ct collections that the user has permission to view where schemaVersionId = ?.
|
CTCollection[] |
filterFindByC_S_PrevAndNext(long ctCollectionId,
long companyId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns the ct collections before and after the current ct collection in the ordered set of ct collections that the user has permission to view where companyId = ? and status = ?.
|
java.util.List<CTCollection> |
filterFindByC_S(long companyId,
int status)
Returns all the ct collections that the user has permission to view where companyId = ? and status = ?.
|
java.util.List<CTCollection> |
filterFindByC_S(long companyId,
int[] statuses)
Returns all the ct collections that the user has permission to view where companyId = ? and status = any ?.
|
java.util.List<CTCollection> |
filterFindByC_S(long companyId,
int[] statuses,
int start,
int end)
Returns a range of all the ct collections that the user has permission to view where companyId = ? and status = any ?.
|
java.util.List<CTCollection> |
filterFindByC_S(long companyId,
int[] statuses,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns an ordered range of all the ct collections that the user has permission to view where companyId = ? and status = any ?.
|
java.util.List<CTCollection> |
filterFindByC_S(long companyId,
int status,
int start,
int end)
Returns a range of all the ct collections that the user has permission to view where companyId = ? and status = ?.
|
java.util.List<CTCollection> |
filterFindByC_S(long companyId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns an ordered range of all the ct collections that the user has permissions to view where companyId = ? and status = ?.
|
CTCollection[] |
filterFindByCompanyId_PrevAndNext(long ctCollectionId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns the ct collections before and after the current ct collection in the ordered set of ct collections that the user has permission to view where companyId = ?.
|
java.util.List<CTCollection> |
filterFindByCompanyId(long companyId)
Returns all the ct collections that the user has permission to view where companyId = ?.
|
java.util.List<CTCollection> |
filterFindByCompanyId(long companyId,
int start,
int end)
Returns a range of all the ct collections that the user has permission to view where companyId = ?.
|
java.util.List<CTCollection> |
filterFindByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns an ordered range of all the ct collections that the user has permissions to view where companyId = ?.
|
CTCollection[] |
filterFindBySchemaVersionId_PrevAndNext(long ctCollectionId,
long schemaVersionId,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns the ct collections before and after the current ct collection in the ordered set of ct collections that the user has permission to view where schemaVersionId = ?.
|
java.util.List<CTCollection> |
filterFindBySchemaVersionId(long schemaVersionId)
Returns all the ct collections that the user has permission to view where schemaVersionId = ?.
|
java.util.List<CTCollection> |
filterFindBySchemaVersionId(long schemaVersionId,
int start,
int end)
Returns a range of all the ct collections that the user has permission to view where schemaVersionId = ?.
|
java.util.List<CTCollection> |
filterFindBySchemaVersionId(long schemaVersionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns an ordered range of all the ct collections that the user has permissions to view where schemaVersionId = ?.
|
java.util.List<CTCollection> |
findAll()
Returns all the ct collections.
|
java.util.List<CTCollection> |
findAll(int start,
int end)
Returns a range of all the ct collections.
|
java.util.List<CTCollection> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns an ordered range of all the ct collections.
|
java.util.List<CTCollection> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the ct collections.
|
CTCollection |
findByC_S_First(long companyId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns the first ct collection in the ordered set where companyId = ? and status = ?.
|
CTCollection |
findByC_S_Last(long companyId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns the last ct collection in the ordered set where companyId = ? and status = ?.
|
CTCollection[] |
findByC_S_PrevAndNext(long ctCollectionId,
long companyId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns the ct collections before and after the current ct collection in the ordered set where companyId = ? and status = ?.
|
java.util.List<CTCollection> |
findByC_S(long companyId,
int status)
Returns all the ct collections where companyId = ? and status = ?.
|
java.util.List<CTCollection> |
findByC_S(long companyId,
int[] statuses)
Returns all the ct collections where companyId = ? and status = any ?.
|
java.util.List<CTCollection> |
findByC_S(long companyId,
int[] statuses,
int start,
int end)
Returns a range of all the ct collections where companyId = ? and status = any ?.
|
java.util.List<CTCollection> |
findByC_S(long companyId,
int[] statuses,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns an ordered range of all the ct collections where companyId = ? and status = any ?.
|
java.util.List<CTCollection> |
findByC_S(long companyId,
int[] statuses,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the ct collections where companyId = ? and status = ?, optionally using the finder cache.
|
java.util.List<CTCollection> |
findByC_S(long companyId,
int status,
int start,
int end)
Returns a range of all the ct collections where companyId = ? and status = ?.
|
java.util.List<CTCollection> |
findByC_S(long companyId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns an ordered range of all the ct collections where companyId = ? and status = ?.
|
java.util.List<CTCollection> |
findByC_S(long companyId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the ct collections where companyId = ? and status = ?.
|
CTCollection |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns the first ct collection in the ordered set where companyId = ?.
|
CTCollection |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns the last ct collection in the ordered set where companyId = ?.
|
CTCollection[] |
findByCompanyId_PrevAndNext(long ctCollectionId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns the ct collections before and after the current ct collection in the ordered set where companyId = ?.
|
java.util.List<CTCollection> |
findByCompanyId(long companyId)
Returns all the ct collections where companyId = ?.
|
java.util.List<CTCollection> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the ct collections where companyId = ?.
|
java.util.List<CTCollection> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns an ordered range of all the ct collections where companyId = ?.
|
java.util.List<CTCollection> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the ct collections where companyId = ?.
|
CTCollection |
findByPrimaryKey(long ctCollectionId)
Returns the ct collection with the primary key or throws a
NoSuchCollectionException if it could not be found. |
CTCollection |
findBySchemaVersionId_First(long schemaVersionId,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns the first ct collection in the ordered set where schemaVersionId = ?.
|
CTCollection |
findBySchemaVersionId_Last(long schemaVersionId,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns the last ct collection in the ordered set where schemaVersionId = ?.
|
CTCollection[] |
findBySchemaVersionId_PrevAndNext(long ctCollectionId,
long schemaVersionId,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns the ct collections before and after the current ct collection in the ordered set where schemaVersionId = ?.
|
java.util.List<CTCollection> |
findBySchemaVersionId(long schemaVersionId)
Returns all the ct collections where schemaVersionId = ?.
|
java.util.List<CTCollection> |
findBySchemaVersionId(long schemaVersionId,
int start,
int end)
Returns a range of all the ct collections where schemaVersionId = ?.
|
java.util.List<CTCollection> |
findBySchemaVersionId(long schemaVersionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
Returns an ordered range of all the ct collections where schemaVersionId = ?.
|
java.util.List<CTCollection> |
findBySchemaVersionId(long schemaVersionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the ct collections where schemaVersionId = ?.
|
CTCollection |
remove(long ctCollectionId)
Removes the ct collection with the primary key from the database.
|
void |
removeAll()
Removes all the ct collections from the database.
|
void |
removeByC_S(long companyId,
int status)
Removes all the ct collections where companyId = ? and status = ? from the database.
|
void |
removeByCompanyId(long companyId)
Removes all the ct collections where companyId = ? from the database.
|
void |
removeBySchemaVersionId(long schemaVersionId)
Removes all the ct collections where schemaVersionId = ? from the database.
|
CTCollection |
updateImpl(CTCollection ctCollection) |
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<CTCollection> findByCompanyId(long companyId)
companyId
- the company IDjava.util.List<CTCollection> 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 CTCollectionModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of ct collectionsend
- the upper bound of the range of ct collections (not inclusive)java.util.List<CTCollection> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> 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 CTCollectionModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of ct collectionsend
- the upper bound of the range of ct collections (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CTCollection> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> 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 CTCollectionModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of ct collectionsend
- the upper bound of the range of ct collections (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCTCollection findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCollectionException
- if a matching ct collection could not be foundCTCollection fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct collection could not be foundCTCollection findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCollectionException
- if a matching ct collection could not be foundCTCollection fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct collection could not be foundCTCollection[] findByCompanyId_PrevAndNext(long ctCollectionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
ctCollectionId
- the primary key of the current ct collectioncompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCollectionException
- if a ct collection with the primary key could not be foundjava.util.List<CTCollection> filterFindByCompanyId(long companyId)
companyId
- the company IDjava.util.List<CTCollection> 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 CTCollectionModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of ct collectionsend
- the upper bound of the range of ct collections (not inclusive)java.util.List<CTCollection> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> 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 CTCollectionModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of ct collectionsend
- the upper bound of the range of ct collections (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)CTCollection[] filterFindByCompanyId_PrevAndNext(long ctCollectionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
ctCollectionId
- the primary key of the current ct collectioncompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCollectionException
- if a ct collection 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 IDjava.util.List<CTCollection> findBySchemaVersionId(long schemaVersionId)
schemaVersionId
- the schema version IDjava.util.List<CTCollection> findBySchemaVersionId(long schemaVersionId, 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 CTCollectionModelImpl
.
schemaVersionId
- the schema version IDstart
- the lower bound of the range of ct collectionsend
- the upper bound of the range of ct collections (not inclusive)java.util.List<CTCollection> findBySchemaVersionId(long schemaVersionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> 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 CTCollectionModelImpl
.
schemaVersionId
- the schema version IDstart
- the lower bound of the range of ct collectionsend
- the upper bound of the range of ct collections (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CTCollection> findBySchemaVersionId(long schemaVersionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> 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 CTCollectionModelImpl
.
schemaVersionId
- the schema version IDstart
- the lower bound of the range of ct collectionsend
- the upper bound of the range of ct collections (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCTCollection findBySchemaVersionId_First(long schemaVersionId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
schemaVersionId
- the schema version IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCollectionException
- if a matching ct collection could not be foundCTCollection fetchBySchemaVersionId_First(long schemaVersionId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
schemaVersionId
- the schema version IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct collection could not be foundCTCollection findBySchemaVersionId_Last(long schemaVersionId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
schemaVersionId
- the schema version IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCollectionException
- if a matching ct collection could not be foundCTCollection fetchBySchemaVersionId_Last(long schemaVersionId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
schemaVersionId
- the schema version IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct collection could not be foundCTCollection[] findBySchemaVersionId_PrevAndNext(long ctCollectionId, long schemaVersionId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
ctCollectionId
- the primary key of the current ct collectionschemaVersionId
- the schema version IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCollectionException
- if a ct collection with the primary key could not be foundjava.util.List<CTCollection> filterFindBySchemaVersionId(long schemaVersionId)
schemaVersionId
- the schema version IDjava.util.List<CTCollection> filterFindBySchemaVersionId(long schemaVersionId, 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 CTCollectionModelImpl
.
schemaVersionId
- the schema version IDstart
- the lower bound of the range of ct collectionsend
- the upper bound of the range of ct collections (not inclusive)java.util.List<CTCollection> filterFindBySchemaVersionId(long schemaVersionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> 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 CTCollectionModelImpl
.
schemaVersionId
- the schema version IDstart
- the lower bound of the range of ct collectionsend
- the upper bound of the range of ct collections (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)CTCollection[] filterFindBySchemaVersionId_PrevAndNext(long ctCollectionId, long schemaVersionId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
ctCollectionId
- the primary key of the current ct collectionschemaVersionId
- the schema version IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCollectionException
- if a ct collection with the primary key could not be foundvoid removeBySchemaVersionId(long schemaVersionId)
schemaVersionId
- the schema version IDint countBySchemaVersionId(long schemaVersionId)
schemaVersionId
- the schema version IDint filterCountBySchemaVersionId(long schemaVersionId)
schemaVersionId
- the schema version IDjava.util.List<CTCollection> findByC_S(long companyId, int status)
companyId
- the company IDstatus
- the statusjava.util.List<CTCollection> findByC_S(long companyId, int status, 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 CTCollectionModelImpl
.
companyId
- the company IDstatus
- the statusstart
- the lower bound of the range of ct collectionsend
- the upper bound of the range of ct collections (not inclusive)java.util.List<CTCollection> findByC_S(long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> 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 CTCollectionModelImpl
.
companyId
- the company IDstatus
- the statusstart
- the lower bound of the range of ct collectionsend
- the upper bound of the range of ct collections (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CTCollection> findByC_S(long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> 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 CTCollectionModelImpl
.
companyId
- the company IDstatus
- the statusstart
- the lower bound of the range of ct collectionsend
- the upper bound of the range of ct collections (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCTCollection findByC_S_First(long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
companyId
- the company IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCollectionException
- if a matching ct collection could not be foundCTCollection fetchByC_S_First(long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
companyId
- the company IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct collection could not be foundCTCollection findByC_S_Last(long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
companyId
- the company IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCollectionException
- if a matching ct collection could not be foundCTCollection fetchByC_S_Last(long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
companyId
- the company IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct collection could not be foundCTCollection[] findByC_S_PrevAndNext(long ctCollectionId, long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
ctCollectionId
- the primary key of the current ct collectioncompanyId
- the company IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCollectionException
- if a ct collection with the primary key could not be foundjava.util.List<CTCollection> filterFindByC_S(long companyId, int status)
companyId
- the company IDstatus
- the statusjava.util.List<CTCollection> filterFindByC_S(long companyId, int status, 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 CTCollectionModelImpl
.
companyId
- the company IDstatus
- the statusstart
- the lower bound of the range of ct collectionsend
- the upper bound of the range of ct collections (not inclusive)java.util.List<CTCollection> filterFindByC_S(long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> 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 CTCollectionModelImpl
.
companyId
- the company IDstatus
- the statusstart
- the lower bound of the range of ct collectionsend
- the upper bound of the range of ct collections (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)CTCollection[] filterFindByC_S_PrevAndNext(long ctCollectionId, long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
ctCollectionId
- the primary key of the current ct collectioncompanyId
- the company IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCollectionException
- if a ct collection with the primary key could not be foundjava.util.List<CTCollection> filterFindByC_S(long companyId, int[] statuses)
companyId
- the company IDstatuses
- the statusesjava.util.List<CTCollection> filterFindByC_S(long companyId, int[] statuses, 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 CTCollectionModelImpl
.
companyId
- the company IDstatuses
- the statusesstart
- the lower bound of the range of ct collectionsend
- the upper bound of the range of ct collections (not inclusive)java.util.List<CTCollection> filterFindByC_S(long companyId, int[] statuses, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> 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 CTCollectionModelImpl
.
companyId
- the company IDstatuses
- the statusesstart
- the lower bound of the range of ct collectionsend
- the upper bound of the range of ct collections (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CTCollection> findByC_S(long companyId, int[] statuses)
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 CTCollectionModelImpl
.
companyId
- the company IDstatuses
- the statusesjava.util.List<CTCollection> findByC_S(long companyId, int[] statuses, 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 CTCollectionModelImpl
.
companyId
- the company IDstatuses
- the statusesstart
- the lower bound of the range of ct collectionsend
- the upper bound of the range of ct collections (not inclusive)java.util.List<CTCollection> findByC_S(long companyId, int[] statuses, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> 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 CTCollectionModelImpl
.
companyId
- the company IDstatuses
- the statusesstart
- the lower bound of the range of ct collectionsend
- the upper bound of the range of ct collections (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CTCollection> findByC_S(long companyId, int[] statuses, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> 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 CTCollectionModelImpl
.
companyId
- the company IDstatus
- the statusstart
- the lower bound of the range of ct collectionsend
- the upper bound of the range of ct collections (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachevoid removeByC_S(long companyId, int status)
companyId
- the company IDstatus
- the statusint countByC_S(long companyId, int status)
companyId
- the company IDstatus
- the statusint countByC_S(long companyId, int[] statuses)
companyId
- the company IDstatuses
- the statusesint filterCountByC_S(long companyId, int status)
companyId
- the company IDstatus
- the statusint filterCountByC_S(long companyId, int[] statuses)
companyId
- the company IDstatuses
- the statusesvoid cacheResult(CTCollection ctCollection)
ctCollection
- the ct collectionvoid cacheResult(java.util.List<CTCollection> ctCollections)
ctCollections
- the ct collectionsCTCollection create(long ctCollectionId)
ctCollectionId
- the primary key for the new ct collectionCTCollection remove(long ctCollectionId) throws NoSuchCollectionException
ctCollectionId
- the primary key of the ct collectionNoSuchCollectionException
- if a ct collection with the primary key could not be foundCTCollection updateImpl(CTCollection ctCollection)
CTCollection findByPrimaryKey(long ctCollectionId) throws NoSuchCollectionException
NoSuchCollectionException
if it could not be found.ctCollectionId
- the primary key of the ct collectionNoSuchCollectionException
- if a ct collection with the primary key could not be foundCTCollection fetchByPrimaryKey(long ctCollectionId)
null
if it could not be found.ctCollectionId
- the primary key of the ct collectionnull
if a ct collection with the primary key could not be foundjava.util.List<CTCollection> findAll()
java.util.List<CTCollection> 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 CTCollectionModelImpl
.
start
- the lower bound of the range of ct collectionsend
- the upper bound of the range of ct collections (not inclusive)java.util.List<CTCollection> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> 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 CTCollectionModelImpl
.
start
- the lower bound of the range of ct collectionsend
- the upper bound of the range of ct collections (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CTCollection> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> 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 CTCollectionModelImpl
.
start
- the lower bound of the range of ct collectionsend
- the upper bound of the range of ct collections (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()