com.liferay.change.tracking.service.persistence.CTProcessUtil Maven / Gradle / Ivy
/**
* 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.CTProcess;
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 process service. This utility wraps com.liferay.change.tracking.service.persistence.impl.CTProcessPersistenceImpl
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 CTProcessPersistence
* @generated
*/
public class CTProcessUtil {
/*
* 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(CTProcess ctProcess) {
getPersistence().clearCache(ctProcess);
}
/**
* @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 CTProcess update(CTProcess ctProcess) {
return getPersistence().update(ctProcess);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
*/
public static CTProcess update(
CTProcess ctProcess, ServiceContext serviceContext) {
return getPersistence().update(ctProcess, serviceContext);
}
/**
* Returns all the ct processes where companyId = ?.
*
* @param companyId the company ID
* @return the matching ct processes
*/
public static List findByCompanyId(long companyId) {
return getPersistence().findByCompanyId(companyId);
}
/**
* Returns a range of all the ct processes 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 CTProcessModelImpl
.
*
*
* @param companyId the company ID
* @param start the lower bound of the range of ct processes
* @param end the upper bound of the range of ct processes (not inclusive)
* @return the range of matching ct processes
*/
public static List findByCompanyId(
long companyId, int start, int end) {
return getPersistence().findByCompanyId(companyId, start, end);
}
/**
* Returns an ordered range of all the ct processes 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 CTProcessModelImpl
.
*
*
* @param companyId the company ID
* @param start the lower bound of the range of ct processes
* @param end the upper bound of the range of ct processes (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching ct processes
*/
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 processes 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 CTProcessModelImpl
.
*
*
* @param companyId the company ID
* @param start the lower bound of the range of ct processes
* @param end the upper bound of the range of ct processes (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 processes
*/
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 process 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 process
* @throws NoSuchProcessException if a matching ct process could not be found
*/
public static CTProcess findByCompanyId_First(
long companyId, OrderByComparator orderByComparator)
throws com.liferay.change.tracking.exception.NoSuchProcessException {
return getPersistence().findByCompanyId_First(
companyId, orderByComparator);
}
/**
* Returns the first ct process 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 process, or null
if a matching ct process could not be found
*/
public static CTProcess fetchByCompanyId_First(
long companyId, OrderByComparator orderByComparator) {
return getPersistence().fetchByCompanyId_First(
companyId, orderByComparator);
}
/**
* Returns the last ct process 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 process
* @throws NoSuchProcessException if a matching ct process could not be found
*/
public static CTProcess findByCompanyId_Last(
long companyId, OrderByComparator orderByComparator)
throws com.liferay.change.tracking.exception.NoSuchProcessException {
return getPersistence().findByCompanyId_Last(
companyId, orderByComparator);
}
/**
* Returns the last ct process 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 process, or null
if a matching ct process could not be found
*/
public static CTProcess fetchByCompanyId_Last(
long companyId, OrderByComparator orderByComparator) {
return getPersistence().fetchByCompanyId_Last(
companyId, orderByComparator);
}
/**
* Returns the ct processes before and after the current ct process in the ordered set where companyId = ?.
*
* @param ctProcessId the primary key of the current ct process
* @param companyId the company ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the previous, current, and next ct process
* @throws NoSuchProcessException if a ct process with the primary key could not be found
*/
public static CTProcess[] findByCompanyId_PrevAndNext(
long ctProcessId, long companyId,
OrderByComparator orderByComparator)
throws com.liferay.change.tracking.exception.NoSuchProcessException {
return getPersistence().findByCompanyId_PrevAndNext(
ctProcessId, companyId, orderByComparator);
}
/**
* Returns all the ct processes that the user has permission to view where companyId = ?.
*
* @param companyId the company ID
* @return the matching ct processes that the user has permission to view
*/
public static List filterFindByCompanyId(long companyId) {
return getPersistence().filterFindByCompanyId(companyId);
}
/**
* Returns a range of all the ct processes 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 CTProcessModelImpl
.
*
*
* @param companyId the company ID
* @param start the lower bound of the range of ct processes
* @param end the upper bound of the range of ct processes (not inclusive)
* @return the range of matching ct processes 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 processes 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 CTProcessModelImpl
.
*
*
* @param companyId the company ID
* @param start the lower bound of the range of ct processes
* @param end the upper bound of the range of ct processes (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching ct processes 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 processes before and after the current ct process in the ordered set of ct processes that the user has permission to view where companyId = ?.
*
* @param ctProcessId the primary key of the current ct process
* @param companyId the company ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the previous, current, and next ct process
* @throws NoSuchProcessException if a ct process with the primary key could not be found
*/
public static CTProcess[] filterFindByCompanyId_PrevAndNext(
long ctProcessId, long companyId,
OrderByComparator orderByComparator)
throws com.liferay.change.tracking.exception.NoSuchProcessException {
return getPersistence().filterFindByCompanyId_PrevAndNext(
ctProcessId, companyId, orderByComparator);
}
/**
* Removes all the ct processes where companyId = ? from the database.
*
* @param companyId the company ID
*/
public static void removeByCompanyId(long companyId) {
getPersistence().removeByCompanyId(companyId);
}
/**
* Returns the number of ct processes where companyId = ?.
*
* @param companyId the company ID
* @return the number of matching ct processes
*/
public static int countByCompanyId(long companyId) {
return getPersistence().countByCompanyId(companyId);
}
/**
* Returns the number of ct processes that the user has permission to view where companyId = ?.
*
* @param companyId the company ID
* @return the number of matching ct processes that the user has permission to view
*/
public static int filterCountByCompanyId(long companyId) {
return getPersistence().filterCountByCompanyId(companyId);
}
/**
* Returns all the ct processes where ctCollectionId = ?.
*
* @param ctCollectionId the ct collection ID
* @return the matching ct processes
*/
public static List findByCtCollectionId(long ctCollectionId) {
return getPersistence().findByCtCollectionId(ctCollectionId);
}
/**
* Returns a range of all the ct processes where ctCollectionId = ?.
*
*
* 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 CTProcessModelImpl
.
*
*
* @param ctCollectionId the ct collection ID
* @param start the lower bound of the range of ct processes
* @param end the upper bound of the range of ct processes (not inclusive)
* @return the range of matching ct processes
*/
public static List findByCtCollectionId(
long ctCollectionId, int start, int end) {
return getPersistence().findByCtCollectionId(
ctCollectionId, start, end);
}
/**
* Returns an ordered range of all the ct processes where ctCollectionId = ?.
*
*
* 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 CTProcessModelImpl
.
*
*
* @param ctCollectionId the ct collection ID
* @param start the lower bound of the range of ct processes
* @param end the upper bound of the range of ct processes (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching ct processes
*/
public static List findByCtCollectionId(
long ctCollectionId, int start, int end,
OrderByComparator orderByComparator) {
return getPersistence().findByCtCollectionId(
ctCollectionId, start, end, orderByComparator);
}
/**
* Returns an ordered range of all the ct processes where ctCollectionId = ?.
*
*
* 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 CTProcessModelImpl
.
*
*
* @param ctCollectionId the ct collection ID
* @param start the lower bound of the range of ct processes
* @param end the upper bound of the range of ct processes (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 processes
*/
public static List findByCtCollectionId(
long ctCollectionId, int start, int end,
OrderByComparator orderByComparator,
boolean useFinderCache) {
return getPersistence().findByCtCollectionId(
ctCollectionId, start, end, orderByComparator, useFinderCache);
}
/**
* Returns the first ct process in the ordered set where ctCollectionId = ?.
*
* @param ctCollectionId the ct collection ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching ct process
* @throws NoSuchProcessException if a matching ct process could not be found
*/
public static CTProcess findByCtCollectionId_First(
long ctCollectionId, OrderByComparator orderByComparator)
throws com.liferay.change.tracking.exception.NoSuchProcessException {
return getPersistence().findByCtCollectionId_First(
ctCollectionId, orderByComparator);
}
/**
* Returns the first ct process in the ordered set where ctCollectionId = ?.
*
* @param ctCollectionId the ct collection ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching ct process, or null
if a matching ct process could not be found
*/
public static CTProcess fetchByCtCollectionId_First(
long ctCollectionId, OrderByComparator orderByComparator) {
return getPersistence().fetchByCtCollectionId_First(
ctCollectionId, orderByComparator);
}
/**
* Returns the last ct process in the ordered set where ctCollectionId = ?.
*
* @param ctCollectionId the ct collection ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching ct process
* @throws NoSuchProcessException if a matching ct process could not be found
*/
public static CTProcess findByCtCollectionId_Last(
long ctCollectionId, OrderByComparator orderByComparator)
throws com.liferay.change.tracking.exception.NoSuchProcessException {
return getPersistence().findByCtCollectionId_Last(
ctCollectionId, orderByComparator);
}
/**
* Returns the last ct process in the ordered set where ctCollectionId = ?.
*
* @param ctCollectionId the ct collection ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching ct process, or null
if a matching ct process could not be found
*/
public static CTProcess fetchByCtCollectionId_Last(
long ctCollectionId, OrderByComparator orderByComparator) {
return getPersistence().fetchByCtCollectionId_Last(
ctCollectionId, orderByComparator);
}
/**
* Returns the ct processes before and after the current ct process in the ordered set where ctCollectionId = ?.
*
* @param ctProcessId the primary key of the current ct process
* @param ctCollectionId the ct collection ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the previous, current, and next ct process
* @throws NoSuchProcessException if a ct process with the primary key could not be found
*/
public static CTProcess[] findByCtCollectionId_PrevAndNext(
long ctProcessId, long ctCollectionId,
OrderByComparator orderByComparator)
throws com.liferay.change.tracking.exception.NoSuchProcessException {
return getPersistence().findByCtCollectionId_PrevAndNext(
ctProcessId, ctCollectionId, orderByComparator);
}
/**
* Returns all the ct processes that the user has permission to view where ctCollectionId = ?.
*
* @param ctCollectionId the ct collection ID
* @return the matching ct processes that the user has permission to view
*/
public static List filterFindByCtCollectionId(
long ctCollectionId) {
return getPersistence().filterFindByCtCollectionId(ctCollectionId);
}
/**
* Returns a range of all the ct processes that the user has permission to view where ctCollectionId = ?.
*
*
* 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 CTProcessModelImpl
.
*
*
* @param ctCollectionId the ct collection ID
* @param start the lower bound of the range of ct processes
* @param end the upper bound of the range of ct processes (not inclusive)
* @return the range of matching ct processes that the user has permission to view
*/
public static List filterFindByCtCollectionId(
long ctCollectionId, int start, int end) {
return getPersistence().filterFindByCtCollectionId(
ctCollectionId, start, end);
}
/**
* Returns an ordered range of all the ct processes that the user has permissions to view where ctCollectionId = ?.
*
*
* 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 CTProcessModelImpl
.
*
*
* @param ctCollectionId the ct collection ID
* @param start the lower bound of the range of ct processes
* @param end the upper bound of the range of ct processes (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching ct processes that the user has permission to view
*/
public static List filterFindByCtCollectionId(
long ctCollectionId, int start, int end,
OrderByComparator orderByComparator) {
return getPersistence().filterFindByCtCollectionId(
ctCollectionId, start, end, orderByComparator);
}
/**
* Returns the ct processes before and after the current ct process in the ordered set of ct processes that the user has permission to view where ctCollectionId = ?.
*
* @param ctProcessId the primary key of the current ct process
* @param ctCollectionId the ct collection ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the previous, current, and next ct process
* @throws NoSuchProcessException if a ct process with the primary key could not be found
*/
public static CTProcess[] filterFindByCtCollectionId_PrevAndNext(
long ctProcessId, long ctCollectionId,
OrderByComparator orderByComparator)
throws com.liferay.change.tracking.exception.NoSuchProcessException {
return getPersistence().filterFindByCtCollectionId_PrevAndNext(
ctProcessId, ctCollectionId, orderByComparator);
}
/**
* Removes all the ct processes where ctCollectionId = ? from the database.
*
* @param ctCollectionId the ct collection ID
*/
public static void removeByCtCollectionId(long ctCollectionId) {
getPersistence().removeByCtCollectionId(ctCollectionId);
}
/**
* Returns the number of ct processes where ctCollectionId = ?.
*
* @param ctCollectionId the ct collection ID
* @return the number of matching ct processes
*/
public static int countByCtCollectionId(long ctCollectionId) {
return getPersistence().countByCtCollectionId(ctCollectionId);
}
/**
* Returns the number of ct processes that the user has permission to view where ctCollectionId = ?.
*
* @param ctCollectionId the ct collection ID
* @return the number of matching ct processes that the user has permission to view
*/
public static int filterCountByCtCollectionId(long ctCollectionId) {
return getPersistence().filterCountByCtCollectionId(ctCollectionId);
}
/**
* Returns all the ct processes where ctCollectionId = ? and type = ?.
*
* @param ctCollectionId the ct collection ID
* @param type the type
* @return the matching ct processes
*/
public static List findByC_T(long ctCollectionId, int type) {
return getPersistence().findByC_T(ctCollectionId, type);
}
/**
* Returns a range of all the ct processes where ctCollectionId = ? and type = ?.
*
*
* 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 CTProcessModelImpl
.
*
*
* @param ctCollectionId the ct collection ID
* @param type the type
* @param start the lower bound of the range of ct processes
* @param end the upper bound of the range of ct processes (not inclusive)
* @return the range of matching ct processes
*/
public static List findByC_T(
long ctCollectionId, int type, int start, int end) {
return getPersistence().findByC_T(ctCollectionId, type, start, end);
}
/**
* Returns an ordered range of all the ct processes where ctCollectionId = ? and type = ?.
*
*
* 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 CTProcessModelImpl
.
*
*
* @param ctCollectionId the ct collection ID
* @param type the type
* @param start the lower bound of the range of ct processes
* @param end the upper bound of the range of ct processes (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching ct processes
*/
public static List findByC_T(
long ctCollectionId, int type, int start, int end,
OrderByComparator orderByComparator) {
return getPersistence().findByC_T(
ctCollectionId, type, start, end, orderByComparator);
}
/**
* Returns an ordered range of all the ct processes where ctCollectionId = ? and type = ?.
*
*
* 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 CTProcessModelImpl
.
*
*
* @param ctCollectionId the ct collection ID
* @param type the type
* @param start the lower bound of the range of ct processes
* @param end the upper bound of the range of ct processes (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 processes
*/
public static List findByC_T(
long ctCollectionId, int type, int start, int end,
OrderByComparator orderByComparator,
boolean useFinderCache) {
return getPersistence().findByC_T(
ctCollectionId, type, start, end, orderByComparator,
useFinderCache);
}
/**
* Returns the first ct process in the ordered set where ctCollectionId = ? and type = ?.
*
* @param ctCollectionId the ct collection ID
* @param type the type
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching ct process
* @throws NoSuchProcessException if a matching ct process could not be found
*/
public static CTProcess findByC_T_First(
long ctCollectionId, int type,
OrderByComparator orderByComparator)
throws com.liferay.change.tracking.exception.NoSuchProcessException {
return getPersistence().findByC_T_First(
ctCollectionId, type, orderByComparator);
}
/**
* Returns the first ct process in the ordered set where ctCollectionId = ? and type = ?.
*
* @param ctCollectionId the ct collection ID
* @param type the type
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching ct process, or null
if a matching ct process could not be found
*/
public static CTProcess fetchByC_T_First(
long ctCollectionId, int type,
OrderByComparator orderByComparator) {
return getPersistence().fetchByC_T_First(
ctCollectionId, type, orderByComparator);
}
/**
* Returns the last ct process in the ordered set where ctCollectionId = ? and type = ?.
*
* @param ctCollectionId the ct collection ID
* @param type the type
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching ct process
* @throws NoSuchProcessException if a matching ct process could not be found
*/
public static CTProcess findByC_T_Last(
long ctCollectionId, int type,
OrderByComparator orderByComparator)
throws com.liferay.change.tracking.exception.NoSuchProcessException {
return getPersistence().findByC_T_Last(
ctCollectionId, type, orderByComparator);
}
/**
* Returns the last ct process in the ordered set where ctCollectionId = ? and type = ?.
*
* @param ctCollectionId the ct collection ID
* @param type the type
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching ct process, or null
if a matching ct process could not be found
*/
public static CTProcess fetchByC_T_Last(
long ctCollectionId, int type,
OrderByComparator orderByComparator) {
return getPersistence().fetchByC_T_Last(
ctCollectionId, type, orderByComparator);
}
/**
* Returns the ct processes before and after the current ct process in the ordered set where ctCollectionId = ? and type = ?.
*
* @param ctProcessId the primary key of the current ct process
* @param ctCollectionId the ct collection ID
* @param type the type
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the previous, current, and next ct process
* @throws NoSuchProcessException if a ct process with the primary key could not be found
*/
public static CTProcess[] findByC_T_PrevAndNext(
long ctProcessId, long ctCollectionId, int type,
OrderByComparator orderByComparator)
throws com.liferay.change.tracking.exception.NoSuchProcessException {
return getPersistence().findByC_T_PrevAndNext(
ctProcessId, ctCollectionId, type, orderByComparator);
}
/**
* Returns all the ct processes that the user has permission to view where ctCollectionId = ? and type = ?.
*
* @param ctCollectionId the ct collection ID
* @param type the type
* @return the matching ct processes that the user has permission to view
*/
public static List filterFindByC_T(
long ctCollectionId, int type) {
return getPersistence().filterFindByC_T(ctCollectionId, type);
}
/**
* Returns a range of all the ct processes that the user has permission to view where ctCollectionId = ? and type = ?.
*
*
* 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 CTProcessModelImpl
.
*
*
* @param ctCollectionId the ct collection ID
* @param type the type
* @param start the lower bound of the range of ct processes
* @param end the upper bound of the range of ct processes (not inclusive)
* @return the range of matching ct processes that the user has permission to view
*/
public static List filterFindByC_T(
long ctCollectionId, int type, int start, int end) {
return getPersistence().filterFindByC_T(
ctCollectionId, type, start, end);
}
/**
* Returns an ordered range of all the ct processes that the user has permissions to view where ctCollectionId = ? and type = ?.
*
*
* 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 CTProcessModelImpl
.
*
*
* @param ctCollectionId the ct collection ID
* @param type the type
* @param start the lower bound of the range of ct processes
* @param end the upper bound of the range of ct processes (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching ct processes that the user has permission to view
*/
public static List filterFindByC_T(
long ctCollectionId, int type, int start, int end,
OrderByComparator orderByComparator) {
return getPersistence().filterFindByC_T(
ctCollectionId, type, start, end, orderByComparator);
}
/**
* Returns the ct processes before and after the current ct process in the ordered set of ct processes that the user has permission to view where ctCollectionId = ? and type = ?.
*
* @param ctProcessId the primary key of the current ct process
* @param ctCollectionId the ct collection ID
* @param type the type
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the previous, current, and next ct process
* @throws NoSuchProcessException if a ct process with the primary key could not be found
*/
public static CTProcess[] filterFindByC_T_PrevAndNext(
long ctProcessId, long ctCollectionId, int type,
OrderByComparator orderByComparator)
throws com.liferay.change.tracking.exception.NoSuchProcessException {
return getPersistence().filterFindByC_T_PrevAndNext(
ctProcessId, ctCollectionId, type, orderByComparator);
}
/**
* Removes all the ct processes where ctCollectionId = ? and type = ? from the database.
*
* @param ctCollectionId the ct collection ID
* @param type the type
*/
public static void removeByC_T(long ctCollectionId, int type) {
getPersistence().removeByC_T(ctCollectionId, type);
}
/**
* Returns the number of ct processes where ctCollectionId = ? and type = ?.
*
* @param ctCollectionId the ct collection ID
* @param type the type
* @return the number of matching ct processes
*/
public static int countByC_T(long ctCollectionId, int type) {
return getPersistence().countByC_T(ctCollectionId, type);
}
/**
* Returns the number of ct processes that the user has permission to view where ctCollectionId = ? and type = ?.
*
* @param ctCollectionId the ct collection ID
* @param type the type
* @return the number of matching ct processes that the user has permission to view
*/
public static int filterCountByC_T(long ctCollectionId, int type) {
return getPersistence().filterCountByC_T(ctCollectionId, type);
}
/**
* Caches the ct process in the entity cache if it is enabled.
*
* @param ctProcess the ct process
*/
public static void cacheResult(CTProcess ctProcess) {
getPersistence().cacheResult(ctProcess);
}
/**
* Caches the ct processes in the entity cache if it is enabled.
*
* @param ctProcesses the ct processes
*/
public static void cacheResult(List ctProcesses) {
getPersistence().cacheResult(ctProcesses);
}
/**
* Creates a new ct process with the primary key. Does not add the ct process to the database.
*
* @param ctProcessId the primary key for the new ct process
* @return the new ct process
*/
public static CTProcess create(long ctProcessId) {
return getPersistence().create(ctProcessId);
}
/**
* Removes the ct process with the primary key from the database. Also notifies the appropriate model listeners.
*
* @param ctProcessId the primary key of the ct process
* @return the ct process that was removed
* @throws NoSuchProcessException if a ct process with the primary key could not be found
*/
public static CTProcess remove(long ctProcessId)
throws com.liferay.change.tracking.exception.NoSuchProcessException {
return getPersistence().remove(ctProcessId);
}
public static CTProcess updateImpl(CTProcess ctProcess) {
return getPersistence().updateImpl(ctProcess);
}
/**
* Returns the ct process with the primary key or throws a NoSuchProcessException
if it could not be found.
*
* @param ctProcessId the primary key of the ct process
* @return the ct process
* @throws NoSuchProcessException if a ct process with the primary key could not be found
*/
public static CTProcess findByPrimaryKey(long ctProcessId)
throws com.liferay.change.tracking.exception.NoSuchProcessException {
return getPersistence().findByPrimaryKey(ctProcessId);
}
/**
* Returns the ct process with the primary key or returns null
if it could not be found.
*
* @param ctProcessId the primary key of the ct process
* @return the ct process, or null
if a ct process with the primary key could not be found
*/
public static CTProcess fetchByPrimaryKey(long ctProcessId) {
return getPersistence().fetchByPrimaryKey(ctProcessId);
}
/**
* Returns all the ct processes.
*
* @return the ct processes
*/
public static List findAll() {
return getPersistence().findAll();
}
/**
* Returns a range of all the ct processes.
*
*
* 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 CTProcessModelImpl
.
*
*
* @param start the lower bound of the range of ct processes
* @param end the upper bound of the range of ct processes (not inclusive)
* @return the range of ct processes
*/
public static List findAll(int start, int end) {
return getPersistence().findAll(start, end);
}
/**
* Returns an ordered range of all the ct processes.
*
*
* 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 CTProcessModelImpl
.
*
*
* @param start the lower bound of the range of ct processes
* @param end the upper bound of the range of ct processes (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of ct processes
*/
public static List findAll(
int start, int end, OrderByComparator orderByComparator) {
return getPersistence().findAll(start, end, orderByComparator);
}
/**
* Returns an ordered range of all the ct processes.
*
*
* 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 CTProcessModelImpl
.
*
*
* @param start the lower bound of the range of ct processes
* @param end the upper bound of the range of ct processes (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 processes
*/
public static List findAll(
int start, int end, OrderByComparator orderByComparator,
boolean useFinderCache) {
return getPersistence().findAll(
start, end, orderByComparator, useFinderCache);
}
/**
* Removes all the ct processes from the database.
*/
public static void removeAll() {
getPersistence().removeAll();
}
/**
* Returns the number of ct processes.
*
* @return the number of ct processes
*/
public static int countAll() {
return getPersistence().countAll();
}
public static CTProcessPersistence getPersistence() {
return _persistence;
}
public static void setPersistence(CTProcessPersistence persistence) {
_persistence = persistence;
}
private static volatile CTProcessPersistence _persistence;
}