@ProviderType
public class ChangesetCollectionUtil
extends java.lang.Object
com.liferay.changeset.service.persistence.impl.ChangesetCollectionPersistenceImpl
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
ChangesetCollectionPersistence
,
com.liferay.changeset.service.persistence.impl.ChangesetCollectionPersistenceImpl
Constructor and Description |
---|
ChangesetCollectionUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(ChangesetCollection changesetCollection)
Caches the changeset collection in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<ChangesetCollection> changesetCollections)
Caches the changeset collections in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(ChangesetCollection changesetCollection) |
static int |
countAll()
Returns the number of changeset collections.
|
static int |
countByC_N(long companyId,
java.lang.String name)
Returns the number of changeset collections where companyId = ? and name = ?.
|
static int |
countByCompanyId(long companyId)
Returns the number of changeset collections where companyId = ?.
|
static int |
countByG_N(long groupId,
java.lang.String name)
Returns the number of changeset collections where groupId = ? and name = ?.
|
static int |
countByG_U(long groupId,
long userId)
Returns the number of changeset collections where groupId = ? and userId = ?.
|
static int |
countByGroupId(long groupId)
Returns the number of changeset collections where groupId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static ChangesetCollection |
create(long changesetCollectionId)
Creates a new changeset collection with the primary key.
|
static ChangesetCollection |
fetchByC_N_First(long companyId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
Returns the first changeset collection in the ordered set where companyId = ? and name = ?.
|
static ChangesetCollection |
fetchByC_N_Last(long companyId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
Returns the last changeset collection in the ordered set where companyId = ? and name = ?.
|
static ChangesetCollection |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
Returns the first changeset collection in the ordered set where companyId = ?.
|
static ChangesetCollection |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
Returns the last changeset collection in the ordered set where companyId = ?.
|
static ChangesetCollection |
fetchByG_N(long groupId,
java.lang.String name)
Returns the changeset collection where groupId = ? and name = ? or returns
null if it could not be found. |
static ChangesetCollection |
fetchByG_N(long groupId,
java.lang.String name,
boolean retrieveFromCache)
Returns the changeset collection where groupId = ? and name = ? or returns
null if it could not be found, optionally using the finder cache. |
static ChangesetCollection |
fetchByG_U_First(long groupId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
Returns the first changeset collection in the ordered set where groupId = ? and userId = ?.
|
static ChangesetCollection |
fetchByG_U_Last(long groupId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
Returns the last changeset collection in the ordered set where groupId = ? and userId = ?.
|
static ChangesetCollection |
fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
Returns the first changeset collection in the ordered set where groupId = ?.
|
static ChangesetCollection |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
Returns the last changeset collection in the ordered set where groupId = ?.
|
static ChangesetCollection |
fetchByPrimaryKey(long changesetCollectionId)
Returns the changeset collection with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,ChangesetCollection> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<ChangesetCollection> |
findAll()
Returns all the changeset collections.
|
static java.util.List<ChangesetCollection> |
findAll(int start,
int end)
Returns a range of all the changeset collections.
|
static java.util.List<ChangesetCollection> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
Returns an ordered range of all the changeset collections.
|
static java.util.List<ChangesetCollection> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the changeset collections.
|
static ChangesetCollection |
findByC_N_First(long companyId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
Returns the first changeset collection in the ordered set where companyId = ? and name = ?.
|
static ChangesetCollection |
findByC_N_Last(long companyId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
Returns the last changeset collection in the ordered set where companyId = ? and name = ?.
|
static ChangesetCollection[] |
findByC_N_PrevAndNext(long changesetCollectionId,
long companyId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
Returns the changeset collections before and after the current changeset collection in the ordered set where companyId = ? and name = ?.
|
static java.util.List<ChangesetCollection> |
findByC_N(long companyId,
java.lang.String name)
Returns all the changeset collections where companyId = ? and name = ?.
|
static java.util.List<ChangesetCollection> |
findByC_N(long companyId,
java.lang.String name,
int start,
int end)
Returns a range of all the changeset collections where companyId = ? and name = ?.
|
static java.util.List<ChangesetCollection> |
findByC_N(long companyId,
java.lang.String name,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
Returns an ordered range of all the changeset collections where companyId = ? and name = ?.
|
static java.util.List<ChangesetCollection> |
findByC_N(long companyId,
java.lang.String name,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the changeset collections where companyId = ? and name = ?.
|
static ChangesetCollection |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
Returns the first changeset collection in the ordered set where companyId = ?.
|
static ChangesetCollection |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
Returns the last changeset collection in the ordered set where companyId = ?.
|
static ChangesetCollection[] |
findByCompanyId_PrevAndNext(long changesetCollectionId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
Returns the changeset collections before and after the current changeset collection in the ordered set where companyId = ?.
|
static java.util.List<ChangesetCollection> |
findByCompanyId(long companyId)
Returns all the changeset collections where companyId = ?.
|
static java.util.List<ChangesetCollection> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the changeset collections where companyId = ?.
|
static java.util.List<ChangesetCollection> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
Returns an ordered range of all the changeset collections where companyId = ?.
|
static java.util.List<ChangesetCollection> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the changeset collections where companyId = ?.
|
static ChangesetCollection |
findByG_N(long groupId,
java.lang.String name)
Returns the changeset collection where groupId = ? and name = ? or throws a
NoSuchCollectionException if it could not be found. |
static ChangesetCollection |
findByG_U_First(long groupId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
Returns the first changeset collection in the ordered set where groupId = ? and userId = ?.
|
static ChangesetCollection |
findByG_U_Last(long groupId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
Returns the last changeset collection in the ordered set where groupId = ? and userId = ?.
|
static ChangesetCollection[] |
findByG_U_PrevAndNext(long changesetCollectionId,
long groupId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
Returns the changeset collections before and after the current changeset collection in the ordered set where groupId = ? and userId = ?.
|
static java.util.List<ChangesetCollection> |
findByG_U(long groupId,
long userId)
Returns all the changeset collections where groupId = ? and userId = ?.
|
static java.util.List<ChangesetCollection> |
findByG_U(long groupId,
long userId,
int start,
int end)
Returns a range of all the changeset collections where groupId = ? and userId = ?.
|
static java.util.List<ChangesetCollection> |
findByG_U(long groupId,
long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
Returns an ordered range of all the changeset collections where groupId = ? and userId = ?.
|
static java.util.List<ChangesetCollection> |
findByG_U(long groupId,
long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the changeset collections where groupId = ? and userId = ?.
|
static ChangesetCollection |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
Returns the first changeset collection in the ordered set where groupId = ?.
|
static ChangesetCollection |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
Returns the last changeset collection in the ordered set where groupId = ?.
|
static ChangesetCollection[] |
findByGroupId_PrevAndNext(long changesetCollectionId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
Returns the changeset collections before and after the current changeset collection in the ordered set where groupId = ?.
|
static java.util.List<ChangesetCollection> |
findByGroupId(long groupId)
Returns all the changeset collections where groupId = ?.
|
static java.util.List<ChangesetCollection> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the changeset collections where groupId = ?.
|
static java.util.List<ChangesetCollection> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
Returns an ordered range of all the changeset collections where groupId = ?.
|
static java.util.List<ChangesetCollection> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the changeset collections where groupId = ?.
|
static ChangesetCollection |
findByPrimaryKey(long changesetCollectionId)
Returns the changeset collection with the primary key or throws a
NoSuchCollectionException if it could not be found. |
static java.util.List<ChangesetCollection> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<ChangesetCollection> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<ChangesetCollection> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator) |
static ChangesetCollectionPersistence |
getPersistence() |
static ChangesetCollection |
remove(long changesetCollectionId)
Removes the changeset collection with the primary key from the database.
|
static void |
removeAll()
Removes all the changeset collections from the database.
|
static void |
removeByC_N(long companyId,
java.lang.String name)
Removes all the changeset collections where companyId = ? and name = ? from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the changeset collections where companyId = ? from the database.
|
static ChangesetCollection |
removeByG_N(long groupId,
java.lang.String name)
Removes the changeset collection where groupId = ? and name = ? from the database.
|
static void |
removeByG_U(long groupId,
long userId)
Removes all the changeset collections where groupId = ? and userId = ? from the database.
|
static void |
removeByGroupId(long groupId)
Removes all the changeset collections where groupId = ? from the database.
|
static ChangesetCollection |
update(ChangesetCollection changesetCollection) |
static ChangesetCollection |
update(ChangesetCollection changesetCollection,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static ChangesetCollection |
updateImpl(ChangesetCollection changesetCollection) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(ChangesetCollection changesetCollection)
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.List<ChangesetCollection> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<ChangesetCollection> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<ChangesetCollection> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static ChangesetCollection update(ChangesetCollection changesetCollection)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static ChangesetCollection update(ChangesetCollection changesetCollection, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<ChangesetCollection> findByGroupId(long groupId)
groupId
- the group IDpublic static java.util.List<ChangesetCollection> findByGroupId(long groupId, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from ChangesetCollectionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId
- the group IDstart
- the lower bound of the range of changeset collectionsend
- the upper bound of the range of changeset collections (not inclusive)public static java.util.List<ChangesetCollection> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from ChangesetCollectionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId
- the group IDstart
- the lower bound of the range of changeset collectionsend
- the upper bound of the range of changeset collections (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ChangesetCollection> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from ChangesetCollectionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId
- the group IDstart
- the lower bound of the range of changeset collectionsend
- the upper bound of the range of changeset collections (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static ChangesetCollection findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator) throws NoSuchCollectionException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCollectionException
- if a matching changeset collection could not be foundpublic static ChangesetCollection fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching changeset collection could not be foundpublic static ChangesetCollection findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator) throws NoSuchCollectionException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCollectionException
- if a matching changeset collection could not be foundpublic static ChangesetCollection fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching changeset collection could not be foundpublic static ChangesetCollection[] findByGroupId_PrevAndNext(long changesetCollectionId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator) throws NoSuchCollectionException
changesetCollectionId
- the primary key of the current changeset collectiongroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCollectionException
- if a changeset collection with the primary key could not be foundpublic static void removeByGroupId(long groupId)
groupId
- the group IDpublic static int countByGroupId(long groupId)
groupId
- the group IDpublic static java.util.List<ChangesetCollection> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<ChangesetCollection> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from ChangesetCollectionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDstart
- the lower bound of the range of changeset collectionsend
- the upper bound of the range of changeset collections (not inclusive)public static java.util.List<ChangesetCollection> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from ChangesetCollectionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDstart
- the lower bound of the range of changeset collectionsend
- the upper bound of the range of changeset collections (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ChangesetCollection> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from ChangesetCollectionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDstart
- the lower bound of the range of changeset collectionsend
- the upper bound of the range of changeset collections (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static ChangesetCollection findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator) throws NoSuchCollectionException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCollectionException
- if a matching changeset collection could not be foundpublic static ChangesetCollection fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching changeset collection could not be foundpublic static ChangesetCollection findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator) throws NoSuchCollectionException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCollectionException
- if a matching changeset collection could not be foundpublic static ChangesetCollection fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching changeset collection could not be foundpublic static ChangesetCollection[] findByCompanyId_PrevAndNext(long changesetCollectionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator) throws NoSuchCollectionException
changesetCollectionId
- the primary key of the current changeset collectioncompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCollectionException
- if a changeset collection 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<ChangesetCollection> findByG_U(long groupId, long userId)
groupId
- the group IDuserId
- the user IDpublic static java.util.List<ChangesetCollection> findByG_U(long groupId, long userId, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from ChangesetCollectionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId
- the group IDuserId
- the user IDstart
- the lower bound of the range of changeset collectionsend
- the upper bound of the range of changeset collections (not inclusive)public static java.util.List<ChangesetCollection> findByG_U(long groupId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from ChangesetCollectionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId
- the group IDuserId
- the user IDstart
- the lower bound of the range of changeset collectionsend
- the upper bound of the range of changeset collections (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ChangesetCollection> findByG_U(long groupId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from ChangesetCollectionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId
- the group IDuserId
- the user IDstart
- the lower bound of the range of changeset collectionsend
- the upper bound of the range of changeset collections (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static ChangesetCollection findByG_U_First(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator) throws NoSuchCollectionException
groupId
- the group IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCollectionException
- if a matching changeset collection could not be foundpublic static ChangesetCollection fetchByG_U_First(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
groupId
- the group IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching changeset collection could not be foundpublic static ChangesetCollection findByG_U_Last(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator) throws NoSuchCollectionException
groupId
- the group IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCollectionException
- if a matching changeset collection could not be foundpublic static ChangesetCollection fetchByG_U_Last(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
groupId
- the group IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching changeset collection could not be foundpublic static ChangesetCollection[] findByG_U_PrevAndNext(long changesetCollectionId, long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator) throws NoSuchCollectionException
changesetCollectionId
- the primary key of the current changeset collectiongroupId
- the group IDuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCollectionException
- if a changeset collection with the primary key could not be foundpublic static void removeByG_U(long groupId, long userId)
groupId
- the group IDuserId
- the user IDpublic static int countByG_U(long groupId, long userId)
groupId
- the group IDuserId
- the user IDpublic static ChangesetCollection findByG_N(long groupId, java.lang.String name) throws NoSuchCollectionException
NoSuchCollectionException
if it could not be found.groupId
- the group IDname
- the nameNoSuchCollectionException
- if a matching changeset collection could not be foundpublic static ChangesetCollection fetchByG_N(long groupId, java.lang.String name)
null
if it could not be found. Uses the finder cache.groupId
- the group IDname
- the namenull
if a matching changeset collection could not be foundpublic static ChangesetCollection fetchByG_N(long groupId, java.lang.String name, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.groupId
- the group IDname
- the nameretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching changeset collection could not be foundpublic static ChangesetCollection removeByG_N(long groupId, java.lang.String name) throws NoSuchCollectionException
groupId
- the group IDname
- the nameNoSuchCollectionException
public static int countByG_N(long groupId, java.lang.String name)
groupId
- the group IDname
- the namepublic static java.util.List<ChangesetCollection> findByC_N(long companyId, java.lang.String name)
companyId
- the company IDname
- the namepublic static java.util.List<ChangesetCollection> findByC_N(long companyId, java.lang.String name, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from ChangesetCollectionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDname
- the namestart
- the lower bound of the range of changeset collectionsend
- the upper bound of the range of changeset collections (not inclusive)public static java.util.List<ChangesetCollection> findByC_N(long companyId, java.lang.String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from ChangesetCollectionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDname
- the namestart
- the lower bound of the range of changeset collectionsend
- the upper bound of the range of changeset collections (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ChangesetCollection> findByC_N(long companyId, java.lang.String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from ChangesetCollectionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDname
- the namestart
- the lower bound of the range of changeset collectionsend
- the upper bound of the range of changeset collections (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static ChangesetCollection findByC_N_First(long companyId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator) throws NoSuchCollectionException
companyId
- the company IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCollectionException
- if a matching changeset collection could not be foundpublic static ChangesetCollection fetchByC_N_First(long companyId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
companyId
- the company IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching changeset collection could not be foundpublic static ChangesetCollection findByC_N_Last(long companyId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator) throws NoSuchCollectionException
companyId
- the company IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCollectionException
- if a matching changeset collection could not be foundpublic static ChangesetCollection fetchByC_N_Last(long companyId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
companyId
- the company IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching changeset collection could not be foundpublic static ChangesetCollection[] findByC_N_PrevAndNext(long changesetCollectionId, long companyId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator) throws NoSuchCollectionException
changesetCollectionId
- the primary key of the current changeset collectioncompanyId
- the company IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCollectionException
- if a changeset collection with the primary key could not be foundpublic static void removeByC_N(long companyId, java.lang.String name)
companyId
- the company IDname
- the namepublic static int countByC_N(long companyId, java.lang.String name)
companyId
- the company IDname
- the namepublic static void cacheResult(ChangesetCollection changesetCollection)
changesetCollection
- the changeset collectionpublic static void cacheResult(java.util.List<ChangesetCollection> changesetCollections)
changesetCollections
- the changeset collectionspublic static ChangesetCollection create(long changesetCollectionId)
changesetCollectionId
- the primary key for the new changeset collectionpublic static ChangesetCollection remove(long changesetCollectionId) throws NoSuchCollectionException
changesetCollectionId
- the primary key of the changeset collectionNoSuchCollectionException
- if a changeset collection with the primary key could not be foundpublic static ChangesetCollection updateImpl(ChangesetCollection changesetCollection)
public static ChangesetCollection findByPrimaryKey(long changesetCollectionId) throws NoSuchCollectionException
NoSuchCollectionException
if it could not be found.changesetCollectionId
- the primary key of the changeset collectionNoSuchCollectionException
- if a changeset collection with the primary key could not be foundpublic static ChangesetCollection fetchByPrimaryKey(long changesetCollectionId)
null
if it could not be found.changesetCollectionId
- the primary key of the changeset collectionnull
if a changeset collection with the primary key could not be foundpublic static java.util.Map<java.io.Serializable,ChangesetCollection> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
public static java.util.List<ChangesetCollection> findAll()
public static java.util.List<ChangesetCollection> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from ChangesetCollectionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of changeset collectionsend
- the upper bound of the range of changeset collections (not inclusive)public static java.util.List<ChangesetCollection> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from ChangesetCollectionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of changeset collectionsend
- the upper bound of the range of changeset collections (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ChangesetCollection> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from ChangesetCollectionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of changeset collectionsend
- the upper bound of the range of changeset collections (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static void removeAll()
public static int countAll()
public static ChangesetCollectionPersistence getPersistence()