public class CTProcessUtil
extends java.lang.Object
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
CTProcessPersistence
Constructor and Description |
---|
CTProcessUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CTProcess ctProcess)
Caches the ct process in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CTProcess> ctProcesses)
Caches the ct processes in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CTProcess ctProcess) |
static int |
countAll()
Returns the number of ct processes.
|
static int |
countByCompanyId(long companyId)
Returns the number of ct processes where companyId = ?.
|
static int |
countByCtCollectionId(long ctCollectionId)
Returns the number of ct processes where ctCollectionId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CTProcess |
create(long ctProcessId)
Creates a new ct process with the primary key.
|
static CTProcess |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
Returns the first ct process in the ordered set where companyId = ?.
|
static CTProcess |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
Returns the last ct process in the ordered set where companyId = ?.
|
static CTProcess |
fetchByCtCollectionId_First(long ctCollectionId,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
Returns the first ct process in the ordered set where ctCollectionId = ?.
|
static CTProcess |
fetchByCtCollectionId_Last(long ctCollectionId,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
Returns the last ct process in the ordered set where ctCollectionId = ?.
|
static CTProcess |
fetchByPrimaryKey(long ctProcessId)
Returns the ct process with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CTProcess> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<CTProcess> |
findAll()
Returns all the ct processes.
|
static java.util.List<CTProcess> |
findAll(int start,
int end)
Returns a range of all the ct processes.
|
static java.util.List<CTProcess> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
Returns an ordered range of all the ct processes.
|
static java.util.List<CTProcess> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the ct processes.
|
static CTProcess |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
Returns the first ct process in the ordered set where companyId = ?.
|
static CTProcess |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
Returns the last ct process in the ordered set where companyId = ?.
|
static CTProcess[] |
findByCompanyId_PrevAndNext(long ctProcessId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
Returns the ct processes before and after the current ct process in the ordered set where companyId = ?.
|
static java.util.List<CTProcess> |
findByCompanyId(long companyId)
Returns all the ct processes where companyId = ?.
|
static java.util.List<CTProcess> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the ct processes where companyId = ?.
|
static java.util.List<CTProcess> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
Returns an ordered range of all the ct processes where companyId = ?.
|
static java.util.List<CTProcess> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the ct processes where companyId = ?.
|
static CTProcess |
findByCtCollectionId_First(long ctCollectionId,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
Returns the first ct process in the ordered set where ctCollectionId = ?.
|
static CTProcess |
findByCtCollectionId_Last(long ctCollectionId,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
Returns the last ct process in the ordered set where ctCollectionId = ?.
|
static CTProcess[] |
findByCtCollectionId_PrevAndNext(long ctProcessId,
long ctCollectionId,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
Returns the ct processes before and after the current ct process in the ordered set where ctCollectionId = ?.
|
static java.util.List<CTProcess> |
findByCtCollectionId(long ctCollectionId)
Returns all the ct processes where ctCollectionId = ?.
|
static java.util.List<CTProcess> |
findByCtCollectionId(long ctCollectionId,
int start,
int end)
Returns a range of all the ct processes where ctCollectionId = ?.
|
static java.util.List<CTProcess> |
findByCtCollectionId(long ctCollectionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
Returns an ordered range of all the ct processes where ctCollectionId = ?.
|
static java.util.List<CTProcess> |
findByCtCollectionId(long ctCollectionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the ct processes where ctCollectionId = ?.
|
static CTProcess |
findByPrimaryKey(long ctProcessId)
Returns the ct process with the primary key or throws a
NoSuchProcessException if it could not be found. |
static java.util.List<CTProcess> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CTProcess> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CTProcess> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator) |
static CTProcessPersistence |
getPersistence() |
static CTProcess |
remove(long ctProcessId)
Removes the ct process with the primary key from the database.
|
static void |
removeAll()
Removes all the ct processes from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the ct processes where companyId = ? from the database.
|
static void |
removeByCtCollectionId(long ctCollectionId)
Removes all the ct processes where ctCollectionId = ? from the database.
|
static CTProcess |
update(CTProcess ctProcess) |
static CTProcess |
update(CTProcess ctProcess,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CTProcess |
updateImpl(CTProcess ctProcess) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CTProcess ctProcess)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,CTProcess> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CTProcess> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CTProcess> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CTProcess> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CTProcess update(CTProcess ctProcess)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CTProcess update(CTProcess ctProcess, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CTProcess> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CTProcess> findByCompanyId(long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CTProcessModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of ct processesend
- the upper bound of the range of ct processes (not inclusive)public static java.util.List<CTProcess> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CTProcessModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of ct processesend
- the upper bound of the range of ct processes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CTProcess> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CTProcessModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of ct processesend
- the upper bound of the range of ct processes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CTProcess findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator) throws NoSuchProcessException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchProcessException
- if a matching ct process could not be foundpublic static CTProcess fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct process could not be foundpublic static CTProcess findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator) throws NoSuchProcessException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchProcessException
- if a matching ct process could not be foundpublic static CTProcess fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct process could not be foundpublic static CTProcess[] findByCompanyId_PrevAndNext(long ctProcessId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator) throws NoSuchProcessException
ctProcessId
- the primary key of the current ct processcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchProcessException
- if a ct process with the primary key could not be foundpublic static void removeByCompanyId(long companyId)
companyId
- the company IDpublic static int countByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CTProcess> findByCtCollectionId(long ctCollectionId)
ctCollectionId
- the ct collection IDpublic static java.util.List<CTProcess> findByCtCollectionId(long ctCollectionId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CTProcessModelImpl
.
ctCollectionId
- the ct collection IDstart
- the lower bound of the range of ct processesend
- the upper bound of the range of ct processes (not inclusive)public static java.util.List<CTProcess> findByCtCollectionId(long ctCollectionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CTProcessModelImpl
.
ctCollectionId
- the ct collection IDstart
- the lower bound of the range of ct processesend
- the upper bound of the range of ct processes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CTProcess> findByCtCollectionId(long ctCollectionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CTProcessModelImpl
.
ctCollectionId
- the ct collection IDstart
- the lower bound of the range of ct processesend
- the upper bound of the range of ct processes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CTProcess findByCtCollectionId_First(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator) throws NoSuchProcessException
ctCollectionId
- the ct collection IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchProcessException
- if a matching ct process could not be foundpublic static CTProcess fetchByCtCollectionId_First(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
ctCollectionId
- the ct collection IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct process could not be foundpublic static CTProcess findByCtCollectionId_Last(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator) throws NoSuchProcessException
ctCollectionId
- the ct collection IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchProcessException
- if a matching ct process could not be foundpublic static CTProcess fetchByCtCollectionId_Last(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
ctCollectionId
- the ct collection IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct process could not be foundpublic static CTProcess[] findByCtCollectionId_PrevAndNext(long ctProcessId, long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator) throws NoSuchProcessException
ctProcessId
- the primary key of the current ct processctCollectionId
- the ct collection IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchProcessException
- if a ct process with the primary key could not be foundpublic static void removeByCtCollectionId(long ctCollectionId)
ctCollectionId
- the ct collection IDpublic static int countByCtCollectionId(long ctCollectionId)
ctCollectionId
- the ct collection IDpublic static void cacheResult(CTProcess ctProcess)
ctProcess
- the ct processpublic static void cacheResult(java.util.List<CTProcess> ctProcesses)
ctProcesses
- the ct processespublic static CTProcess create(long ctProcessId)
ctProcessId
- the primary key for the new ct processpublic static CTProcess remove(long ctProcessId) throws NoSuchProcessException
ctProcessId
- the primary key of the ct processNoSuchProcessException
- if a ct process with the primary key could not be foundpublic static CTProcess findByPrimaryKey(long ctProcessId) throws NoSuchProcessException
NoSuchProcessException
if it could not be found.ctProcessId
- the primary key of the ct processNoSuchProcessException
- if a ct process with the primary key could not be foundpublic static CTProcess fetchByPrimaryKey(long ctProcessId)
null
if it could not be found.ctProcessId
- the primary key of the ct processnull
if a ct process with the primary key could not be foundpublic static java.util.List<CTProcess> findAll()
public static java.util.List<CTProcess> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CTProcessModelImpl
.
start
- the lower bound of the range of ct processesend
- the upper bound of the range of ct processes (not inclusive)public static java.util.List<CTProcess> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CTProcessModelImpl
.
start
- the lower bound of the range of ct processesend
- the upper bound of the range of ct processes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CTProcess> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CTProcessModelImpl
.
start
- the lower bound of the range of ct processesend
- the upper bound of the range of ct processes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static CTProcessPersistence getPersistence()