Class ChangesetCollectionUtil

java.lang.Object
com.liferay.changeset.service.persistence.ChangesetCollectionUtil

public class ChangesetCollectionUtil extends Object
The persistence utility for the changeset collection service. This utility wraps 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

See Also:
Generated:
  • Constructor Details

    • ChangesetCollectionUtil

      public ChangesetCollectionUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
      • BasePersistence.clearCache()
    • clearCache

      public static void clearCache(ChangesetCollection changesetCollection)
      See Also:
      • BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
    • countWithDynamicQuery

      public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.countWithDynamicQuery(DynamicQuery)
    • fetchByPrimaryKeys

      public static Map<Serializable,ChangesetCollection> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

      public static List<ChangesetCollection> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery)
    • findWithDynamicQuery

      public static List<ChangesetCollection> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
    • findWithDynamicQuery

      public static List<ChangesetCollection> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
    • update

      public static ChangesetCollection update(ChangesetCollection changesetCollection)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
    • update

      public static ChangesetCollection update(ChangesetCollection changesetCollection, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByGroupId

      public static List<ChangesetCollection> findByGroupId(long groupId)
      Returns all the changeset collections where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the matching changeset collections
    • findByGroupId

      public static List<ChangesetCollection> findByGroupId(long groupId, int start, int end)
      Returns a range of all the changeset collections where groupId = ?.

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

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of changeset collections
      end - the upper bound of the range of changeset collections (not inclusive)
      Returns:
      the range of matching changeset collections
    • findByGroupId

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

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

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of changeset collections
      end - the upper bound of the range of changeset collections (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching changeset collections
    • findByGroupId

      public static List<ChangesetCollection> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the changeset collections where groupId = ?.

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

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of changeset collections
      end - the upper bound of the range of changeset collections (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching changeset collections
    • findByGroupId_First

      public static ChangesetCollection findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator) throws NoSuchCollectionException
      Returns the first changeset collection in the ordered set where groupId = ?.
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching changeset collection
      Throws:
      NoSuchCollectionException - if a matching changeset collection could not be found
      NoSuchCollectionException
    • fetchByGroupId_First

      public 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 = ?.
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching changeset collection, or null if a matching changeset collection could not be found
    • findByGroupId_Last

      public static ChangesetCollection findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator) throws NoSuchCollectionException
      Returns the last changeset collection in the ordered set where groupId = ?.
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching changeset collection
      Throws:
      NoSuchCollectionException - if a matching changeset collection could not be found
      NoSuchCollectionException
    • fetchByGroupId_Last

      public 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 = ?.
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching changeset collection, or null if a matching changeset collection could not be found
    • findByGroupId_PrevAndNext

      public static ChangesetCollection[] findByGroupId_PrevAndNext(long changesetCollectionId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator) throws NoSuchCollectionException
      Returns the changeset collections before and after the current changeset collection in the ordered set where groupId = ?.
      Parameters:
      changesetCollectionId - the primary key of the current changeset collection
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next changeset collection
      Throws:
      NoSuchCollectionException - if a changeset collection with the primary key could not be found
      NoSuchCollectionException
    • removeByGroupId

      public static void removeByGroupId(long groupId)
      Removes all the changeset collections where groupId = ? from the database.
      Parameters:
      groupId - the group ID
    • countByGroupId

      public static int countByGroupId(long groupId)
      Returns the number of changeset collections where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the number of matching changeset collections
    • findByCompanyId

      public static List<ChangesetCollection> findByCompanyId(long companyId)
      Returns all the changeset collections where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching changeset collections
    • findByCompanyId

      public static List<ChangesetCollection> findByCompanyId(long companyId, int start, int end)
      Returns a range of all the changeset collections where companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from ChangesetCollectionModelImpl.

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

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

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

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

      public static List<ChangesetCollection> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the changeset collections where companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from ChangesetCollectionModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of changeset collections
      end - the upper bound of the range of changeset collections (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching changeset collections
    • findByCompanyId_First

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

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

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

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

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

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

      public static int countByCompanyId(long companyId)
      Returns the number of changeset collections where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching changeset collections
    • findByG_U

      public static List<ChangesetCollection> findByG_U(long groupId, long userId)
      Returns all the changeset collections where groupId = ? and userId = ?.
      Parameters:
      groupId - the group ID
      userId - the user ID
      Returns:
      the matching changeset collections
    • findByG_U

      public static List<ChangesetCollection> findByG_U(long groupId, long userId, int start, int end)
      Returns a range of all the changeset collections where groupId = ? and userId = ?.

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

      Parameters:
      groupId - the group ID
      userId - the user ID
      start - the lower bound of the range of changeset collections
      end - the upper bound of the range of changeset collections (not inclusive)
      Returns:
      the range of matching changeset collections
    • findByG_U

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

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

      Parameters:
      groupId - the group ID
      userId - the user ID
      start - the lower bound of the range of changeset collections
      end - the upper bound of the range of changeset collections (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching changeset collections
    • findByG_U

      public static List<ChangesetCollection> findByG_U(long groupId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the changeset collections where groupId = ? and userId = ?.

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

      Parameters:
      groupId - the group ID
      userId - the user ID
      start - the lower bound of the range of changeset collections
      end - the upper bound of the range of changeset collections (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching changeset collections
    • findByG_U_First

      public static ChangesetCollection findByG_U_First(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator) throws NoSuchCollectionException
      Returns the first changeset collection in the ordered set where groupId = ? and userId = ?.
      Parameters:
      groupId - the group ID
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching changeset collection
      Throws:
      NoSuchCollectionException - if a matching changeset collection could not be found
      NoSuchCollectionException
    • fetchByG_U_First

      public 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 = ?.
      Parameters:
      groupId - the group ID
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching changeset collection, or null if a matching changeset collection could not be found
    • findByG_U_Last

      public static ChangesetCollection findByG_U_Last(long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator) throws NoSuchCollectionException
      Returns the last changeset collection in the ordered set where groupId = ? and userId = ?.
      Parameters:
      groupId - the group ID
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching changeset collection
      Throws:
      NoSuchCollectionException - if a matching changeset collection could not be found
      NoSuchCollectionException
    • fetchByG_U_Last

      public 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 = ?.
      Parameters:
      groupId - the group ID
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching changeset collection, or null if a matching changeset collection could not be found
    • findByG_U_PrevAndNext

      public static ChangesetCollection[] findByG_U_PrevAndNext(long changesetCollectionId, long groupId, long userId, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator) throws NoSuchCollectionException
      Returns the changeset collections before and after the current changeset collection in the ordered set where groupId = ? and userId = ?.
      Parameters:
      changesetCollectionId - the primary key of the current changeset collection
      groupId - the group ID
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next changeset collection
      Throws:
      NoSuchCollectionException - if a changeset collection with the primary key could not be found
      NoSuchCollectionException
    • removeByG_U

      public static void removeByG_U(long groupId, long userId)
      Removes all the changeset collections where groupId = ? and userId = ? from the database.
      Parameters:
      groupId - the group ID
      userId - the user ID
    • countByG_U

      public static int countByG_U(long groupId, long userId)
      Returns the number of changeset collections where groupId = ? and userId = ?.
      Parameters:
      groupId - the group ID
      userId - the user ID
      Returns:
      the number of matching changeset collections
    • findByG_N

      public static ChangesetCollection findByG_N(long groupId, String name) throws NoSuchCollectionException
      Returns the changeset collection where groupId = ? and name = ? or throws a NoSuchCollectionException if it could not be found.
      Parameters:
      groupId - the group ID
      name - the name
      Returns:
      the matching changeset collection
      Throws:
      NoSuchCollectionException - if a matching changeset collection could not be found
      NoSuchCollectionException
    • fetchByG_N

      public static ChangesetCollection fetchByG_N(long groupId, String name)
      Returns the changeset collection where groupId = ? and name = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      groupId - the group ID
      name - the name
      Returns:
      the matching changeset collection, or null if a matching changeset collection could not be found
    • fetchByG_N

      public static ChangesetCollection fetchByG_N(long groupId, String name, boolean useFinderCache)
      Returns the changeset collection where groupId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      groupId - the group ID
      name - the name
      useFinderCache - whether to use the finder cache
      Returns:
      the matching changeset collection, or null if a matching changeset collection could not be found
    • removeByG_N

      public static ChangesetCollection removeByG_N(long groupId, String name) throws NoSuchCollectionException
      Removes the changeset collection where groupId = ? and name = ? from the database.
      Parameters:
      groupId - the group ID
      name - the name
      Returns:
      the changeset collection that was removed
      Throws:
      NoSuchCollectionException
    • countByG_N

      public static int countByG_N(long groupId, String name)
      Returns the number of changeset collections where groupId = ? and name = ?.
      Parameters:
      groupId - the group ID
      name - the name
      Returns:
      the number of matching changeset collections
    • findByC_N

      public static List<ChangesetCollection> findByC_N(long companyId, String name)
      Returns all the changeset collections where companyId = ? and name = ?.
      Parameters:
      companyId - the company ID
      name - the name
      Returns:
      the matching changeset collections
    • findByC_N

      public static List<ChangesetCollection> findByC_N(long companyId, String name, int start, int end)
      Returns a range of all the changeset collections where companyId = ? and name = ?.

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

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

      public static List<ChangesetCollection> findByC_N(long companyId, 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 = ?.

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

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

      public static List<ChangesetCollection> findByC_N(long companyId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the changeset collections where companyId = ? and name = ?.

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

      Parameters:
      companyId - the company ID
      name - the name
      start - the lower bound of the range of changeset collections
      end - the upper bound of the range of changeset collections (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching changeset collections
    • findByC_N_First

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

      public static ChangesetCollection fetchByC_N_First(long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
      Returns the first changeset collection in the ordered set where companyId = ? and name = ?.
      Parameters:
      companyId - the company ID
      name - the name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching changeset collection, or null if a matching changeset collection could not be found
    • findByC_N_Last

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

      public static ChangesetCollection fetchByC_N_Last(long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator)
      Returns the last changeset collection in the ordered set where companyId = ? and name = ?.
      Parameters:
      companyId - the company ID
      name - the name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching changeset collection, or null if a matching changeset collection could not be found
    • findByC_N_PrevAndNext

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

      public static void removeByC_N(long companyId, String name)
      Removes all the changeset collections where companyId = ? and name = ? from the database.
      Parameters:
      companyId - the company ID
      name - the name
    • countByC_N

      public static int countByC_N(long companyId, String name)
      Returns the number of changeset collections where companyId = ? and name = ?.
      Parameters:
      companyId - the company ID
      name - the name
      Returns:
      the number of matching changeset collections
    • cacheResult

      public static void cacheResult(ChangesetCollection changesetCollection)
      Caches the changeset collection in the entity cache if it is enabled.
      Parameters:
      changesetCollection - the changeset collection
    • cacheResult

      public static void cacheResult(List<ChangesetCollection> changesetCollections)
      Caches the changeset collections in the entity cache if it is enabled.
      Parameters:
      changesetCollections - the changeset collections
    • create

      public static ChangesetCollection create(long changesetCollectionId)
      Creates a new changeset collection with the primary key. Does not add the changeset collection to the database.
      Parameters:
      changesetCollectionId - the primary key for the new changeset collection
      Returns:
      the new changeset collection
    • remove

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

      public static ChangesetCollection updateImpl(ChangesetCollection changesetCollection)
    • findByPrimaryKey

      public static ChangesetCollection findByPrimaryKey(long changesetCollectionId) throws NoSuchCollectionException
      Returns the changeset collection with the primary key or throws a NoSuchCollectionException if it could not be found.
      Parameters:
      changesetCollectionId - the primary key of the changeset collection
      Returns:
      the changeset collection
      Throws:
      NoSuchCollectionException - if a changeset collection with the primary key could not be found
      NoSuchCollectionException
    • fetchByPrimaryKey

      public static ChangesetCollection fetchByPrimaryKey(long changesetCollectionId)
      Returns the changeset collection with the primary key or returns null if it could not be found.
      Parameters:
      changesetCollectionId - the primary key of the changeset collection
      Returns:
      the changeset collection, or null if a changeset collection with the primary key could not be found
    • findAll

      public static List<ChangesetCollection> findAll()
      Returns all the changeset collections.
      Returns:
      the changeset collections
    • findAll

      public static List<ChangesetCollection> findAll(int start, int end)
      Returns a range of all the changeset collections.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from ChangesetCollectionModelImpl.

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

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

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from ChangesetCollectionModelImpl.

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

      public static List<ChangesetCollection> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ChangesetCollection> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the changeset collections.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from ChangesetCollectionModelImpl.

      Parameters:
      start - the lower bound of the range of changeset collections
      end - the upper bound of the range of changeset collections (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of changeset collections
    • removeAll

      public static void removeAll()
      Removes all the changeset collections from the database.
    • countAll

      public static int countAll()
      Returns the number of changeset collections.
      Returns:
      the number of changeset collections
    • getPersistence

      public static ChangesetCollectionPersistence getPersistence()
    • setPersistence

      public static void setPersistence(ChangesetCollectionPersistence persistence)