Interface CTCollectionPersistence

All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CTCollection>

@ProviderType public interface CTCollectionPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CTCollection>
The persistence interface for the ct collection service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cacheResult(CTCollection ctCollection)
    Caches the ct collection in the entity cache if it is enabled.
    void
    cacheResult(List<CTCollection> ctCollections)
    Caches the ct collections in the entity cache if it is enabled.
    int
    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
    countByERC_C(String externalReferenceCode, long companyId)
    Returns the number of ct collections where externalReferenceCode = ? and companyId = ?.
    int
    countBySchemaVersionId(long schemaVersionId)
    Returns the number of ct collections where schemaVersionId = ?.
    int
    Returns the number of ct collections where uuid = ?.
    int
    countByUuid_C(String uuid, long companyId)
    Returns the number of ct collections where uuid = ? and companyId = ?.
    create(long ctCollectionId)
    Creates a new ct collection with the primary key.
    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 = ?.
    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 = ?.
    fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
    Returns the first ct collection in the ordered set where companyId = ?.
    fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
    Returns the last ct collection in the ordered set where companyId = ?.
    fetchByERC_C(String externalReferenceCode, long companyId)
    Returns the ct collection where externalReferenceCode = ? and companyId = ? or returns null if it could not be found.
    fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache)
    Returns the ct collection where externalReferenceCode = ? and companyId = ? or returns null if it could not be found, optionally using the finder cache.
    fetchByPrimaryKey(long ctCollectionId)
    Returns the ct collection with the primary key or returns null if it could not be found.
    fetchBySchemaVersionId_First(long schemaVersionId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
    Returns the first ct collection in the ordered set where schemaVersionId = ?.
    fetchBySchemaVersionId_Last(long schemaVersionId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
    Returns the last ct collection in the ordered set where schemaVersionId = ?.
    fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
    Returns the first ct collection in the ordered set where uuid = ? and companyId = ?.
    fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
    Returns the last ct collection in the ordered set where uuid = ? and companyId = ?.
    fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
    Returns the first ct collection in the ordered set where uuid = ?.
    fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
    Returns the last ct collection in the ordered set where uuid = ?.
    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 = ?.
    int
    Returns the number of ct collections that the user has permission to view where uuid = ?.
    int
    filterCountByUuid_C(String uuid, long companyId)
    Returns the number of ct collections that the user has permission to view where uuid = ? and companyId = ?.
    filterFindByC_S(long companyId, int status)
    Returns all the ct collections that the user has permission to view where companyId = ? and status = ?.
    filterFindByC_S(long companyId, int[] statuses)
    Returns all the ct collections that the user has permission to view where companyId = ? and status = any ?.
    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 ?.
    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 ?.
    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 = ?.
    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 = ?.
    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 = ?.
    filterFindByCompanyId(long companyId)
    Returns all the ct collections that the user has permission to view where companyId = ?.
    filterFindByCompanyId(long companyId, int start, int end)
    Returns a range of all the ct collections that the user has permission to view where companyId = ?.
    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 = ?.
    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 = ?.
    filterFindBySchemaVersionId(long schemaVersionId)
    Returns all the ct collections that the user has permission to view where schemaVersionId = ?.
    filterFindBySchemaVersionId(long schemaVersionId, int start, int end)
    Returns a range of all the ct collections that the user has permission to view where schemaVersionId = ?.
    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 = ?.
    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 = ?.
    Returns all the ct collections that the user has permission to view where uuid = ?.
    filterFindByUuid(String uuid, int start, int end)
    Returns a range of all the ct collections that the user has permission to view where uuid = ?.
    filterFindByUuid(String uuid, 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 uuid = ?.
    filterFindByUuid_C(String uuid, long companyId)
    Returns all the ct collections that the user has permission to view where uuid = ? and companyId = ?.
    filterFindByUuid_C(String uuid, long companyId, int start, int end)
    Returns a range of all the ct collections that the user has permission to view where uuid = ? and companyId = ?.
    filterFindByUuid_C(String uuid, 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 uuid = ? and companyId = ?.
    filterFindByUuid_C_PrevAndNext(long ctCollectionId, String uuid, 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 uuid = ? and companyId = ?.
    filterFindByUuid_PrevAndNext(long ctCollectionId, String uuid, 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 uuid = ?.
    Returns all the ct collections.
    findAll(int start, int end)
    Returns a range of all the ct collections.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
    Returns an ordered range of all the ct collections.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the ct collections.
    findByC_S(long companyId, int status)
    Returns all the ct collections where companyId = ? and status = ?.
    findByC_S(long companyId, int[] statuses)
    Returns all the ct collections where companyId = ? and status = any ?.
    findByC_S(long companyId, int[] statuses, int start, int end)
    Returns a range of all the ct collections where companyId = ? and status = any ?.
    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 ?.
    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.
    findByC_S(long companyId, int status, int start, int end)
    Returns a range of all the ct collections where companyId = ? and status = ?.
    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 = ?.
    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 = ?.
    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 = ?.
    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 = ?.
    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 = ?.
    findByCompanyId(long companyId)
    Returns all the ct collections where companyId = ?.
    findByCompanyId(long companyId, int start, int end)
    Returns a range of all the ct collections where companyId = ?.
    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 = ?.
    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 = ?.
    findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
    Returns the first ct collection in the ordered set where companyId = ?.
    findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
    Returns the last ct collection in the ordered set where companyId = ?.
    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 = ?.
    findByERC_C(String externalReferenceCode, long companyId)
    Returns the ct collection where externalReferenceCode = ? and companyId = ? or throws a NoSuchCollectionException if it could not be found.
    findByPrimaryKey(long ctCollectionId)
    Returns the ct collection with the primary key or throws a NoSuchCollectionException if it could not be found.
    findBySchemaVersionId(long schemaVersionId)
    Returns all the ct collections where schemaVersionId = ?.
    findBySchemaVersionId(long schemaVersionId, int start, int end)
    Returns a range of all the ct collections where schemaVersionId = ?.
    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 = ?.
    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 = ?.
    findBySchemaVersionId_First(long schemaVersionId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
    Returns the first ct collection in the ordered set where schemaVersionId = ?.
    findBySchemaVersionId_Last(long schemaVersionId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
    Returns the last ct collection in the ordered set where schemaVersionId = ?.
    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 = ?.
    Returns all the ct collections where uuid = ?.
    findByUuid(String uuid, int start, int end)
    Returns a range of all the ct collections where uuid = ?.
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
    Returns an ordered range of all the ct collections where uuid = ?.
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the ct collections where uuid = ?.
    findByUuid_C(String uuid, long companyId)
    Returns all the ct collections where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end)
    Returns a range of all the ct collections where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
    Returns an ordered range of all the ct collections where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, 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 uuid = ? and companyId = ?.
    findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
    Returns the first ct collection in the ordered set where uuid = ? and companyId = ?.
    findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
    Returns the last ct collection in the ordered set where uuid = ? and companyId = ?.
    findByUuid_C_PrevAndNext(long ctCollectionId, String uuid, 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 uuid = ? and companyId = ?.
    findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
    Returns the first ct collection in the ordered set where uuid = ?.
    findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
    Returns the last ct collection in the ordered set where uuid = ?.
    findByUuid_PrevAndNext(long ctCollectionId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
    Returns the ct collections before and after the current ct collection in the ordered set where uuid = ?.
    remove(long ctCollectionId)
    Removes the ct collection with the primary key from the database.
    void
    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.
    removeByERC_C(String externalReferenceCode, long companyId)
    Removes the ct collection where externalReferenceCode = ? and companyId = ? from the database.
    void
    removeBySchemaVersionId(long schemaVersionId)
    Removes all the ct collections where schemaVersionId = ? from the database.
    void
    Removes all the ct collections where uuid = ? from the database.
    void
    removeByUuid_C(String uuid, long companyId)
    Removes all the ct collections where uuid = ? and companyId = ? from the database.
    updateImpl(CTCollection ctCollection)
     

    Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence

    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, removeByFunction, setDataSource, unregisterListener, update, update
  • Method Details

    • findByUuid

      List<CTCollection> findByUuid(String uuid)
      Returns all the ct collections where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching ct collections
    • findByUuid

      List<CTCollection> findByUuid(String uuid, int start, int end)
      Returns a range of all the ct collections where uuid = ?.

      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.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of ct collections
      end - the upper bound of the range of ct collections (not inclusive)
      Returns:
      the range of matching ct collections
    • findByUuid

      List<CTCollection> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
      Returns an ordered range of all the ct collections where uuid = ?.

      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.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of ct collections
      end - the upper bound of the range of ct collections (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching ct collections
    • findByUuid

      List<CTCollection> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the ct collections where uuid = ?.

      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.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of ct collections
      end - 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 cache
      Returns:
      the ordered range of matching ct collections
    • findByUuid_First

      CTCollection findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
      Returns the first ct collection in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ct collection
      Throws:
      NoSuchCollectionException - if a matching ct collection could not be found
    • fetchByUuid_First

      CTCollection fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
      Returns the first ct collection in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ct collection, or null if a matching ct collection could not be found
    • findByUuid_Last

      CTCollection findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
      Returns the last ct collection in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ct collection
      Throws:
      NoSuchCollectionException - if a matching ct collection could not be found
    • fetchByUuid_Last

      CTCollection fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
      Returns the last ct collection in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ct collection, or null if a matching ct collection could not be found
    • findByUuid_PrevAndNext

      CTCollection[] findByUuid_PrevAndNext(long ctCollectionId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
      Returns the ct collections before and after the current ct collection in the ordered set where uuid = ?.
      Parameters:
      ctCollectionId - the primary key of the current ct collection
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next ct collection
      Throws:
      NoSuchCollectionException - if a ct collection with the primary key could not be found
    • filterFindByUuid

      List<CTCollection> filterFindByUuid(String uuid)
      Returns all the ct collections that the user has permission to view where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching ct collections that the user has permission to view
    • filterFindByUuid

      List<CTCollection> filterFindByUuid(String uuid, int start, int end)
      Returns a range of all the ct collections that the user has permission to view where uuid = ?.

      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.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of ct collections
      end - the upper bound of the range of ct collections (not inclusive)
      Returns:
      the range of matching ct collections that the user has permission to view
    • filterFindByUuid

      List<CTCollection> filterFindByUuid(String uuid, 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 uuid = ?.

      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.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of ct collections
      end - the upper bound of the range of ct collections (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching ct collections that the user has permission to view
    • filterFindByUuid_PrevAndNext

      CTCollection[] filterFindByUuid_PrevAndNext(long ctCollectionId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
      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 uuid = ?.
      Parameters:
      ctCollectionId - the primary key of the current ct collection
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next ct collection
      Throws:
      NoSuchCollectionException - if a ct collection with the primary key could not be found
    • removeByUuid

      void removeByUuid(String uuid)
      Removes all the ct collections where uuid = ? from the database.
      Parameters:
      uuid - the uuid
    • countByUuid

      int countByUuid(String uuid)
      Returns the number of ct collections where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching ct collections
    • filterCountByUuid

      int filterCountByUuid(String uuid)
      Returns the number of ct collections that the user has permission to view where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching ct collections that the user has permission to view
    • findByUuid_C

      List<CTCollection> findByUuid_C(String uuid, long companyId)
      Returns all the ct collections where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching ct collections
    • findByUuid_C

      List<CTCollection> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the ct collections where uuid = ? and companyId = ?.

      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.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of ct collections
      end - the upper bound of the range of ct collections (not inclusive)
      Returns:
      the range of matching ct collections
    • findByUuid_C

      List<CTCollection> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
      Returns an ordered range of all the ct collections where uuid = ? and companyId = ?.

      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.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of ct collections
      end - the upper bound of the range of ct collections (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching ct collections
    • findByUuid_C

      List<CTCollection> findByUuid_C(String uuid, 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 uuid = ? and companyId = ?.

      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.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of ct collections
      end - 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 cache
      Returns:
      the ordered range of matching ct collections
    • findByUuid_C_First

      CTCollection findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
      Returns the first ct collection in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ct collection
      Throws:
      NoSuchCollectionException - if a matching ct collection could not be found
    • fetchByUuid_C_First

      CTCollection fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
      Returns the first ct collection in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ct collection, or null if a matching ct collection could not be found
    • findByUuid_C_Last

      CTCollection findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
      Returns the last ct collection in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ct collection
      Throws:
      NoSuchCollectionException - if a matching ct collection could not be found
    • fetchByUuid_C_Last

      CTCollection fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
      Returns the last ct collection in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ct collection, or null if a matching ct collection could not be found
    • findByUuid_C_PrevAndNext

      CTCollection[] findByUuid_C_PrevAndNext(long ctCollectionId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
      Returns the ct collections before and after the current ct collection in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      ctCollectionId - the primary key of the current ct collection
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next ct collection
      Throws:
      NoSuchCollectionException - if a ct collection with the primary key could not be found
    • filterFindByUuid_C

      List<CTCollection> filterFindByUuid_C(String uuid, long companyId)
      Returns all the ct collections that the user has permission to view where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching ct collections that the user has permission to view
    • filterFindByUuid_C

      List<CTCollection> filterFindByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the ct collections that the user has permission to view where uuid = ? and companyId = ?.

      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.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of ct collections
      end - the upper bound of the range of ct collections (not inclusive)
      Returns:
      the range of matching ct collections that the user has permission to view
    • filterFindByUuid_C

      List<CTCollection> filterFindByUuid_C(String uuid, 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 uuid = ? and companyId = ?.

      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.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of ct collections
      end - the upper bound of the range of ct collections (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching ct collections that the user has permission to view
    • filterFindByUuid_C_PrevAndNext

      CTCollection[] filterFindByUuid_C_PrevAndNext(long ctCollectionId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
      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 uuid = ? and companyId = ?.
      Parameters:
      ctCollectionId - the primary key of the current ct collection
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next ct collection
      Throws:
      NoSuchCollectionException - if a ct collection with the primary key could not be found
    • removeByUuid_C

      void removeByUuid_C(String uuid, long companyId)
      Removes all the ct collections where uuid = ? and companyId = ? from the database.
      Parameters:
      uuid - the uuid
      companyId - the company ID
    • countByUuid_C

      int countByUuid_C(String uuid, long companyId)
      Returns the number of ct collections where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching ct collections
    • filterCountByUuid_C

      int filterCountByUuid_C(String uuid, long companyId)
      Returns the number of ct collections that the user has permission to view where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching ct collections that the user has permission to view
    • findByCompanyId

      List<CTCollection> findByCompanyId(long companyId)
      Returns all the ct collections where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching ct collections
    • findByCompanyId

      List<CTCollection> findByCompanyId(long companyId, int start, int end)
      Returns a range of all the ct collections where companyId = ?.

      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.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of ct collections
      end - the upper bound of the range of ct collections (not inclusive)
      Returns:
      the range of matching ct collections
    • findByCompanyId

      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 = ?.

      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.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of ct collections
      end - the upper bound of the range of ct collections (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching ct collections
    • findByCompanyId

      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 = ?.

      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.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of ct collections
      end - 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 cache
      Returns:
      the ordered range of matching ct collections
    • findByCompanyId_First

      CTCollection findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
      Returns the first ct collection in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ct collection
      Throws:
      NoSuchCollectionException - if a matching ct collection could not be found
    • fetchByCompanyId_First

      CTCollection fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
      Returns the first ct collection in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ct collection, or null if a matching ct collection could not be found
    • findByCompanyId_Last

      CTCollection findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
      Returns the last ct collection in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ct collection
      Throws:
      NoSuchCollectionException - if a matching ct collection could not be found
    • fetchByCompanyId_Last

      CTCollection fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
      Returns the last ct collection in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ct collection, or null if a matching ct collection could not be found
    • findByCompanyId_PrevAndNext

      CTCollection[] findByCompanyId_PrevAndNext(long ctCollectionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
      Returns the ct collections before and after the current ct collection in the ordered set where companyId = ?.
      Parameters:
      ctCollectionId - the primary key of the current ct collection
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next ct collection
      Throws:
      NoSuchCollectionException - if a ct collection with the primary key could not be found
    • filterFindByCompanyId

      List<CTCollection> filterFindByCompanyId(long companyId)
      Returns all the ct collections that the user has permission to view where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching ct collections that the user has permission to view
    • filterFindByCompanyId

      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 = ?.

      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.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of ct collections
      end - the upper bound of the range of ct collections (not inclusive)
      Returns:
      the range of matching ct collections that the user has permission to view
    • filterFindByCompanyId

      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 = ?.

      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.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of ct collections
      end - the upper bound of the range of ct collections (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching ct collections that the user has permission to view
    • filterFindByCompanyId_PrevAndNext

      CTCollection[] filterFindByCompanyId_PrevAndNext(long ctCollectionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
      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 = ?.
      Parameters:
      ctCollectionId - the primary key of the current ct collection
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next ct collection
      Throws:
      NoSuchCollectionException - if a ct collection with the primary key could not be found
    • removeByCompanyId

      void removeByCompanyId(long companyId)
      Removes all the ct collections where companyId = ? from the database.
      Parameters:
      companyId - the company ID
    • countByCompanyId

      int countByCompanyId(long companyId)
      Returns the number of ct collections where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching ct collections
    • filterCountByCompanyId

      int filterCountByCompanyId(long companyId)
      Returns the number of ct collections that the user has permission to view where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching ct collections that the user has permission to view
    • findBySchemaVersionId

      List<CTCollection> findBySchemaVersionId(long schemaVersionId)
      Returns all the ct collections where schemaVersionId = ?.
      Parameters:
      schemaVersionId - the schema version ID
      Returns:
      the matching ct collections
    • findBySchemaVersionId

      List<CTCollection> findBySchemaVersionId(long schemaVersionId, int start, int end)
      Returns a range of all the ct collections where schemaVersionId = ?.

      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.

      Parameters:
      schemaVersionId - the schema version ID
      start - the lower bound of the range of ct collections
      end - the upper bound of the range of ct collections (not inclusive)
      Returns:
      the range of matching ct collections
    • findBySchemaVersionId

      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 = ?.

      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.

      Parameters:
      schemaVersionId - the schema version ID
      start - the lower bound of the range of ct collections
      end - the upper bound of the range of ct collections (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching ct collections
    • findBySchemaVersionId

      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 = ?.

      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.

      Parameters:
      schemaVersionId - the schema version ID
      start - the lower bound of the range of ct collections
      end - 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 cache
      Returns:
      the ordered range of matching ct collections
    • findBySchemaVersionId_First

      CTCollection findBySchemaVersionId_First(long schemaVersionId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
      Returns the first ct collection in the ordered set where schemaVersionId = ?.
      Parameters:
      schemaVersionId - the schema version ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ct collection
      Throws:
      NoSuchCollectionException - if a matching ct collection could not be found
    • fetchBySchemaVersionId_First

      CTCollection fetchBySchemaVersionId_First(long schemaVersionId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
      Returns the first ct collection in the ordered set where schemaVersionId = ?.
      Parameters:
      schemaVersionId - the schema version ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ct collection, or null if a matching ct collection could not be found
    • findBySchemaVersionId_Last

      CTCollection findBySchemaVersionId_Last(long schemaVersionId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
      Returns the last ct collection in the ordered set where schemaVersionId = ?.
      Parameters:
      schemaVersionId - the schema version ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ct collection
      Throws:
      NoSuchCollectionException - if a matching ct collection could not be found
    • fetchBySchemaVersionId_Last

      CTCollection fetchBySchemaVersionId_Last(long schemaVersionId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
      Returns the last ct collection in the ordered set where schemaVersionId = ?.
      Parameters:
      schemaVersionId - the schema version ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ct collection, or null if a matching ct collection could not be found
    • findBySchemaVersionId_PrevAndNext

      CTCollection[] findBySchemaVersionId_PrevAndNext(long ctCollectionId, long schemaVersionId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
      Returns the ct collections before and after the current ct collection in the ordered set where schemaVersionId = ?.
      Parameters:
      ctCollectionId - the primary key of the current ct collection
      schemaVersionId - the schema version ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next ct collection
      Throws:
      NoSuchCollectionException - if a ct collection with the primary key could not be found
    • filterFindBySchemaVersionId

      List<CTCollection> filterFindBySchemaVersionId(long schemaVersionId)
      Returns all the ct collections that the user has permission to view where schemaVersionId = ?.
      Parameters:
      schemaVersionId - the schema version ID
      Returns:
      the matching ct collections that the user has permission to view
    • filterFindBySchemaVersionId

      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 = ?.

      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.

      Parameters:
      schemaVersionId - the schema version ID
      start - the lower bound of the range of ct collections
      end - the upper bound of the range of ct collections (not inclusive)
      Returns:
      the range of matching ct collections that the user has permission to view
    • filterFindBySchemaVersionId

      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 = ?.

      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.

      Parameters:
      schemaVersionId - the schema version ID
      start - the lower bound of the range of ct collections
      end - the upper bound of the range of ct collections (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching ct collections that the user has permission to view
    • filterFindBySchemaVersionId_PrevAndNext

      CTCollection[] filterFindBySchemaVersionId_PrevAndNext(long ctCollectionId, long schemaVersionId, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
      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 = ?.
      Parameters:
      ctCollectionId - the primary key of the current ct collection
      schemaVersionId - the schema version ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next ct collection
      Throws:
      NoSuchCollectionException - if a ct collection with the primary key could not be found
    • removeBySchemaVersionId

      void removeBySchemaVersionId(long schemaVersionId)
      Removes all the ct collections where schemaVersionId = ? from the database.
      Parameters:
      schemaVersionId - the schema version ID
    • countBySchemaVersionId

      int countBySchemaVersionId(long schemaVersionId)
      Returns the number of ct collections where schemaVersionId = ?.
      Parameters:
      schemaVersionId - the schema version ID
      Returns:
      the number of matching ct collections
    • filterCountBySchemaVersionId

      int filterCountBySchemaVersionId(long schemaVersionId)
      Returns the number of ct collections that the user has permission to view where schemaVersionId = ?.
      Parameters:
      schemaVersionId - the schema version ID
      Returns:
      the number of matching ct collections that the user has permission to view
    • findByC_S

      List<CTCollection> findByC_S(long companyId, int status)
      Returns all the ct collections where companyId = ? and status = ?.
      Parameters:
      companyId - the company ID
      status - the status
      Returns:
      the matching ct collections
    • findByC_S

      List<CTCollection> findByC_S(long companyId, int status, int start, int end)
      Returns a range of all the ct collections where companyId = ? and status = ?.

      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.

      Parameters:
      companyId - the company ID
      status - the status
      start - the lower bound of the range of ct collections
      end - the upper bound of the range of ct collections (not inclusive)
      Returns:
      the range of matching ct collections
    • findByC_S

      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 = ?.

      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.

      Parameters:
      companyId - the company ID
      status - the status
      start - the lower bound of the range of ct collections
      end - the upper bound of the range of ct collections (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching ct collections
    • findByC_S

      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 = ?.

      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.

      Parameters:
      companyId - the company ID
      status - the status
      start - the lower bound of the range of ct collections
      end - 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 cache
      Returns:
      the ordered range of matching ct collections
    • findByC_S_First

      CTCollection findByC_S_First(long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
      Returns the first ct collection in the ordered set where companyId = ? and status = ?.
      Parameters:
      companyId - the company ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ct collection
      Throws:
      NoSuchCollectionException - if a matching ct collection could not be found
    • fetchByC_S_First

      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 = ?.
      Parameters:
      companyId - the company ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ct collection, or null if a matching ct collection could not be found
    • findByC_S_Last

      CTCollection findByC_S_Last(long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
      Returns the last ct collection in the ordered set where companyId = ? and status = ?.
      Parameters:
      companyId - the company ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ct collection
      Throws:
      NoSuchCollectionException - if a matching ct collection could not be found
    • fetchByC_S_Last

      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 = ?.
      Parameters:
      companyId - the company ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ct collection, or null if a matching ct collection could not be found
    • findByC_S_PrevAndNext

      CTCollection[] findByC_S_PrevAndNext(long ctCollectionId, long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
      Returns the ct collections before and after the current ct collection in the ordered set where companyId = ? and status = ?.
      Parameters:
      ctCollectionId - the primary key of the current ct collection
      companyId - the company ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next ct collection
      Throws:
      NoSuchCollectionException - if a ct collection with the primary key could not be found
    • filterFindByC_S

      List<CTCollection> filterFindByC_S(long companyId, int status)
      Returns all the ct collections that the user has permission to view where companyId = ? and status = ?.
      Parameters:
      companyId - the company ID
      status - the status
      Returns:
      the matching ct collections that the user has permission to view
    • filterFindByC_S

      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 = ?.

      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.

      Parameters:
      companyId - the company ID
      status - the status
      start - the lower bound of the range of ct collections
      end - the upper bound of the range of ct collections (not inclusive)
      Returns:
      the range of matching ct collections that the user has permission to view
    • filterFindByC_S

      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 = ?.

      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.

      Parameters:
      companyId - the company ID
      status - the status
      start - the lower bound of the range of ct collections
      end - the upper bound of the range of ct collections (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching ct collections that the user has permission to view
    • filterFindByC_S_PrevAndNext

      CTCollection[] filterFindByC_S_PrevAndNext(long ctCollectionId, long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator) throws NoSuchCollectionException
      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 = ?.
      Parameters:
      ctCollectionId - the primary key of the current ct collection
      companyId - the company ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next ct collection
      Throws:
      NoSuchCollectionException - if a ct collection with the primary key could not be found
    • filterFindByC_S

      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 ?.
      Parameters:
      companyId - the company ID
      statuses - the statuses
      Returns:
      the matching ct collections that the user has permission to view
    • filterFindByC_S

      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 ?.

      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.

      Parameters:
      companyId - the company ID
      statuses - the statuses
      start - the lower bound of the range of ct collections
      end - the upper bound of the range of ct collections (not inclusive)
      Returns:
      the range of matching ct collections that the user has permission to view
    • filterFindByC_S

      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 ?.

      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.

      Parameters:
      companyId - the company ID
      statuses - the statuses
      start - the lower bound of the range of ct collections
      end - the upper bound of the range of ct collections (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching ct collections that the user has permission to view
    • findByC_S

      List<CTCollection> findByC_S(long companyId, int[] statuses)
      Returns all the ct collections where companyId = ? and status = any ?.

      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.

      Parameters:
      companyId - the company ID
      statuses - the statuses
      Returns:
      the matching ct collections
    • findByC_S

      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 ?.

      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.

      Parameters:
      companyId - the company ID
      statuses - the statuses
      start - the lower bound of the range of ct collections
      end - the upper bound of the range of ct collections (not inclusive)
      Returns:
      the range of matching ct collections
    • findByC_S

      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 ?.

      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.

      Parameters:
      companyId - the company ID
      statuses - the statuses
      start - the lower bound of the range of ct collections
      end - the upper bound of the range of ct collections (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching ct collections
    • findByC_S

      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.

      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.

      Parameters:
      companyId - the company ID
      statuses - the statuses
      start - the lower bound of the range of ct collections
      end - 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 cache
      Returns:
      the ordered range of matching ct collections
    • removeByC_S

      void removeByC_S(long companyId, int status)
      Removes all the ct collections where companyId = ? and status = ? from the database.
      Parameters:
      companyId - the company ID
      status - the status
    • countByC_S

      int countByC_S(long companyId, int status)
      Returns the number of ct collections where companyId = ? and status = ?.
      Parameters:
      companyId - the company ID
      status - the status
      Returns:
      the number of matching ct collections
    • countByC_S

      int countByC_S(long companyId, int[] statuses)
      Returns the number of ct collections where companyId = ? and status = any ?.
      Parameters:
      companyId - the company ID
      statuses - the statuses
      Returns:
      the number of matching ct collections
    • filterCountByC_S

      int filterCountByC_S(long companyId, int status)
      Returns the number of ct collections that the user has permission to view where companyId = ? and status = ?.
      Parameters:
      companyId - the company ID
      status - the status
      Returns:
      the number of matching ct collections that the user has permission to view
    • filterCountByC_S

      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 ?.
      Parameters:
      companyId - the company ID
      statuses - the statuses
      Returns:
      the number of matching ct collections that the user has permission to view
    • findByERC_C

      CTCollection findByERC_C(String externalReferenceCode, long companyId) throws NoSuchCollectionException
      Returns the ct collection where externalReferenceCode = ? and companyId = ? or throws a NoSuchCollectionException if it could not be found.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the matching ct collection
      Throws:
      NoSuchCollectionException - if a matching ct collection could not be found
    • fetchByERC_C

      CTCollection fetchByERC_C(String externalReferenceCode, long companyId)
      Returns the ct collection where externalReferenceCode = ? and companyId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the matching ct collection, or null if a matching ct collection could not be found
    • fetchByERC_C

      CTCollection fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache)
      Returns the ct collection where externalReferenceCode = ? and companyId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching ct collection, or null if a matching ct collection could not be found
    • removeByERC_C

      CTCollection removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchCollectionException
      Removes the ct collection where externalReferenceCode = ? and companyId = ? from the database.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the ct collection that was removed
      Throws:
      NoSuchCollectionException
    • countByERC_C

      int countByERC_C(String externalReferenceCode, long companyId)
      Returns the number of ct collections where externalReferenceCode = ? and companyId = ?.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the number of matching ct collections
    • cacheResult

      void cacheResult(CTCollection ctCollection)
      Caches the ct collection in the entity cache if it is enabled.
      Parameters:
      ctCollection - the ct collection
    • cacheResult

      void cacheResult(List<CTCollection> ctCollections)
      Caches the ct collections in the entity cache if it is enabled.
      Parameters:
      ctCollections - the ct collections
    • create

      CTCollection create(long ctCollectionId)
      Creates a new ct collection with the primary key. Does not add the ct collection to the database.
      Parameters:
      ctCollectionId - the primary key for the new ct collection
      Returns:
      the new ct collection
    • remove

      CTCollection remove(long ctCollectionId) throws NoSuchCollectionException
      Removes the ct collection with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      ctCollectionId - the primary key of the ct collection
      Returns:
      the ct collection that was removed
      Throws:
      NoSuchCollectionException - if a ct collection with the primary key could not be found
    • updateImpl

      CTCollection updateImpl(CTCollection ctCollection)
    • findByPrimaryKey

      CTCollection findByPrimaryKey(long ctCollectionId) throws NoSuchCollectionException
      Returns the ct collection with the primary key or throws a NoSuchCollectionException if it could not be found.
      Parameters:
      ctCollectionId - the primary key of the ct collection
      Returns:
      the ct collection
      Throws:
      NoSuchCollectionException - if a ct collection with the primary key could not be found
    • fetchByPrimaryKey

      CTCollection fetchByPrimaryKey(long ctCollectionId)
      Returns the ct collection with the primary key or returns null if it could not be found.
      Parameters:
      ctCollectionId - the primary key of the ct collection
      Returns:
      the ct collection, or null if a ct collection with the primary key could not be found
    • findAll

      List<CTCollection> findAll()
      Returns all the ct collections.
      Returns:
      the ct collections
    • findAll

      List<CTCollection> findAll(int start, int end)
      Returns a range of all the ct collections.

      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.

      Parameters:
      start - the lower bound of the range of ct collections
      end - the upper bound of the range of ct collections (not inclusive)
      Returns:
      the range of ct collections
    • findAll

      List<CTCollection> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTCollection> orderByComparator)
      Returns an ordered range of all the ct collections.

      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.

      Parameters:
      start - the lower bound of the range of ct collections
      end - the upper bound of the range of ct collections (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of ct collections
    • findAll

      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.

      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.

      Parameters:
      start - the lower bound of the range of ct collections
      end - 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 cache
      Returns:
      the ordered range of ct collections
    • removeAll

      void removeAll()
      Removes all the ct collections from the database.
    • countAll

      int countAll()
      Returns the number of ct collections.
      Returns:
      the number of ct collections