Class FragmentCollectionUtil

java.lang.Object
com.liferay.fragment.service.persistence.FragmentCollectionUtil

public class FragmentCollectionUtil extends Object
The persistence utility for the fragment collection service. This utility wraps com.liferay.fragment.service.persistence.impl.FragmentCollectionPersistenceImpl 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

    • FragmentCollectionUtil

      public FragmentCollectionUtil()
  • Method Details

    • clearCache

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

      public static void clearCache(FragmentCollection fragmentCollection)
      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,FragmentCollection> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

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

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

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

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

      public static FragmentCollection update(FragmentCollection fragmentCollection, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByUuid

      public static List<FragmentCollection> findByUuid(String uuid)
      Returns all the fragment collections where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching fragment collections
    • findByUuid

      public static List<FragmentCollection> findByUuid(String uuid, int start, int end)
      Returns a range of all the fragment collections where uuid = ?.

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

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of fragment collections
      end - the upper bound of the range of fragment collections (not inclusive)
      Returns:
      the range of matching fragment collections
    • findByUuid

      public static List<FragmentCollection> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<FragmentCollection> orderByComparator)
      Returns an ordered range of all the fragment collections where uuid = ?.

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

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

      public static List<FragmentCollection> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<FragmentCollection> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the fragment collections where uuid = ?.

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

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of fragment collections
      end - the upper bound of the range of fragment 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 fragment collections
    • findByUuid_First

      public static FragmentCollection findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<FragmentCollection> orderByComparator) throws NoSuchCollectionException
      Returns the first fragment collection in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching fragment collection
      Throws:
      NoSuchCollectionException - if a matching fragment collection could not be found
      NoSuchCollectionException
    • fetchByUuid_First

      public static FragmentCollection fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<FragmentCollection> orderByComparator)
      Returns the first fragment collection in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching fragment collection, or null if a matching fragment collection could not be found
    • findByUuid_Last

      public static FragmentCollection findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<FragmentCollection> orderByComparator) throws NoSuchCollectionException
      Returns the last fragment collection in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching fragment collection
      Throws:
      NoSuchCollectionException - if a matching fragment collection could not be found
      NoSuchCollectionException
    • fetchByUuid_Last

      public static FragmentCollection fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<FragmentCollection> orderByComparator)
      Returns the last fragment collection in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching fragment collection, or null if a matching fragment collection could not be found
    • findByUuid_PrevAndNext

      public static FragmentCollection[] findByUuid_PrevAndNext(long fragmentCollectionId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<FragmentCollection> orderByComparator) throws NoSuchCollectionException
      Returns the fragment collections before and after the current fragment collection in the ordered set where uuid = ?.
      Parameters:
      fragmentCollectionId - the primary key of the current fragment collection
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next fragment collection
      Throws:
      NoSuchCollectionException - if a fragment collection with the primary key could not be found
      NoSuchCollectionException
    • removeByUuid

      public static void removeByUuid(String uuid)
      Removes all the fragment collections where uuid = ? from the database.
      Parameters:
      uuid - the uuid
    • countByUuid

      public static int countByUuid(String uuid)
      Returns the number of fragment collections where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching fragment collections
    • findByUUID_G

      public static FragmentCollection findByUUID_G(String uuid, long groupId) throws NoSuchCollectionException
      Returns the fragment collection where uuid = ? and groupId = ? or throws a NoSuchCollectionException if it could not be found.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching fragment collection
      Throws:
      NoSuchCollectionException - if a matching fragment collection could not be found
      NoSuchCollectionException
    • fetchByUUID_G

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

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

      public static FragmentCollection removeByUUID_G(String uuid, long groupId) throws NoSuchCollectionException
      Removes the fragment collection where uuid = ? and groupId = ? from the database.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the fragment collection that was removed
      Throws:
      NoSuchCollectionException
    • countByUUID_G

      public static int countByUUID_G(String uuid, long groupId)
      Returns the number of fragment collections where uuid = ? and groupId = ?.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the number of matching fragment collections
    • findByUuid_C

      public static List<FragmentCollection> findByUuid_C(String uuid, long companyId)
      Returns all the fragment collections where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching fragment collections
    • findByUuid_C

      public static List<FragmentCollection> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the fragment collections where uuid = ? and companyId = ?.

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

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

      public static List<FragmentCollection> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<FragmentCollection> orderByComparator)
      Returns an ordered range of all the fragment collections where uuid = ? and companyId = ?.

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

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

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

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

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of fragment collections
      end - the upper bound of the range of fragment 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 fragment collections
    • findByUuid_C_First

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

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

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

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

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

      public static void removeByUuid_C(String uuid, long companyId)
      Removes all the fragment collections where uuid = ? and companyId = ? from the database.
      Parameters:
      uuid - the uuid
      companyId - the company ID
    • countByUuid_C

      public static int countByUuid_C(String uuid, long companyId)
      Returns the number of fragment collections where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching fragment collections
    • findByGroupId

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

      public static List<FragmentCollection> findByGroupId(long groupId, int start, int end)
      Returns a range of all the fragment 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 FragmentCollectionModelImpl.

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

      public static List<FragmentCollection> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<FragmentCollection> orderByComparator)
      Returns an ordered range of all the fragment 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 FragmentCollectionModelImpl.

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

      public static List<FragmentCollection> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<FragmentCollection> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the fragment 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 FragmentCollectionModelImpl.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of fragment collections
      end - the upper bound of the range of fragment 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 fragment collections
    • findByGroupId_First

      public static FragmentCollection findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<FragmentCollection> orderByComparator) throws NoSuchCollectionException
      Returns the first fragment 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 fragment collection
      Throws:
      NoSuchCollectionException - if a matching fragment collection could not be found
      NoSuchCollectionException
    • fetchByGroupId_First

      public static FragmentCollection fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<FragmentCollection> orderByComparator)
      Returns the first fragment 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 fragment collection, or null if a matching fragment collection could not be found
    • findByGroupId_Last

      public static FragmentCollection findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<FragmentCollection> orderByComparator) throws NoSuchCollectionException
      Returns the last fragment 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 fragment collection
      Throws:
      NoSuchCollectionException - if a matching fragment collection could not be found
      NoSuchCollectionException
    • fetchByGroupId_Last

      public static FragmentCollection fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<FragmentCollection> orderByComparator)
      Returns the last fragment 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 fragment collection, or null if a matching fragment collection could not be found
    • findByGroupId_PrevAndNext

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

      public static List<FragmentCollection> findByGroupId(long[] groupIds)
      Returns all the fragment collections where groupId = any ?.

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

      Parameters:
      groupIds - the group IDs
      Returns:
      the matching fragment collections
    • findByGroupId

      public static List<FragmentCollection> findByGroupId(long[] groupIds, int start, int end)
      Returns a range of all the fragment collections where groupId = any ?.

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

      Parameters:
      groupIds - the group IDs
      start - the lower bound of the range of fragment collections
      end - the upper bound of the range of fragment collections (not inclusive)
      Returns:
      the range of matching fragment collections
    • findByGroupId

      public static List<FragmentCollection> findByGroupId(long[] groupIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<FragmentCollection> orderByComparator)
      Returns an ordered range of all the fragment collections where groupId = any ?.

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

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

      public static List<FragmentCollection> findByGroupId(long[] groupIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<FragmentCollection> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the fragment collections where groupId = ?, optionally using the finder cache.

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

      Parameters:
      groupIds - the group IDs
      start - the lower bound of the range of fragment collections
      end - the upper bound of the range of fragment 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 fragment collections
    • removeByGroupId

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

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

      public static int countByGroupId(long[] groupIds)
      Returns the number of fragment collections where groupId = any ?.
      Parameters:
      groupIds - the group IDs
      Returns:
      the number of matching fragment collections
    • findByG_FCK

      public static FragmentCollection findByG_FCK(long groupId, String fragmentCollectionKey) throws NoSuchCollectionException
      Returns the fragment collection where groupId = ? and fragmentCollectionKey = ? or throws a NoSuchCollectionException if it could not be found.
      Parameters:
      groupId - the group ID
      fragmentCollectionKey - the fragment collection key
      Returns:
      the matching fragment collection
      Throws:
      NoSuchCollectionException - if a matching fragment collection could not be found
      NoSuchCollectionException
    • fetchByG_FCK

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

      public static FragmentCollection fetchByG_FCK(long groupId, String fragmentCollectionKey, boolean useFinderCache)
      Returns the fragment collection where groupId = ? and fragmentCollectionKey = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      groupId - the group ID
      fragmentCollectionKey - the fragment collection key
      useFinderCache - whether to use the finder cache
      Returns:
      the matching fragment collection, or null if a matching fragment collection could not be found
    • removeByG_FCK

      public static FragmentCollection removeByG_FCK(long groupId, String fragmentCollectionKey) throws NoSuchCollectionException
      Removes the fragment collection where groupId = ? and fragmentCollectionKey = ? from the database.
      Parameters:
      groupId - the group ID
      fragmentCollectionKey - the fragment collection key
      Returns:
      the fragment collection that was removed
      Throws:
      NoSuchCollectionException
    • countByG_FCK

      public static int countByG_FCK(long groupId, String fragmentCollectionKey)
      Returns the number of fragment collections where groupId = ? and fragmentCollectionKey = ?.
      Parameters:
      groupId - the group ID
      fragmentCollectionKey - the fragment collection key
      Returns:
      the number of matching fragment collections
    • findByG_LikeN

      public static List<FragmentCollection> findByG_LikeN(long groupId, String name)
      Returns all the fragment collections where groupId = ? and name LIKE ?.
      Parameters:
      groupId - the group ID
      name - the name
      Returns:
      the matching fragment collections
    • findByG_LikeN

      public static List<FragmentCollection> findByG_LikeN(long groupId, String name, int start, int end)
      Returns a range of all the fragment collections where groupId = ? and name LIKE ?.

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

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

      public static List<FragmentCollection> findByG_LikeN(long groupId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<FragmentCollection> orderByComparator)
      Returns an ordered range of all the fragment collections where groupId = ? and name LIKE ?.

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

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

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

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

      Parameters:
      groupId - the group ID
      name - the name
      start - the lower bound of the range of fragment collections
      end - the upper bound of the range of fragment 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 fragment collections
    • findByG_LikeN_First

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

      public static FragmentCollection fetchByG_LikeN_First(long groupId, String name, com.liferay.portal.kernel.util.OrderByComparator<FragmentCollection> orderByComparator)
      Returns the first fragment collection in the ordered set where groupId = ? and name LIKE ?.
      Parameters:
      groupId - the group ID
      name - the name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching fragment collection, or null if a matching fragment collection could not be found
    • findByG_LikeN_Last

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

      public static FragmentCollection fetchByG_LikeN_Last(long groupId, String name, com.liferay.portal.kernel.util.OrderByComparator<FragmentCollection> orderByComparator)
      Returns the last fragment collection in the ordered set where groupId = ? and name LIKE ?.
      Parameters:
      groupId - the group ID
      name - the name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching fragment collection, or null if a matching fragment collection could not be found
    • findByG_LikeN_PrevAndNext

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

      public static List<FragmentCollection> findByG_LikeN(long[] groupIds, String name)
      Returns all the fragment collections where groupId = any ? and name LIKE ?.

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

      Parameters:
      groupIds - the group IDs
      name - the name
      Returns:
      the matching fragment collections
    • findByG_LikeN

      public static List<FragmentCollection> findByG_LikeN(long[] groupIds, String name, int start, int end)
      Returns a range of all the fragment collections where groupId = any ? and name LIKE ?.

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

      Parameters:
      groupIds - the group IDs
      name - the name
      start - the lower bound of the range of fragment collections
      end - the upper bound of the range of fragment collections (not inclusive)
      Returns:
      the range of matching fragment collections
    • findByG_LikeN

      public static List<FragmentCollection> findByG_LikeN(long[] groupIds, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<FragmentCollection> orderByComparator)
      Returns an ordered range of all the fragment collections where groupId = any ? and name LIKE ?.

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

      Parameters:
      groupIds - the group IDs
      name - the name
      start - the lower bound of the range of fragment collections
      end - the upper bound of the range of fragment collections (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching fragment collections
    • findByG_LikeN

      public static List<FragmentCollection> findByG_LikeN(long[] groupIds, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<FragmentCollection> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the fragment collections where groupId = ? and name LIKE ?, optionally using the finder cache.

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

      Parameters:
      groupIds - the group IDs
      name - the name
      start - the lower bound of the range of fragment collections
      end - the upper bound of the range of fragment 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 fragment collections
    • removeByG_LikeN

      public static void removeByG_LikeN(long groupId, String name)
      Removes all the fragment collections where groupId = ? and name LIKE ? from the database.
      Parameters:
      groupId - the group ID
      name - the name
    • countByG_LikeN

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

      public static int countByG_LikeN(long[] groupIds, String name)
      Returns the number of fragment collections where groupId = any ? and name LIKE ?.
      Parameters:
      groupIds - the group IDs
      name - the name
      Returns:
      the number of matching fragment collections
    • findByERC_G

      public static FragmentCollection findByERC_G(String externalReferenceCode, long groupId) throws NoSuchCollectionException
      Returns the fragment collection where externalReferenceCode = ? and groupId = ? or throws a NoSuchCollectionException if it could not be found.
      Parameters:
      externalReferenceCode - the external reference code
      groupId - the group ID
      Returns:
      the matching fragment collection
      Throws:
      NoSuchCollectionException - if a matching fragment collection could not be found
      NoSuchCollectionException
    • fetchByERC_G

      public static FragmentCollection fetchByERC_G(String externalReferenceCode, long groupId)
      Returns the fragment collection where externalReferenceCode = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      groupId - the group ID
      Returns:
      the matching fragment collection, or null if a matching fragment collection could not be found
    • fetchByERC_G

      public static FragmentCollection fetchByERC_G(String externalReferenceCode, long groupId, boolean useFinderCache)
      Returns the fragment collection where externalReferenceCode = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      groupId - the group ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching fragment collection, or null if a matching fragment collection could not be found
    • removeByERC_G

      public static FragmentCollection removeByERC_G(String externalReferenceCode, long groupId) throws NoSuchCollectionException
      Removes the fragment collection where externalReferenceCode = ? and groupId = ? from the database.
      Parameters:
      externalReferenceCode - the external reference code
      groupId - the group ID
      Returns:
      the fragment collection that was removed
      Throws:
      NoSuchCollectionException
    • countByERC_G

      public static int countByERC_G(String externalReferenceCode, long groupId)
      Returns the number of fragment collections where externalReferenceCode = ? and groupId = ?.
      Parameters:
      externalReferenceCode - the external reference code
      groupId - the group ID
      Returns:
      the number of matching fragment collections
    • cacheResult

      public static void cacheResult(FragmentCollection fragmentCollection)
      Caches the fragment collection in the entity cache if it is enabled.
      Parameters:
      fragmentCollection - the fragment collection
    • cacheResult

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

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

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

      public static FragmentCollection updateImpl(FragmentCollection fragmentCollection)
    • findByPrimaryKey

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

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

      public static List<FragmentCollection> findAll()
      Returns all the fragment collections.
      Returns:
      the fragment collections
    • findAll

      public static List<FragmentCollection> findAll(int start, int end)
      Returns a range of all the fragment 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 FragmentCollectionModelImpl.

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

      public static List<FragmentCollection> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<FragmentCollection> orderByComparator)
      Returns an ordered range of all the fragment 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 FragmentCollectionModelImpl.

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

      public static List<FragmentCollection> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<FragmentCollection> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the fragment 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 FragmentCollectionModelImpl.

      Parameters:
      start - the lower bound of the range of fragment collections
      end - the upper bound of the range of fragment 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 fragment collections
    • removeAll

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

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

      public static FragmentCollectionPersistence getPersistence()
    • setPersistence

      public static void setPersistence(FragmentCollectionPersistence persistence)