All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.change.tracking.service.persistence.CTCollectionUtil Maven / Gradle / Ivy

There is a newer version: 24.3.0
Show newest version
/**
 * SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
 * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
 */

package com.liferay.change.tracking.service.persistence;

import com.liferay.change.tracking.model.CTCollection;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.service.ServiceContext;
import com.liferay.portal.kernel.util.OrderByComparator;

import java.io.Serializable;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * The persistence utility for the ct collection service. This utility wraps com.liferay.change.tracking.service.persistence.impl.CTCollectionPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
 *
 * 

* Caching information and settings can be found in portal.properties *

* * @author Brian Wing Shun Chan * @see CTCollectionPersistence * @generated */ public class CTCollectionUtil { /* * NOTE FOR DEVELOPERS: * * Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regenerate this class. */ /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#clearCache() */ public static void clearCache() { getPersistence().clearCache(); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#clearCache(com.liferay.portal.kernel.model.BaseModel) */ public static void clearCache(CTCollection ctCollection) { getPersistence().clearCache(ctCollection); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) */ public static long countWithDynamicQuery(DynamicQuery dynamicQuery) { return getPersistence().countWithDynamicQuery(dynamicQuery); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#fetchByPrimaryKeys(Set) */ public static Map fetchByPrimaryKeys( Set primaryKeys) { return getPersistence().fetchByPrimaryKeys(primaryKeys); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) */ public static List findWithDynamicQuery( DynamicQuery dynamicQuery) { return getPersistence().findWithDynamicQuery(dynamicQuery); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) */ public static List findWithDynamicQuery( DynamicQuery dynamicQuery, int start, int end) { return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) */ public static List findWithDynamicQuery( DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) { return getPersistence().findWithDynamicQuery( dynamicQuery, start, end, orderByComparator); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#update(com.liferay.portal.kernel.model.BaseModel) */ public static CTCollection update(CTCollection ctCollection) { return getPersistence().update(ctCollection); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#update(com.liferay.portal.kernel.model.BaseModel, ServiceContext) */ public static CTCollection update( CTCollection ctCollection, ServiceContext serviceContext) { return getPersistence().update(ctCollection, serviceContext); } /** * Returns all the ct collections where uuid = ?. * * @param uuid the uuid * @return the matching ct collections */ public static List findByUuid(String uuid) { return getPersistence().findByUuid(uuid); } /** * 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. *

* * @param uuid the uuid * @param start the lower bound of the range of ct collections * @param end the upper bound of the range of ct collections (not inclusive) * @return the range of matching ct collections */ public static List findByUuid( String uuid, int start, int end) { return getPersistence().findByUuid(uuid, start, end); } /** * 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. *

* * @param uuid the uuid * @param start the lower bound of the range of ct collections * @param end the upper bound of the range of ct collections (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching ct collections */ public static List findByUuid( String uuid, int start, int end, OrderByComparator orderByComparator) { return getPersistence().findByUuid(uuid, start, end, 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. *

* * @param uuid the uuid * @param start the lower bound of the range of ct collections * @param end the upper bound of the range of ct collections (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of matching ct collections */ public static List findByUuid( String uuid, int start, int end, OrderByComparator orderByComparator, boolean useFinderCache) { return getPersistence().findByUuid( uuid, start, end, orderByComparator, useFinderCache); } /** * Returns the first ct collection in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching ct collection * @throws NoSuchCollectionException if a matching ct collection could not be found */ public static CTCollection findByUuid_First( String uuid, OrderByComparator orderByComparator) throws com.liferay.change.tracking.exception.NoSuchCollectionException { return getPersistence().findByUuid_First(uuid, orderByComparator); } /** * Returns the first ct collection in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching ct collection, or null if a matching ct collection could not be found */ public static CTCollection fetchByUuid_First( String uuid, OrderByComparator orderByComparator) { return getPersistence().fetchByUuid_First(uuid, orderByComparator); } /** * Returns the last ct collection in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching ct collection * @throws NoSuchCollectionException if a matching ct collection could not be found */ public static CTCollection findByUuid_Last( String uuid, OrderByComparator orderByComparator) throws com.liferay.change.tracking.exception.NoSuchCollectionException { return getPersistence().findByUuid_Last(uuid, orderByComparator); } /** * Returns the last ct collection in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching ct collection, or null if a matching ct collection could not be found */ public static CTCollection fetchByUuid_Last( String uuid, OrderByComparator orderByComparator) { return getPersistence().fetchByUuid_Last(uuid, orderByComparator); } /** * Returns the ct collections before and after the current ct collection in the ordered set where uuid = ?. * * @param ctCollectionId the primary key of the current ct collection * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next ct collection * @throws NoSuchCollectionException if a ct collection with the primary key could not be found */ public static CTCollection[] findByUuid_PrevAndNext( long ctCollectionId, String uuid, OrderByComparator orderByComparator) throws com.liferay.change.tracking.exception.NoSuchCollectionException { return getPersistence().findByUuid_PrevAndNext( ctCollectionId, uuid, orderByComparator); } /** * Returns all the ct collections that the user has permission to view where uuid = ?. * * @param uuid the uuid * @return the matching ct collections that the user has permission to view */ public static List filterFindByUuid(String uuid) { return getPersistence().filterFindByUuid(uuid); } /** * 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. *

* * @param uuid the uuid * @param start the lower bound of the range of ct collections * @param end the upper bound of the range of ct collections (not inclusive) * @return the range of matching ct collections that the user has permission to view */ public static List filterFindByUuid( String uuid, int start, int end) { return getPersistence().filterFindByUuid(uuid, start, end); } /** * 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. *

* * @param uuid the uuid * @param start the lower bound of the range of ct collections * @param end the upper bound of the range of ct collections (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching ct collections that the user has permission to view */ public static List filterFindByUuid( String uuid, int start, int end, OrderByComparator orderByComparator) { return getPersistence().filterFindByUuid( uuid, start, end, 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 = ?. * * @param ctCollectionId the primary key of the current ct collection * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next ct collection * @throws NoSuchCollectionException if a ct collection with the primary key could not be found */ public static CTCollection[] filterFindByUuid_PrevAndNext( long ctCollectionId, String uuid, OrderByComparator orderByComparator) throws com.liferay.change.tracking.exception.NoSuchCollectionException { return getPersistence().filterFindByUuid_PrevAndNext( ctCollectionId, uuid, orderByComparator); } /** * Removes all the ct collections where uuid = ? from the database. * * @param uuid the uuid */ public static void removeByUuid(String uuid) { getPersistence().removeByUuid(uuid); } /** * Returns the number of ct collections where uuid = ?. * * @param uuid the uuid * @return the number of matching ct collections */ public static int countByUuid(String uuid) { return getPersistence().countByUuid(uuid); } /** * Returns the number of ct collections that the user has permission to view where uuid = ?. * * @param uuid the uuid * @return the number of matching ct collections that the user has permission to view */ public static int filterCountByUuid(String uuid) { return getPersistence().filterCountByUuid(uuid); } /** * Returns all the ct collections where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the matching ct collections */ public static List findByUuid_C(String uuid, long companyId) { return getPersistence().findByUuid_C(uuid, companyId); } /** * 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. *

* * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of ct collections * @param end the upper bound of the range of ct collections (not inclusive) * @return the range of matching ct collections */ public static List findByUuid_C( String uuid, long companyId, int start, int end) { return getPersistence().findByUuid_C(uuid, companyId, start, end); } /** * 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. *

* * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of ct collections * @param end the upper bound of the range of ct collections (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching ct collections */ public static List findByUuid_C( String uuid, long companyId, int start, int end, OrderByComparator orderByComparator) { return getPersistence().findByUuid_C( uuid, companyId, start, end, 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. *

* * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of ct collections * @param end the upper bound of the range of ct collections (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of matching ct collections */ public static List findByUuid_C( String uuid, long companyId, int start, int end, OrderByComparator orderByComparator, boolean useFinderCache) { return getPersistence().findByUuid_C( uuid, companyId, start, end, orderByComparator, useFinderCache); } /** * Returns the first ct collection in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching ct collection * @throws NoSuchCollectionException if a matching ct collection could not be found */ public static CTCollection findByUuid_C_First( String uuid, long companyId, OrderByComparator orderByComparator) throws com.liferay.change.tracking.exception.NoSuchCollectionException { return getPersistence().findByUuid_C_First( uuid, companyId, orderByComparator); } /** * Returns the first ct collection in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching ct collection, or null if a matching ct collection could not be found */ public static CTCollection fetchByUuid_C_First( String uuid, long companyId, OrderByComparator orderByComparator) { return getPersistence().fetchByUuid_C_First( uuid, companyId, orderByComparator); } /** * Returns the last ct collection in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching ct collection * @throws NoSuchCollectionException if a matching ct collection could not be found */ public static CTCollection findByUuid_C_Last( String uuid, long companyId, OrderByComparator orderByComparator) throws com.liferay.change.tracking.exception.NoSuchCollectionException { return getPersistence().findByUuid_C_Last( uuid, companyId, orderByComparator); } /** * Returns the last ct collection in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching ct collection, or null if a matching ct collection could not be found */ public static CTCollection fetchByUuid_C_Last( String uuid, long companyId, OrderByComparator orderByComparator) { return getPersistence().fetchByUuid_C_Last( uuid, companyId, orderByComparator); } /** * Returns the ct collections before and after the current ct collection in the ordered set where uuid = ? and companyId = ?. * * @param ctCollectionId the primary key of the current ct collection * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next ct collection * @throws NoSuchCollectionException if a ct collection with the primary key could not be found */ public static CTCollection[] findByUuid_C_PrevAndNext( long ctCollectionId, String uuid, long companyId, OrderByComparator orderByComparator) throws com.liferay.change.tracking.exception.NoSuchCollectionException { return getPersistence().findByUuid_C_PrevAndNext( ctCollectionId, uuid, companyId, orderByComparator); } /** * Returns all the ct collections that the user has permission to view where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the matching ct collections that the user has permission to view */ public static List filterFindByUuid_C( String uuid, long companyId) { return getPersistence().filterFindByUuid_C(uuid, companyId); } /** * 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. *

* * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of ct collections * @param end the upper bound of the range of ct collections (not inclusive) * @return the range of matching ct collections that the user has permission to view */ public static List filterFindByUuid_C( String uuid, long companyId, int start, int end) { return getPersistence().filterFindByUuid_C(uuid, companyId, start, end); } /** * 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. *

* * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of ct collections * @param end the upper bound of the range of ct collections (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching ct collections that the user has permission to view */ public static List filterFindByUuid_C( String uuid, long companyId, int start, int end, OrderByComparator orderByComparator) { return getPersistence().filterFindByUuid_C( uuid, companyId, start, end, 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 = ?. * * @param ctCollectionId the primary key of the current ct collection * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next ct collection * @throws NoSuchCollectionException if a ct collection with the primary key could not be found */ public static CTCollection[] filterFindByUuid_C_PrevAndNext( long ctCollectionId, String uuid, long companyId, OrderByComparator orderByComparator) throws com.liferay.change.tracking.exception.NoSuchCollectionException { return getPersistence().filterFindByUuid_C_PrevAndNext( ctCollectionId, uuid, companyId, orderByComparator); } /** * Removes all the ct collections where uuid = ? and companyId = ? from the database. * * @param uuid the uuid * @param companyId the company ID */ public static void removeByUuid_C(String uuid, long companyId) { getPersistence().removeByUuid_C(uuid, companyId); } /** * Returns the number of ct collections where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the number of matching ct collections */ public static int countByUuid_C(String uuid, long companyId) { return getPersistence().countByUuid_C(uuid, companyId); } /** * Returns the number of ct collections that the user has permission to view where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the number of matching ct collections that the user has permission to view */ public static int filterCountByUuid_C(String uuid, long companyId) { return getPersistence().filterCountByUuid_C(uuid, companyId); } /** * Returns all the ct collections where companyId = ?. * * @param companyId the company ID * @return the matching ct collections */ public static List findByCompanyId(long companyId) { return getPersistence().findByCompanyId(companyId); } /** * 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. *

* * @param companyId the company ID * @param start the lower bound of the range of ct collections * @param end the upper bound of the range of ct collections (not inclusive) * @return the range of matching ct collections */ public static List findByCompanyId( long companyId, int start, int end) { return getPersistence().findByCompanyId(companyId, start, end); } /** * 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. *

* * @param companyId the company ID * @param start the lower bound of the range of ct collections * @param end the upper bound of the range of ct collections (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching ct collections */ public static List findByCompanyId( long companyId, int start, int end, OrderByComparator orderByComparator) { return getPersistence().findByCompanyId( companyId, start, end, 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. *

* * @param companyId the company ID * @param start the lower bound of the range of ct collections * @param end the upper bound of the range of ct collections (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of matching ct collections */ public static List findByCompanyId( long companyId, int start, int end, OrderByComparator orderByComparator, boolean useFinderCache) { return getPersistence().findByCompanyId( companyId, start, end, orderByComparator, useFinderCache); } /** * Returns the first ct collection in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching ct collection * @throws NoSuchCollectionException if a matching ct collection could not be found */ public static CTCollection findByCompanyId_First( long companyId, OrderByComparator orderByComparator) throws com.liferay.change.tracking.exception.NoSuchCollectionException { return getPersistence().findByCompanyId_First( companyId, orderByComparator); } /** * Returns the first ct collection in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching ct collection, or null if a matching ct collection could not be found */ public static CTCollection fetchByCompanyId_First( long companyId, OrderByComparator orderByComparator) { return getPersistence().fetchByCompanyId_First( companyId, orderByComparator); } /** * Returns the last ct collection in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching ct collection * @throws NoSuchCollectionException if a matching ct collection could not be found */ public static CTCollection findByCompanyId_Last( long companyId, OrderByComparator orderByComparator) throws com.liferay.change.tracking.exception.NoSuchCollectionException { return getPersistence().findByCompanyId_Last( companyId, orderByComparator); } /** * Returns the last ct collection in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching ct collection, or null if a matching ct collection could not be found */ public static CTCollection fetchByCompanyId_Last( long companyId, OrderByComparator orderByComparator) { return getPersistence().fetchByCompanyId_Last( companyId, orderByComparator); } /** * Returns the ct collections before and after the current ct collection in the ordered set where companyId = ?. * * @param ctCollectionId the primary key of the current ct collection * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next ct collection * @throws NoSuchCollectionException if a ct collection with the primary key could not be found */ public static CTCollection[] findByCompanyId_PrevAndNext( long ctCollectionId, long companyId, OrderByComparator orderByComparator) throws com.liferay.change.tracking.exception.NoSuchCollectionException { return getPersistence().findByCompanyId_PrevAndNext( ctCollectionId, companyId, orderByComparator); } /** * Returns all the ct collections that the user has permission to view where companyId = ?. * * @param companyId the company ID * @return the matching ct collections that the user has permission to view */ public static List filterFindByCompanyId(long companyId) { return getPersistence().filterFindByCompanyId(companyId); } /** * 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. *

* * @param companyId the company ID * @param start the lower bound of the range of ct collections * @param end the upper bound of the range of ct collections (not inclusive) * @return the range of matching ct collections that the user has permission to view */ public static List filterFindByCompanyId( long companyId, int start, int end) { return getPersistence().filterFindByCompanyId(companyId, start, end); } /** * 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. *

* * @param companyId the company ID * @param start the lower bound of the range of ct collections * @param end the upper bound of the range of ct collections (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching ct collections that the user has permission to view */ public static List filterFindByCompanyId( long companyId, int start, int end, OrderByComparator orderByComparator) { return getPersistence().filterFindByCompanyId( companyId, start, end, 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 = ?. * * @param ctCollectionId the primary key of the current ct collection * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next ct collection * @throws NoSuchCollectionException if a ct collection with the primary key could not be found */ public static CTCollection[] filterFindByCompanyId_PrevAndNext( long ctCollectionId, long companyId, OrderByComparator orderByComparator) throws com.liferay.change.tracking.exception.NoSuchCollectionException { return getPersistence().filterFindByCompanyId_PrevAndNext( ctCollectionId, companyId, orderByComparator); } /** * Removes all the ct collections where companyId = ? from the database. * * @param companyId the company ID */ public static void removeByCompanyId(long companyId) { getPersistence().removeByCompanyId(companyId); } /** * Returns the number of ct collections where companyId = ?. * * @param companyId the company ID * @return the number of matching ct collections */ public static int countByCompanyId(long companyId) { return getPersistence().countByCompanyId(companyId); } /** * Returns the number of ct collections that the user has permission to view where companyId = ?. * * @param companyId the company ID * @return the number of matching ct collections that the user has permission to view */ public static int filterCountByCompanyId(long companyId) { return getPersistence().filterCountByCompanyId(companyId); } /** * Returns all the ct collections where schemaVersionId = ?. * * @param schemaVersionId the schema version ID * @return the matching ct collections */ public static List findBySchemaVersionId( long schemaVersionId) { return getPersistence().findBySchemaVersionId(schemaVersionId); } /** * 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. *

* * @param schemaVersionId the schema version ID * @param start the lower bound of the range of ct collections * @param end the upper bound of the range of ct collections (not inclusive) * @return the range of matching ct collections */ public static List findBySchemaVersionId( long schemaVersionId, int start, int end) { return getPersistence().findBySchemaVersionId( schemaVersionId, start, end); } /** * 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. *

* * @param schemaVersionId the schema version ID * @param start the lower bound of the range of ct collections * @param end the upper bound of the range of ct collections (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching ct collections */ public static List findBySchemaVersionId( long schemaVersionId, int start, int end, OrderByComparator orderByComparator) { return getPersistence().findBySchemaVersionId( schemaVersionId, start, end, 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. *

* * @param schemaVersionId the schema version ID * @param start the lower bound of the range of ct collections * @param end the upper bound of the range of ct collections (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of matching ct collections */ public static List findBySchemaVersionId( long schemaVersionId, int start, int end, OrderByComparator orderByComparator, boolean useFinderCache) { return getPersistence().findBySchemaVersionId( schemaVersionId, start, end, orderByComparator, useFinderCache); } /** * Returns the first ct collection in the ordered set where schemaVersionId = ?. * * @param schemaVersionId the schema version ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching ct collection * @throws NoSuchCollectionException if a matching ct collection could not be found */ public static CTCollection findBySchemaVersionId_First( long schemaVersionId, OrderByComparator orderByComparator) throws com.liferay.change.tracking.exception.NoSuchCollectionException { return getPersistence().findBySchemaVersionId_First( schemaVersionId, orderByComparator); } /** * Returns the first ct collection in the ordered set where schemaVersionId = ?. * * @param schemaVersionId the schema version ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching ct collection, or null if a matching ct collection could not be found */ public static CTCollection fetchBySchemaVersionId_First( long schemaVersionId, OrderByComparator orderByComparator) { return getPersistence().fetchBySchemaVersionId_First( schemaVersionId, orderByComparator); } /** * Returns the last ct collection in the ordered set where schemaVersionId = ?. * * @param schemaVersionId the schema version ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching ct collection * @throws NoSuchCollectionException if a matching ct collection could not be found */ public static CTCollection findBySchemaVersionId_Last( long schemaVersionId, OrderByComparator orderByComparator) throws com.liferay.change.tracking.exception.NoSuchCollectionException { return getPersistence().findBySchemaVersionId_Last( schemaVersionId, orderByComparator); } /** * Returns the last ct collection in the ordered set where schemaVersionId = ?. * * @param schemaVersionId the schema version ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching ct collection, or null if a matching ct collection could not be found */ public static CTCollection fetchBySchemaVersionId_Last( long schemaVersionId, OrderByComparator orderByComparator) { return getPersistence().fetchBySchemaVersionId_Last( schemaVersionId, orderByComparator); } /** * Returns the ct collections before and after the current ct collection in the ordered set where schemaVersionId = ?. * * @param ctCollectionId the primary key of the current ct collection * @param schemaVersionId the schema version ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next ct collection * @throws NoSuchCollectionException if a ct collection with the primary key could not be found */ public static CTCollection[] findBySchemaVersionId_PrevAndNext( long ctCollectionId, long schemaVersionId, OrderByComparator orderByComparator) throws com.liferay.change.tracking.exception.NoSuchCollectionException { return getPersistence().findBySchemaVersionId_PrevAndNext( ctCollectionId, schemaVersionId, orderByComparator); } /** * Returns all the ct collections that the user has permission to view where schemaVersionId = ?. * * @param schemaVersionId the schema version ID * @return the matching ct collections that the user has permission to view */ public static List filterFindBySchemaVersionId( long schemaVersionId) { return getPersistence().filterFindBySchemaVersionId(schemaVersionId); } /** * 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. *

* * @param schemaVersionId the schema version ID * @param start the lower bound of the range of ct collections * @param end the upper bound of the range of ct collections (not inclusive) * @return the range of matching ct collections that the user has permission to view */ public static List filterFindBySchemaVersionId( long schemaVersionId, int start, int end) { return getPersistence().filterFindBySchemaVersionId( schemaVersionId, start, end); } /** * 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. *

* * @param schemaVersionId the schema version ID * @param start the lower bound of the range of ct collections * @param end the upper bound of the range of ct collections (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching ct collections that the user has permission to view */ public static List filterFindBySchemaVersionId( long schemaVersionId, int start, int end, OrderByComparator orderByComparator) { return getPersistence().filterFindBySchemaVersionId( schemaVersionId, start, end, 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 = ?. * * @param ctCollectionId the primary key of the current ct collection * @param schemaVersionId the schema version ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next ct collection * @throws NoSuchCollectionException if a ct collection with the primary key could not be found */ public static CTCollection[] filterFindBySchemaVersionId_PrevAndNext( long ctCollectionId, long schemaVersionId, OrderByComparator orderByComparator) throws com.liferay.change.tracking.exception.NoSuchCollectionException { return getPersistence().filterFindBySchemaVersionId_PrevAndNext( ctCollectionId, schemaVersionId, orderByComparator); } /** * Removes all the ct collections where schemaVersionId = ? from the database. * * @param schemaVersionId the schema version ID */ public static void removeBySchemaVersionId(long schemaVersionId) { getPersistence().removeBySchemaVersionId(schemaVersionId); } /** * Returns the number of ct collections where schemaVersionId = ?. * * @param schemaVersionId the schema version ID * @return the number of matching ct collections */ public static int countBySchemaVersionId(long schemaVersionId) { return getPersistence().countBySchemaVersionId(schemaVersionId); } /** * Returns the number of ct collections that the user has permission to view where schemaVersionId = ?. * * @param schemaVersionId the schema version ID * @return the number of matching ct collections that the user has permission to view */ public static int filterCountBySchemaVersionId(long schemaVersionId) { return getPersistence().filterCountBySchemaVersionId(schemaVersionId); } /** * Returns all the ct collections where companyId = ? and status = ?. * * @param companyId the company ID * @param status the status * @return the matching ct collections */ public static List findByC_S(long companyId, int status) { return getPersistence().findByC_S(companyId, status); } /** * 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. *

* * @param companyId the company ID * @param status the status * @param start the lower bound of the range of ct collections * @param end the upper bound of the range of ct collections (not inclusive) * @return the range of matching ct collections */ public static List findByC_S( long companyId, int status, int start, int end) { return getPersistence().findByC_S(companyId, status, start, end); } /** * 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. *

* * @param companyId the company ID * @param status the status * @param start the lower bound of the range of ct collections * @param end the upper bound of the range of ct collections (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching ct collections */ public static List findByC_S( long companyId, int status, int start, int end, OrderByComparator orderByComparator) { return getPersistence().findByC_S( companyId, status, start, end, 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. *

* * @param companyId the company ID * @param status the status * @param start the lower bound of the range of ct collections * @param end the upper bound of the range of ct collections (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of matching ct collections */ public static List findByC_S( long companyId, int status, int start, int end, OrderByComparator orderByComparator, boolean useFinderCache) { return getPersistence().findByC_S( companyId, status, start, end, orderByComparator, useFinderCache); } /** * Returns the first ct collection in the ordered set where companyId = ? and status = ?. * * @param companyId the company ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching ct collection * @throws NoSuchCollectionException if a matching ct collection could not be found */ public static CTCollection findByC_S_First( long companyId, int status, OrderByComparator orderByComparator) throws com.liferay.change.tracking.exception.NoSuchCollectionException { return getPersistence().findByC_S_First( companyId, status, orderByComparator); } /** * Returns the first ct collection in the ordered set where companyId = ? and status = ?. * * @param companyId the company ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching ct collection, or null if a matching ct collection could not be found */ public static CTCollection fetchByC_S_First( long companyId, int status, OrderByComparator orderByComparator) { return getPersistence().fetchByC_S_First( companyId, status, orderByComparator); } /** * Returns the last ct collection in the ordered set where companyId = ? and status = ?. * * @param companyId the company ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching ct collection * @throws NoSuchCollectionException if a matching ct collection could not be found */ public static CTCollection findByC_S_Last( long companyId, int status, OrderByComparator orderByComparator) throws com.liferay.change.tracking.exception.NoSuchCollectionException { return getPersistence().findByC_S_Last( companyId, status, orderByComparator); } /** * Returns the last ct collection in the ordered set where companyId = ? and status = ?. * * @param companyId the company ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching ct collection, or null if a matching ct collection could not be found */ public static CTCollection fetchByC_S_Last( long companyId, int status, OrderByComparator orderByComparator) { return getPersistence().fetchByC_S_Last( companyId, status, orderByComparator); } /** * Returns the ct collections before and after the current ct collection in the ordered set where companyId = ? and status = ?. * * @param ctCollectionId the primary key of the current ct collection * @param companyId the company ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next ct collection * @throws NoSuchCollectionException if a ct collection with the primary key could not be found */ public static CTCollection[] findByC_S_PrevAndNext( long ctCollectionId, long companyId, int status, OrderByComparator orderByComparator) throws com.liferay.change.tracking.exception.NoSuchCollectionException { return getPersistence().findByC_S_PrevAndNext( ctCollectionId, companyId, status, orderByComparator); } /** * Returns all the ct collections that the user has permission to view where companyId = ? and status = ?. * * @param companyId the company ID * @param status the status * @return the matching ct collections that the user has permission to view */ public static List filterFindByC_S( long companyId, int status) { return getPersistence().filterFindByC_S(companyId, status); } /** * 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. *

* * @param companyId the company ID * @param status the status * @param start the lower bound of the range of ct collections * @param end the upper bound of the range of ct collections (not inclusive) * @return the range of matching ct collections that the user has permission to view */ public static List filterFindByC_S( long companyId, int status, int start, int end) { return getPersistence().filterFindByC_S(companyId, status, start, end); } /** * 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. *

* * @param companyId the company ID * @param status the status * @param start the lower bound of the range of ct collections * @param end the upper bound of the range of ct collections (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching ct collections that the user has permission to view */ public static List filterFindByC_S( long companyId, int status, int start, int end, OrderByComparator orderByComparator) { return getPersistence().filterFindByC_S( companyId, status, start, end, 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 = ?. * * @param ctCollectionId the primary key of the current ct collection * @param companyId the company ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next ct collection * @throws NoSuchCollectionException if a ct collection with the primary key could not be found */ public static CTCollection[] filterFindByC_S_PrevAndNext( long ctCollectionId, long companyId, int status, OrderByComparator orderByComparator) throws com.liferay.change.tracking.exception.NoSuchCollectionException { return getPersistence().filterFindByC_S_PrevAndNext( ctCollectionId, companyId, status, orderByComparator); } /** * Returns all the ct collections that the user has permission to view where companyId = ? and status = any ?. * * @param companyId the company ID * @param statuses the statuses * @return the matching ct collections that the user has permission to view */ public static List filterFindByC_S( long companyId, int[] statuses) { return getPersistence().filterFindByC_S(companyId, statuses); } /** * 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. *

* * @param companyId the company ID * @param statuses the statuses * @param start the lower bound of the range of ct collections * @param end the upper bound of the range of ct collections (not inclusive) * @return the range of matching ct collections that the user has permission to view */ public static List filterFindByC_S( long companyId, int[] statuses, int start, int end) { return getPersistence().filterFindByC_S( companyId, statuses, start, end); } /** * 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. *

* * @param companyId the company ID * @param statuses the statuses * @param start the lower bound of the range of ct collections * @param end the upper bound of the range of ct collections (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching ct collections that the user has permission to view */ public static List filterFindByC_S( long companyId, int[] statuses, int start, int end, OrderByComparator orderByComparator) { return getPersistence().filterFindByC_S( companyId, statuses, start, end, orderByComparator); } /** * 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. *

* * @param companyId the company ID * @param statuses the statuses * @return the matching ct collections */ public static List findByC_S(long companyId, int[] statuses) { return getPersistence().findByC_S(companyId, statuses); } /** * 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. *

* * @param companyId the company ID * @param statuses the statuses * @param start the lower bound of the range of ct collections * @param end the upper bound of the range of ct collections (not inclusive) * @return the range of matching ct collections */ public static List findByC_S( long companyId, int[] statuses, int start, int end) { return getPersistence().findByC_S(companyId, statuses, start, end); } /** * 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. *

* * @param companyId the company ID * @param statuses the statuses * @param start the lower bound of the range of ct collections * @param end the upper bound of the range of ct collections (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching ct collections */ public static List findByC_S( long companyId, int[] statuses, int start, int end, OrderByComparator orderByComparator) { return getPersistence().findByC_S( companyId, statuses, start, end, orderByComparator); } /** * 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. *

* * @param companyId the company ID * @param statuses the statuses * @param start the lower bound of the range of ct collections * @param end the upper bound of the range of ct collections (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of matching ct collections */ public static List findByC_S( long companyId, int[] statuses, int start, int end, OrderByComparator orderByComparator, boolean useFinderCache) { return getPersistence().findByC_S( companyId, statuses, start, end, orderByComparator, useFinderCache); } /** * Removes all the ct collections where companyId = ? and status = ? from the database. * * @param companyId the company ID * @param status the status */ public static void removeByC_S(long companyId, int status) { getPersistence().removeByC_S(companyId, status); } /** * Returns the number of ct collections where companyId = ? and status = ?. * * @param companyId the company ID * @param status the status * @return the number of matching ct collections */ public static int countByC_S(long companyId, int status) { return getPersistence().countByC_S(companyId, status); } /** * Returns the number of ct collections where companyId = ? and status = any ?. * * @param companyId the company ID * @param statuses the statuses * @return the number of matching ct collections */ public static int countByC_S(long companyId, int[] statuses) { return getPersistence().countByC_S(companyId, statuses); } /** * Returns the number of ct collections that the user has permission to view where companyId = ? and status = ?. * * @param companyId the company ID * @param status the status * @return the number of matching ct collections that the user has permission to view */ public static int filterCountByC_S(long companyId, int status) { return getPersistence().filterCountByC_S(companyId, status); } /** * Returns the number of ct collections that the user has permission to view where companyId = ? and status = any ?. * * @param companyId the company ID * @param statuses the statuses * @return the number of matching ct collections that the user has permission to view */ public static int filterCountByC_S(long companyId, int[] statuses) { return getPersistence().filterCountByC_S(companyId, statuses); } /** * Returns the ct collection where externalReferenceCode = ? and companyId = ? or throws a NoSuchCollectionException if it could not be found. * * @param externalReferenceCode the external reference code * @param companyId the company ID * @return the matching ct collection * @throws NoSuchCollectionException if a matching ct collection could not be found */ public static CTCollection findByERC_C( String externalReferenceCode, long companyId) throws com.liferay.change.tracking.exception.NoSuchCollectionException { return getPersistence().findByERC_C(externalReferenceCode, companyId); } /** * Returns the ct collection where externalReferenceCode = ? and companyId = ? or returns null if it could not be found. Uses the finder cache. * * @param externalReferenceCode the external reference code * @param companyId the company ID * @return the matching ct collection, or null if a matching ct collection could not be found */ public static CTCollection fetchByERC_C( String externalReferenceCode, long companyId) { return getPersistence().fetchByERC_C(externalReferenceCode, companyId); } /** * Returns the ct collection where externalReferenceCode = ? and companyId = ? or returns null if it could not be found, optionally using the finder cache. * * @param externalReferenceCode the external reference code * @param companyId the company ID * @param useFinderCache whether to use the finder cache * @return the matching ct collection, or null if a matching ct collection could not be found */ public static CTCollection fetchByERC_C( String externalReferenceCode, long companyId, boolean useFinderCache) { return getPersistence().fetchByERC_C( externalReferenceCode, companyId, useFinderCache); } /** * Removes the ct collection where externalReferenceCode = ? and companyId = ? from the database. * * @param externalReferenceCode the external reference code * @param companyId the company ID * @return the ct collection that was removed */ public static CTCollection removeByERC_C( String externalReferenceCode, long companyId) throws com.liferay.change.tracking.exception.NoSuchCollectionException { return getPersistence().removeByERC_C(externalReferenceCode, companyId); } /** * Returns the number of ct collections where externalReferenceCode = ? and companyId = ?. * * @param externalReferenceCode the external reference code * @param companyId the company ID * @return the number of matching ct collections */ public static int countByERC_C( String externalReferenceCode, long companyId) { return getPersistence().countByERC_C(externalReferenceCode, companyId); } /** * Caches the ct collection in the entity cache if it is enabled. * * @param ctCollection the ct collection */ public static void cacheResult(CTCollection ctCollection) { getPersistence().cacheResult(ctCollection); } /** * Caches the ct collections in the entity cache if it is enabled. * * @param ctCollections the ct collections */ public static void cacheResult(List ctCollections) { getPersistence().cacheResult(ctCollections); } /** * Creates a new ct collection with the primary key. Does not add the ct collection to the database. * * @param ctCollectionId the primary key for the new ct collection * @return the new ct collection */ public static CTCollection create(long ctCollectionId) { return getPersistence().create(ctCollectionId); } /** * Removes the ct collection with the primary key from the database. Also notifies the appropriate model listeners. * * @param ctCollectionId the primary key of the ct collection * @return the ct collection that was removed * @throws NoSuchCollectionException if a ct collection with the primary key could not be found */ public static CTCollection remove(long ctCollectionId) throws com.liferay.change.tracking.exception.NoSuchCollectionException { return getPersistence().remove(ctCollectionId); } public static CTCollection updateImpl(CTCollection ctCollection) { return getPersistence().updateImpl(ctCollection); } /** * Returns the ct collection with the primary key or throws a NoSuchCollectionException if it could not be found. * * @param ctCollectionId the primary key of the ct collection * @return the ct collection * @throws NoSuchCollectionException if a ct collection with the primary key could not be found */ public static CTCollection findByPrimaryKey(long ctCollectionId) throws com.liferay.change.tracking.exception.NoSuchCollectionException { return getPersistence().findByPrimaryKey(ctCollectionId); } /** * Returns the ct collection with the primary key or returns null if it could not be found. * * @param ctCollectionId the primary key of the ct collection * @return the ct collection, or null if a ct collection with the primary key could not be found */ public static CTCollection fetchByPrimaryKey(long ctCollectionId) { return getPersistence().fetchByPrimaryKey(ctCollectionId); } /** * Returns all the ct collections. * * @return the ct collections */ public static List findAll() { return getPersistence().findAll(); } /** * 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. *

* * @param start the lower bound of the range of ct collections * @param end the upper bound of the range of ct collections (not inclusive) * @return the range of ct collections */ public static List findAll(int start, int end) { return getPersistence().findAll(start, end); } /** * 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. *

* * @param start the lower bound of the range of ct collections * @param end the upper bound of the range of ct collections (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of ct collections */ public static List findAll( int start, int end, OrderByComparator orderByComparator) { return getPersistence().findAll(start, end, 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. *

* * @param start the lower bound of the range of ct collections * @param end the upper bound of the range of ct collections (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of ct collections */ public static List findAll( int start, int end, OrderByComparator orderByComparator, boolean useFinderCache) { return getPersistence().findAll( start, end, orderByComparator, useFinderCache); } /** * Removes all the ct collections from the database. */ public static void removeAll() { getPersistence().removeAll(); } /** * Returns the number of ct collections. * * @return the number of ct collections */ public static int countAll() { return getPersistence().countAll(); } public static CTCollectionPersistence getPersistence() { return _persistence; } public static void setPersistence(CTCollectionPersistence persistence) { _persistence = persistence; } private static volatile CTCollectionPersistence _persistence; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy