Class CPDefinitionOptionValueRelUtil

java.lang.Object
com.liferay.commerce.product.service.persistence.CPDefinitionOptionValueRelUtil

public class CPDefinitionOptionValueRelUtil extends Object
The persistence utility for the cp definition option value rel service. This utility wraps com.liferay.commerce.product.service.persistence.impl.CPDefinitionOptionValueRelPersistenceImpl 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

    • CPDefinitionOptionValueRelUtil

      public CPDefinitionOptionValueRelUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

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

      public static List<CPDefinitionOptionValueRel> findByUuid(String uuid)
      Returns all the cp definition option value rels where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching cp definition option value rels
    • findByUuid

      public static List<CPDefinitionOptionValueRel> findByUuid(String uuid, int start, int end)
      Returns a range of all the cp definition option value rels 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 CPDefinitionOptionValueRelModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of cp definition option value rels
      end - the upper bound of the range of cp definition option value rels (not inclusive)
      Returns:
      the range of matching cp definition option value rels
    • findByUuid

      public static List<CPDefinitionOptionValueRel> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator)
      Returns an ordered range of all the cp definition option value rels 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 CPDefinitionOptionValueRelModelImpl.

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

      public static List<CPDefinitionOptionValueRel> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cp definition option value rels 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 CPDefinitionOptionValueRelModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of cp definition option value rels
      end - the upper bound of the range of cp definition option value rels (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 cp definition option value rels
    • findByUuid_First

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

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

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

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

      public static CPDefinitionOptionValueRel[] findByUuid_PrevAndNext(long CPDefinitionOptionValueRelId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator) throws NoSuchCPDefinitionOptionValueRelException
      Returns the cp definition option value rels before and after the current cp definition option value rel in the ordered set where uuid = ?.
      Parameters:
      CPDefinitionOptionValueRelId - the primary key of the current cp definition option value rel
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp definition option value rel
      Throws:
      NoSuchCPDefinitionOptionValueRelException - if a cp definition option value rel with the primary key could not be found
      NoSuchCPDefinitionOptionValueRelException
    • removeByUuid

      public static void removeByUuid(String uuid)
      Removes all the cp definition option value rels where uuid = ? from the database.
      Parameters:
      uuid - the uuid
    • countByUuid

      public static int countByUuid(String uuid)
      Returns the number of cp definition option value rels where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching cp definition option value rels
    • findByUUID_G

      public static CPDefinitionOptionValueRel findByUUID_G(String uuid, long groupId) throws NoSuchCPDefinitionOptionValueRelException
      Returns the cp definition option value rel where uuid = ? and groupId = ? or throws a NoSuchCPDefinitionOptionValueRelException if it could not be found.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching cp definition option value rel
      Throws:
      NoSuchCPDefinitionOptionValueRelException - if a matching cp definition option value rel could not be found
      NoSuchCPDefinitionOptionValueRelException
    • fetchByUUID_G

      public static CPDefinitionOptionValueRel fetchByUUID_G(String uuid, long groupId)
      Returns the cp definition option value rel 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 cp definition option value rel, or null if a matching cp definition option value rel could not be found
    • fetchByUUID_G

      public static CPDefinitionOptionValueRel fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
      Returns the cp definition option value rel 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 cp definition option value rel, or null if a matching cp definition option value rel could not be found
    • removeByUUID_G

      public static CPDefinitionOptionValueRel removeByUUID_G(String uuid, long groupId) throws NoSuchCPDefinitionOptionValueRelException
      Removes the cp definition option value rel where uuid = ? and groupId = ? from the database.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the cp definition option value rel that was removed
      Throws:
      NoSuchCPDefinitionOptionValueRelException
    • countByUUID_G

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

      public static List<CPDefinitionOptionValueRel> findByUuid_C(String uuid, long companyId)
      Returns all the cp definition option value rels where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching cp definition option value rels
    • findByUuid_C

      public static List<CPDefinitionOptionValueRel> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the cp definition option value rels 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 CPDefinitionOptionValueRelModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of cp definition option value rels
      end - the upper bound of the range of cp definition option value rels (not inclusive)
      Returns:
      the range of matching cp definition option value rels
    • findByUuid_C

      public static List<CPDefinitionOptionValueRel> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator)
      Returns an ordered range of all the cp definition option value rels 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 CPDefinitionOptionValueRelModelImpl.

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

      public static List<CPDefinitionOptionValueRel> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cp definition option value rels 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 CPDefinitionOptionValueRelModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of cp definition option value rels
      end - the upper bound of the range of cp definition option value rels (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 cp definition option value rels
    • findByUuid_C_First

      public static CPDefinitionOptionValueRel findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator) throws NoSuchCPDefinitionOptionValueRelException
      Returns the first cp definition option value rel 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 cp definition option value rel
      Throws:
      NoSuchCPDefinitionOptionValueRelException - if a matching cp definition option value rel could not be found
      NoSuchCPDefinitionOptionValueRelException
    • fetchByUuid_C_First

      public static CPDefinitionOptionValueRel fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator)
      Returns the first cp definition option value rel 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 cp definition option value rel, or null if a matching cp definition option value rel could not be found
    • findByUuid_C_Last

      public static CPDefinitionOptionValueRel findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator) throws NoSuchCPDefinitionOptionValueRelException
      Returns the last cp definition option value rel 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 cp definition option value rel
      Throws:
      NoSuchCPDefinitionOptionValueRelException - if a matching cp definition option value rel could not be found
      NoSuchCPDefinitionOptionValueRelException
    • fetchByUuid_C_Last

      public static CPDefinitionOptionValueRel fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator)
      Returns the last cp definition option value rel 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 cp definition option value rel, or null if a matching cp definition option value rel could not be found
    • findByUuid_C_PrevAndNext

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

      public static void removeByUuid_C(String uuid, long companyId)
      Removes all the cp definition option value rels 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 cp definition option value rels where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching cp definition option value rels
    • findByGroupId

      public static List<CPDefinitionOptionValueRel> findByGroupId(long groupId)
      Returns all the cp definition option value rels where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the matching cp definition option value rels
    • findByGroupId

      public static List<CPDefinitionOptionValueRel> findByGroupId(long groupId, int start, int end)
      Returns a range of all the cp definition option value rels 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 CPDefinitionOptionValueRelModelImpl.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of cp definition option value rels
      end - the upper bound of the range of cp definition option value rels (not inclusive)
      Returns:
      the range of matching cp definition option value rels
    • findByGroupId

      public static List<CPDefinitionOptionValueRel> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator)
      Returns an ordered range of all the cp definition option value rels 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 CPDefinitionOptionValueRelModelImpl.

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

      public static List<CPDefinitionOptionValueRel> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cp definition option value rels 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 CPDefinitionOptionValueRelModelImpl.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of cp definition option value rels
      end - the upper bound of the range of cp definition option value rels (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 cp definition option value rels
    • findByGroupId_First

      public static CPDefinitionOptionValueRel findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator) throws NoSuchCPDefinitionOptionValueRelException
      Returns the first cp definition option value rel 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 cp definition option value rel
      Throws:
      NoSuchCPDefinitionOptionValueRelException - if a matching cp definition option value rel could not be found
      NoSuchCPDefinitionOptionValueRelException
    • fetchByGroupId_First

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

      public static CPDefinitionOptionValueRel findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator) throws NoSuchCPDefinitionOptionValueRelException
      Returns the last cp definition option value rel 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 cp definition option value rel
      Throws:
      NoSuchCPDefinitionOptionValueRelException - if a matching cp definition option value rel could not be found
      NoSuchCPDefinitionOptionValueRelException
    • fetchByGroupId_Last

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

      public static CPDefinitionOptionValueRel[] findByGroupId_PrevAndNext(long CPDefinitionOptionValueRelId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator) throws NoSuchCPDefinitionOptionValueRelException
      Returns the cp definition option value rels before and after the current cp definition option value rel in the ordered set where groupId = ?.
      Parameters:
      CPDefinitionOptionValueRelId - the primary key of the current cp definition option value rel
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp definition option value rel
      Throws:
      NoSuchCPDefinitionOptionValueRelException - if a cp definition option value rel with the primary key could not be found
      NoSuchCPDefinitionOptionValueRelException
    • removeByGroupId

      public static void removeByGroupId(long groupId)
      Removes all the cp definition option value rels where groupId = ? from the database.
      Parameters:
      groupId - the group ID
    • countByGroupId

      public static int countByGroupId(long groupId)
      Returns the number of cp definition option value rels where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the number of matching cp definition option value rels
    • findByCompanyId

      public static List<CPDefinitionOptionValueRel> findByCompanyId(long companyId)
      Returns all the cp definition option value rels where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching cp definition option value rels
    • findByCompanyId

      public static List<CPDefinitionOptionValueRel> findByCompanyId(long companyId, int start, int end)
      Returns a range of all the cp definition option value rels 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 CPDefinitionOptionValueRelModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of cp definition option value rels
      end - the upper bound of the range of cp definition option value rels (not inclusive)
      Returns:
      the range of matching cp definition option value rels
    • findByCompanyId

      public static List<CPDefinitionOptionValueRel> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator)
      Returns an ordered range of all the cp definition option value rels 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 CPDefinitionOptionValueRelModelImpl.

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

      public static List<CPDefinitionOptionValueRel> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cp definition option value rels 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 CPDefinitionOptionValueRelModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of cp definition option value rels
      end - the upper bound of the range of cp definition option value rels (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 cp definition option value rels
    • findByCompanyId_First

      public static CPDefinitionOptionValueRel findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator) throws NoSuchCPDefinitionOptionValueRelException
      Returns the first cp definition option value rel 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 cp definition option value rel
      Throws:
      NoSuchCPDefinitionOptionValueRelException - if a matching cp definition option value rel could not be found
      NoSuchCPDefinitionOptionValueRelException
    • fetchByCompanyId_First

      public static CPDefinitionOptionValueRel fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator)
      Returns the first cp definition option value rel 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 cp definition option value rel, or null if a matching cp definition option value rel could not be found
    • findByCompanyId_Last

      public static CPDefinitionOptionValueRel findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator) throws NoSuchCPDefinitionOptionValueRelException
      Returns the last cp definition option value rel 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 cp definition option value rel
      Throws:
      NoSuchCPDefinitionOptionValueRelException - if a matching cp definition option value rel could not be found
      NoSuchCPDefinitionOptionValueRelException
    • fetchByCompanyId_Last

      public static CPDefinitionOptionValueRel fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator)
      Returns the last cp definition option value rel 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 cp definition option value rel, or null if a matching cp definition option value rel could not be found
    • findByCompanyId_PrevAndNext

      public static CPDefinitionOptionValueRel[] findByCompanyId_PrevAndNext(long CPDefinitionOptionValueRelId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator) throws NoSuchCPDefinitionOptionValueRelException
      Returns the cp definition option value rels before and after the current cp definition option value rel in the ordered set where companyId = ?.
      Parameters:
      CPDefinitionOptionValueRelId - the primary key of the current cp definition option value rel
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp definition option value rel
      Throws:
      NoSuchCPDefinitionOptionValueRelException - if a cp definition option value rel with the primary key could not be found
      NoSuchCPDefinitionOptionValueRelException
    • removeByCompanyId

      public static void removeByCompanyId(long companyId)
      Removes all the cp definition option value rels where companyId = ? from the database.
      Parameters:
      companyId - the company ID
    • countByCompanyId

      public static int countByCompanyId(long companyId)
      Returns the number of cp definition option value rels where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching cp definition option value rels
    • findByCPDefinitionOptionRelId

      public static List<CPDefinitionOptionValueRel> findByCPDefinitionOptionRelId(long CPDefinitionOptionRelId)
      Returns all the cp definition option value rels where CPDefinitionOptionRelId = ?.
      Parameters:
      CPDefinitionOptionRelId - the cp definition option rel ID
      Returns:
      the matching cp definition option value rels
    • findByCPDefinitionOptionRelId

      public static List<CPDefinitionOptionValueRel> findByCPDefinitionOptionRelId(long CPDefinitionOptionRelId, int start, int end)
      Returns a range of all the cp definition option value rels where CPDefinitionOptionRelId = ?.

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

      Parameters:
      CPDefinitionOptionRelId - the cp definition option rel ID
      start - the lower bound of the range of cp definition option value rels
      end - the upper bound of the range of cp definition option value rels (not inclusive)
      Returns:
      the range of matching cp definition option value rels
    • findByCPDefinitionOptionRelId

      public static List<CPDefinitionOptionValueRel> findByCPDefinitionOptionRelId(long CPDefinitionOptionRelId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator)
      Returns an ordered range of all the cp definition option value rels where CPDefinitionOptionRelId = ?.

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

      Parameters:
      CPDefinitionOptionRelId - the cp definition option rel ID
      start - the lower bound of the range of cp definition option value rels
      end - the upper bound of the range of cp definition option value rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching cp definition option value rels
    • findByCPDefinitionOptionRelId

      public static List<CPDefinitionOptionValueRel> findByCPDefinitionOptionRelId(long CPDefinitionOptionRelId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cp definition option value rels where CPDefinitionOptionRelId = ?.

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

      Parameters:
      CPDefinitionOptionRelId - the cp definition option rel ID
      start - the lower bound of the range of cp definition option value rels
      end - the upper bound of the range of cp definition option value rels (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 cp definition option value rels
    • findByCPDefinitionOptionRelId_First

      public static CPDefinitionOptionValueRel findByCPDefinitionOptionRelId_First(long CPDefinitionOptionRelId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator) throws NoSuchCPDefinitionOptionValueRelException
      Returns the first cp definition option value rel in the ordered set where CPDefinitionOptionRelId = ?.
      Parameters:
      CPDefinitionOptionRelId - the cp definition option rel ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp definition option value rel
      Throws:
      NoSuchCPDefinitionOptionValueRelException - if a matching cp definition option value rel could not be found
      NoSuchCPDefinitionOptionValueRelException
    • fetchByCPDefinitionOptionRelId_First

      public static CPDefinitionOptionValueRel fetchByCPDefinitionOptionRelId_First(long CPDefinitionOptionRelId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator)
      Returns the first cp definition option value rel in the ordered set where CPDefinitionOptionRelId = ?.
      Parameters:
      CPDefinitionOptionRelId - the cp definition option rel ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp definition option value rel, or null if a matching cp definition option value rel could not be found
    • findByCPDefinitionOptionRelId_Last

      public static CPDefinitionOptionValueRel findByCPDefinitionOptionRelId_Last(long CPDefinitionOptionRelId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator) throws NoSuchCPDefinitionOptionValueRelException
      Returns the last cp definition option value rel in the ordered set where CPDefinitionOptionRelId = ?.
      Parameters:
      CPDefinitionOptionRelId - the cp definition option rel ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp definition option value rel
      Throws:
      NoSuchCPDefinitionOptionValueRelException - if a matching cp definition option value rel could not be found
      NoSuchCPDefinitionOptionValueRelException
    • fetchByCPDefinitionOptionRelId_Last

      public static CPDefinitionOptionValueRel fetchByCPDefinitionOptionRelId_Last(long CPDefinitionOptionRelId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator)
      Returns the last cp definition option value rel in the ordered set where CPDefinitionOptionRelId = ?.
      Parameters:
      CPDefinitionOptionRelId - the cp definition option rel ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp definition option value rel, or null if a matching cp definition option value rel could not be found
    • findByCPDefinitionOptionRelId_PrevAndNext

      public static CPDefinitionOptionValueRel[] findByCPDefinitionOptionRelId_PrevAndNext(long CPDefinitionOptionValueRelId, long CPDefinitionOptionRelId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator) throws NoSuchCPDefinitionOptionValueRelException
      Returns the cp definition option value rels before and after the current cp definition option value rel in the ordered set where CPDefinitionOptionRelId = ?.
      Parameters:
      CPDefinitionOptionValueRelId - the primary key of the current cp definition option value rel
      CPDefinitionOptionRelId - the cp definition option rel ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp definition option value rel
      Throws:
      NoSuchCPDefinitionOptionValueRelException - if a cp definition option value rel with the primary key could not be found
      NoSuchCPDefinitionOptionValueRelException
    • removeByCPDefinitionOptionRelId

      public static void removeByCPDefinitionOptionRelId(long CPDefinitionOptionRelId)
      Removes all the cp definition option value rels where CPDefinitionOptionRelId = ? from the database.
      Parameters:
      CPDefinitionOptionRelId - the cp definition option rel ID
    • countByCPDefinitionOptionRelId

      public static int countByCPDefinitionOptionRelId(long CPDefinitionOptionRelId)
      Returns the number of cp definition option value rels where CPDefinitionOptionRelId = ?.
      Parameters:
      CPDefinitionOptionRelId - the cp definition option rel ID
      Returns:
      the number of matching cp definition option value rels
    • findByCPInstanceUuid

      public static List<CPDefinitionOptionValueRel> findByCPInstanceUuid(String CPInstanceUuid)
      Returns all the cp definition option value rels where CPInstanceUuid = ?.
      Parameters:
      CPInstanceUuid - the cp instance uuid
      Returns:
      the matching cp definition option value rels
    • findByCPInstanceUuid

      public static List<CPDefinitionOptionValueRel> findByCPInstanceUuid(String CPInstanceUuid, int start, int end)
      Returns a range of all the cp definition option value rels where CPInstanceUuid = ?.

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

      Parameters:
      CPInstanceUuid - the cp instance uuid
      start - the lower bound of the range of cp definition option value rels
      end - the upper bound of the range of cp definition option value rels (not inclusive)
      Returns:
      the range of matching cp definition option value rels
    • findByCPInstanceUuid

      public static List<CPDefinitionOptionValueRel> findByCPInstanceUuid(String CPInstanceUuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator)
      Returns an ordered range of all the cp definition option value rels where CPInstanceUuid = ?.

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

      Parameters:
      CPInstanceUuid - the cp instance uuid
      start - the lower bound of the range of cp definition option value rels
      end - the upper bound of the range of cp definition option value rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching cp definition option value rels
    • findByCPInstanceUuid

      public static List<CPDefinitionOptionValueRel> findByCPInstanceUuid(String CPInstanceUuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cp definition option value rels where CPInstanceUuid = ?.

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

      Parameters:
      CPInstanceUuid - the cp instance uuid
      start - the lower bound of the range of cp definition option value rels
      end - the upper bound of the range of cp definition option value rels (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 cp definition option value rels
    • findByCPInstanceUuid_First

      public static CPDefinitionOptionValueRel findByCPInstanceUuid_First(String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator) throws NoSuchCPDefinitionOptionValueRelException
      Returns the first cp definition option value rel in the ordered set where CPInstanceUuid = ?.
      Parameters:
      CPInstanceUuid - the cp instance uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp definition option value rel
      Throws:
      NoSuchCPDefinitionOptionValueRelException - if a matching cp definition option value rel could not be found
      NoSuchCPDefinitionOptionValueRelException
    • fetchByCPInstanceUuid_First

      public static CPDefinitionOptionValueRel fetchByCPInstanceUuid_First(String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator)
      Returns the first cp definition option value rel in the ordered set where CPInstanceUuid = ?.
      Parameters:
      CPInstanceUuid - the cp instance uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp definition option value rel, or null if a matching cp definition option value rel could not be found
    • findByCPInstanceUuid_Last

      public static CPDefinitionOptionValueRel findByCPInstanceUuid_Last(String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator) throws NoSuchCPDefinitionOptionValueRelException
      Returns the last cp definition option value rel in the ordered set where CPInstanceUuid = ?.
      Parameters:
      CPInstanceUuid - the cp instance uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp definition option value rel
      Throws:
      NoSuchCPDefinitionOptionValueRelException - if a matching cp definition option value rel could not be found
      NoSuchCPDefinitionOptionValueRelException
    • fetchByCPInstanceUuid_Last

      public static CPDefinitionOptionValueRel fetchByCPInstanceUuid_Last(String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator)
      Returns the last cp definition option value rel in the ordered set where CPInstanceUuid = ?.
      Parameters:
      CPInstanceUuid - the cp instance uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp definition option value rel, or null if a matching cp definition option value rel could not be found
    • findByCPInstanceUuid_PrevAndNext

      public static CPDefinitionOptionValueRel[] findByCPInstanceUuid_PrevAndNext(long CPDefinitionOptionValueRelId, String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator) throws NoSuchCPDefinitionOptionValueRelException
      Returns the cp definition option value rels before and after the current cp definition option value rel in the ordered set where CPInstanceUuid = ?.
      Parameters:
      CPDefinitionOptionValueRelId - the primary key of the current cp definition option value rel
      CPInstanceUuid - the cp instance uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp definition option value rel
      Throws:
      NoSuchCPDefinitionOptionValueRelException - if a cp definition option value rel with the primary key could not be found
      NoSuchCPDefinitionOptionValueRelException
    • removeByCPInstanceUuid

      public static void removeByCPInstanceUuid(String CPInstanceUuid)
      Removes all the cp definition option value rels where CPInstanceUuid = ? from the database.
      Parameters:
      CPInstanceUuid - the cp instance uuid
    • countByCPInstanceUuid

      public static int countByCPInstanceUuid(String CPInstanceUuid)
      Returns the number of cp definition option value rels where CPInstanceUuid = ?.
      Parameters:
      CPInstanceUuid - the cp instance uuid
      Returns:
      the number of matching cp definition option value rels
    • findByKey

      public static List<CPDefinitionOptionValueRel> findByKey(String key)
      Returns all the cp definition option value rels where key = ?.
      Parameters:
      key - the key
      Returns:
      the matching cp definition option value rels
    • findByKey

      public static List<CPDefinitionOptionValueRel> findByKey(String key, int start, int end)
      Returns a range of all the cp definition option value rels where key = ?.

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

      Parameters:
      key - the key
      start - the lower bound of the range of cp definition option value rels
      end - the upper bound of the range of cp definition option value rels (not inclusive)
      Returns:
      the range of matching cp definition option value rels
    • findByKey

      public static List<CPDefinitionOptionValueRel> findByKey(String key, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator)
      Returns an ordered range of all the cp definition option value rels where key = ?.

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

      Parameters:
      key - the key
      start - the lower bound of the range of cp definition option value rels
      end - the upper bound of the range of cp definition option value rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching cp definition option value rels
    • findByKey

      public static List<CPDefinitionOptionValueRel> findByKey(String key, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cp definition option value rels where key = ?.

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

      Parameters:
      key - the key
      start - the lower bound of the range of cp definition option value rels
      end - the upper bound of the range of cp definition option value rels (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 cp definition option value rels
    • findByKey_First

      public static CPDefinitionOptionValueRel findByKey_First(String key, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator) throws NoSuchCPDefinitionOptionValueRelException
      Returns the first cp definition option value rel in the ordered set where key = ?.
      Parameters:
      key - the key
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp definition option value rel
      Throws:
      NoSuchCPDefinitionOptionValueRelException - if a matching cp definition option value rel could not be found
      NoSuchCPDefinitionOptionValueRelException
    • fetchByKey_First

      public static CPDefinitionOptionValueRel fetchByKey_First(String key, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator)
      Returns the first cp definition option value rel in the ordered set where key = ?.
      Parameters:
      key - the key
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp definition option value rel, or null if a matching cp definition option value rel could not be found
    • findByKey_Last

      public static CPDefinitionOptionValueRel findByKey_Last(String key, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator) throws NoSuchCPDefinitionOptionValueRelException
      Returns the last cp definition option value rel in the ordered set where key = ?.
      Parameters:
      key - the key
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp definition option value rel
      Throws:
      NoSuchCPDefinitionOptionValueRelException - if a matching cp definition option value rel could not be found
      NoSuchCPDefinitionOptionValueRelException
    • fetchByKey_Last

      public static CPDefinitionOptionValueRel fetchByKey_Last(String key, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator)
      Returns the last cp definition option value rel in the ordered set where key = ?.
      Parameters:
      key - the key
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp definition option value rel, or null if a matching cp definition option value rel could not be found
    • findByKey_PrevAndNext

      public static CPDefinitionOptionValueRel[] findByKey_PrevAndNext(long CPDefinitionOptionValueRelId, String key, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator) throws NoSuchCPDefinitionOptionValueRelException
      Returns the cp definition option value rels before and after the current cp definition option value rel in the ordered set where key = ?.
      Parameters:
      CPDefinitionOptionValueRelId - the primary key of the current cp definition option value rel
      key - the key
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp definition option value rel
      Throws:
      NoSuchCPDefinitionOptionValueRelException - if a cp definition option value rel with the primary key could not be found
      NoSuchCPDefinitionOptionValueRelException
    • removeByKey

      public static void removeByKey(String key)
      Removes all the cp definition option value rels where key = ? from the database.
      Parameters:
      key - the key
    • countByKey

      public static int countByKey(String key)
      Returns the number of cp definition option value rels where key = ?.
      Parameters:
      key - the key
      Returns:
      the number of matching cp definition option value rels
    • findByC_K

      public static CPDefinitionOptionValueRel findByC_K(long CPDefinitionOptionRelId, String key) throws NoSuchCPDefinitionOptionValueRelException
      Returns the cp definition option value rel where CPDefinitionOptionRelId = ? and key = ? or throws a NoSuchCPDefinitionOptionValueRelException if it could not be found.
      Parameters:
      CPDefinitionOptionRelId - the cp definition option rel ID
      key - the key
      Returns:
      the matching cp definition option value rel
      Throws:
      NoSuchCPDefinitionOptionValueRelException - if a matching cp definition option value rel could not be found
      NoSuchCPDefinitionOptionValueRelException
    • fetchByC_K

      public static CPDefinitionOptionValueRel fetchByC_K(long CPDefinitionOptionRelId, String key)
      Returns the cp definition option value rel where CPDefinitionOptionRelId = ? and key = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      CPDefinitionOptionRelId - the cp definition option rel ID
      key - the key
      Returns:
      the matching cp definition option value rel, or null if a matching cp definition option value rel could not be found
    • fetchByC_K

      public static CPDefinitionOptionValueRel fetchByC_K(long CPDefinitionOptionRelId, String key, boolean useFinderCache)
      Returns the cp definition option value rel where CPDefinitionOptionRelId = ? and key = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      CPDefinitionOptionRelId - the cp definition option rel ID
      key - the key
      useFinderCache - whether to use the finder cache
      Returns:
      the matching cp definition option value rel, or null if a matching cp definition option value rel could not be found
    • removeByC_K

      public static CPDefinitionOptionValueRel removeByC_K(long CPDefinitionOptionRelId, String key) throws NoSuchCPDefinitionOptionValueRelException
      Removes the cp definition option value rel where CPDefinitionOptionRelId = ? and key = ? from the database.
      Parameters:
      CPDefinitionOptionRelId - the cp definition option rel ID
      key - the key
      Returns:
      the cp definition option value rel that was removed
      Throws:
      NoSuchCPDefinitionOptionValueRelException
    • countByC_K

      public static int countByC_K(long CPDefinitionOptionRelId, String key)
      Returns the number of cp definition option value rels where CPDefinitionOptionRelId = ? and key = ?.
      Parameters:
      CPDefinitionOptionRelId - the cp definition option rel ID
      key - the key
      Returns:
      the number of matching cp definition option value rels
    • findByCDORI_P

      public static List<CPDefinitionOptionValueRel> findByCDORI_P(long CPDefinitionOptionRelId, boolean preselected)
      Returns all the cp definition option value rels where CPDefinitionOptionRelId = ? and preselected = ?.
      Parameters:
      CPDefinitionOptionRelId - the cp definition option rel ID
      preselected - the preselected
      Returns:
      the matching cp definition option value rels
    • findByCDORI_P

      public static List<CPDefinitionOptionValueRel> findByCDORI_P(long CPDefinitionOptionRelId, boolean preselected, int start, int end)
      Returns a range of all the cp definition option value rels where CPDefinitionOptionRelId = ? and preselected = ?.

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

      Parameters:
      CPDefinitionOptionRelId - the cp definition option rel ID
      preselected - the preselected
      start - the lower bound of the range of cp definition option value rels
      end - the upper bound of the range of cp definition option value rels (not inclusive)
      Returns:
      the range of matching cp definition option value rels
    • findByCDORI_P

      public static List<CPDefinitionOptionValueRel> findByCDORI_P(long CPDefinitionOptionRelId, boolean preselected, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator)
      Returns an ordered range of all the cp definition option value rels where CPDefinitionOptionRelId = ? and preselected = ?.

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

      Parameters:
      CPDefinitionOptionRelId - the cp definition option rel ID
      preselected - the preselected
      start - the lower bound of the range of cp definition option value rels
      end - the upper bound of the range of cp definition option value rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching cp definition option value rels
    • findByCDORI_P

      public static List<CPDefinitionOptionValueRel> findByCDORI_P(long CPDefinitionOptionRelId, boolean preselected, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cp definition option value rels where CPDefinitionOptionRelId = ? and preselected = ?.

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

      Parameters:
      CPDefinitionOptionRelId - the cp definition option rel ID
      preselected - the preselected
      start - the lower bound of the range of cp definition option value rels
      end - the upper bound of the range of cp definition option value rels (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 cp definition option value rels
    • findByCDORI_P_First

      public static CPDefinitionOptionValueRel findByCDORI_P_First(long CPDefinitionOptionRelId, boolean preselected, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator) throws NoSuchCPDefinitionOptionValueRelException
      Returns the first cp definition option value rel in the ordered set where CPDefinitionOptionRelId = ? and preselected = ?.
      Parameters:
      CPDefinitionOptionRelId - the cp definition option rel ID
      preselected - the preselected
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp definition option value rel
      Throws:
      NoSuchCPDefinitionOptionValueRelException - if a matching cp definition option value rel could not be found
      NoSuchCPDefinitionOptionValueRelException
    • fetchByCDORI_P_First

      public static CPDefinitionOptionValueRel fetchByCDORI_P_First(long CPDefinitionOptionRelId, boolean preselected, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator)
      Returns the first cp definition option value rel in the ordered set where CPDefinitionOptionRelId = ? and preselected = ?.
      Parameters:
      CPDefinitionOptionRelId - the cp definition option rel ID
      preselected - the preselected
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp definition option value rel, or null if a matching cp definition option value rel could not be found
    • findByCDORI_P_Last

      public static CPDefinitionOptionValueRel findByCDORI_P_Last(long CPDefinitionOptionRelId, boolean preselected, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator) throws NoSuchCPDefinitionOptionValueRelException
      Returns the last cp definition option value rel in the ordered set where CPDefinitionOptionRelId = ? and preselected = ?.
      Parameters:
      CPDefinitionOptionRelId - the cp definition option rel ID
      preselected - the preselected
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp definition option value rel
      Throws:
      NoSuchCPDefinitionOptionValueRelException - if a matching cp definition option value rel could not be found
      NoSuchCPDefinitionOptionValueRelException
    • fetchByCDORI_P_Last

      public static CPDefinitionOptionValueRel fetchByCDORI_P_Last(long CPDefinitionOptionRelId, boolean preselected, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator)
      Returns the last cp definition option value rel in the ordered set where CPDefinitionOptionRelId = ? and preselected = ?.
      Parameters:
      CPDefinitionOptionRelId - the cp definition option rel ID
      preselected - the preselected
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp definition option value rel, or null if a matching cp definition option value rel could not be found
    • findByCDORI_P_PrevAndNext

      public static CPDefinitionOptionValueRel[] findByCDORI_P_PrevAndNext(long CPDefinitionOptionValueRelId, long CPDefinitionOptionRelId, boolean preselected, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator) throws NoSuchCPDefinitionOptionValueRelException
      Returns the cp definition option value rels before and after the current cp definition option value rel in the ordered set where CPDefinitionOptionRelId = ? and preselected = ?.
      Parameters:
      CPDefinitionOptionValueRelId - the primary key of the current cp definition option value rel
      CPDefinitionOptionRelId - the cp definition option rel ID
      preselected - the preselected
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp definition option value rel
      Throws:
      NoSuchCPDefinitionOptionValueRelException - if a cp definition option value rel with the primary key could not be found
      NoSuchCPDefinitionOptionValueRelException
    • removeByCDORI_P

      public static void removeByCDORI_P(long CPDefinitionOptionRelId, boolean preselected)
      Removes all the cp definition option value rels where CPDefinitionOptionRelId = ? and preselected = ? from the database.
      Parameters:
      CPDefinitionOptionRelId - the cp definition option rel ID
      preselected - the preselected
    • countByCDORI_P

      public static int countByCDORI_P(long CPDefinitionOptionRelId, boolean preselected)
      Returns the number of cp definition option value rels where CPDefinitionOptionRelId = ? and preselected = ?.
      Parameters:
      CPDefinitionOptionRelId - the cp definition option rel ID
      preselected - the preselected
      Returns:
      the number of matching cp definition option value rels
    • cacheResult

      public static void cacheResult(CPDefinitionOptionValueRel cpDefinitionOptionValueRel)
      Caches the cp definition option value rel in the entity cache if it is enabled.
      Parameters:
      cpDefinitionOptionValueRel - the cp definition option value rel
    • cacheResult

      public static void cacheResult(List<CPDefinitionOptionValueRel> cpDefinitionOptionValueRels)
      Caches the cp definition option value rels in the entity cache if it is enabled.
      Parameters:
      cpDefinitionOptionValueRels - the cp definition option value rels
    • create

      public static CPDefinitionOptionValueRel create(long CPDefinitionOptionValueRelId)
      Creates a new cp definition option value rel with the primary key. Does not add the cp definition option value rel to the database.
      Parameters:
      CPDefinitionOptionValueRelId - the primary key for the new cp definition option value rel
      Returns:
      the new cp definition option value rel
    • remove

      public static CPDefinitionOptionValueRel remove(long CPDefinitionOptionValueRelId) throws NoSuchCPDefinitionOptionValueRelException
      Removes the cp definition option value rel with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      CPDefinitionOptionValueRelId - the primary key of the cp definition option value rel
      Returns:
      the cp definition option value rel that was removed
      Throws:
      NoSuchCPDefinitionOptionValueRelException - if a cp definition option value rel with the primary key could not be found
      NoSuchCPDefinitionOptionValueRelException
    • updateImpl

      public static CPDefinitionOptionValueRel updateImpl(CPDefinitionOptionValueRel cpDefinitionOptionValueRel)
    • findByPrimaryKey

      public static CPDefinitionOptionValueRel findByPrimaryKey(long CPDefinitionOptionValueRelId) throws NoSuchCPDefinitionOptionValueRelException
      Returns the cp definition option value rel with the primary key or throws a NoSuchCPDefinitionOptionValueRelException if it could not be found.
      Parameters:
      CPDefinitionOptionValueRelId - the primary key of the cp definition option value rel
      Returns:
      the cp definition option value rel
      Throws:
      NoSuchCPDefinitionOptionValueRelException - if a cp definition option value rel with the primary key could not be found
      NoSuchCPDefinitionOptionValueRelException
    • fetchByPrimaryKey

      public static CPDefinitionOptionValueRel fetchByPrimaryKey(long CPDefinitionOptionValueRelId)
      Returns the cp definition option value rel with the primary key or returns null if it could not be found.
      Parameters:
      CPDefinitionOptionValueRelId - the primary key of the cp definition option value rel
      Returns:
      the cp definition option value rel, or null if a cp definition option value rel with the primary key could not be found
    • findAll

      public static List<CPDefinitionOptionValueRel> findAll()
      Returns all the cp definition option value rels.
      Returns:
      the cp definition option value rels
    • findAll

      public static List<CPDefinitionOptionValueRel> findAll(int start, int end)
      Returns a range of all the cp definition option value rels.

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

      Parameters:
      start - the lower bound of the range of cp definition option value rels
      end - the upper bound of the range of cp definition option value rels (not inclusive)
      Returns:
      the range of cp definition option value rels
    • findAll

      public static List<CPDefinitionOptionValueRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator)
      Returns an ordered range of all the cp definition option value rels.

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

      Parameters:
      start - the lower bound of the range of cp definition option value rels
      end - the upper bound of the range of cp definition option value rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of cp definition option value rels
    • findAll

      public static List<CPDefinitionOptionValueRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionValueRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cp definition option value rels.

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

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

      public static void removeAll()
      Removes all the cp definition option value rels from the database.
    • countAll

      public static int countAll()
      Returns the number of cp definition option value rels.
      Returns:
      the number of cp definition option value rels
    • getPersistence

      public static CPDefinitionOptionValueRelPersistence getPersistence()
    • setPersistence

      public static void setPersistence(CPDefinitionOptionValueRelPersistence persistence)