Class CPInstanceOptionValueRelUtil

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

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

    • CPInstanceOptionValueRelUtil

      public CPInstanceOptionValueRelUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

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

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

      public static List<CPInstanceOptionValueRel> findByUuid(String uuid, int start, int end)
      Returns a range of all the cp instance 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 CPInstanceOptionValueRelModelImpl.

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

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

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

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

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

      public static CPInstanceOptionValueRel findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceOptionValueRel> orderByComparator) throws NoSuchCPInstanceOptionValueRelException
      Returns the first cp instance 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 instance option value rel
      Throws:
      NoSuchCPInstanceOptionValueRelException - if a matching cp instance option value rel could not be found
      NoSuchCPInstanceOptionValueRelException
    • fetchByUuid_First

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

      public static CPInstanceOptionValueRel findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceOptionValueRel> orderByComparator) throws NoSuchCPInstanceOptionValueRelException
      Returns the last cp instance 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 instance option value rel
      Throws:
      NoSuchCPInstanceOptionValueRelException - if a matching cp instance option value rel could not be found
      NoSuchCPInstanceOptionValueRelException
    • fetchByUuid_Last

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

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

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

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

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

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

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

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

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

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

      public static List<CPInstanceOptionValueRel> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the cp instance 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 CPInstanceOptionValueRelModelImpl.

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

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

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

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

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

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

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

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

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

      public static CPInstanceOptionValueRel[] findByUuid_C_PrevAndNext(long CPInstanceOptionValueRelId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceOptionValueRel> orderByComparator) throws NoSuchCPInstanceOptionValueRelException
      Returns the cp instance option value rels before and after the current cp instance option value rel in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      CPInstanceOptionValueRelId - the primary key of the current cp instance 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 instance option value rel
      Throws:
      NoSuchCPInstanceOptionValueRelException - if a cp instance option value rel with the primary key could not be found
      NoSuchCPInstanceOptionValueRelException
    • removeByUuid_C

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

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

      public static List<CPInstanceOptionValueRel> findByCPDefinitionOptionRelId(long CPDefinitionOptionRelId, int start, int end)
      Returns a range of all the cp instance 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 CPInstanceOptionValueRelModelImpl.

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

      public static List<CPInstanceOptionValueRel> findByCPDefinitionOptionRelId(long CPDefinitionOptionRelId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceOptionValueRel> orderByComparator)
      Returns an ordered range of all the cp instance 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 CPInstanceOptionValueRelModelImpl.

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

      public static List<CPInstanceOptionValueRel> findByCPDefinitionOptionRelId(long CPDefinitionOptionRelId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceOptionValueRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cp instance 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 CPInstanceOptionValueRelModelImpl.

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

      public static CPInstanceOptionValueRel findByCPDefinitionOptionRelId_First(long CPDefinitionOptionRelId, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceOptionValueRel> orderByComparator) throws NoSuchCPInstanceOptionValueRelException
      Returns the first cp instance 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 instance option value rel
      Throws:
      NoSuchCPInstanceOptionValueRelException - if a matching cp instance option value rel could not be found
      NoSuchCPInstanceOptionValueRelException
    • fetchByCPDefinitionOptionRelId_First

      public static CPInstanceOptionValueRel fetchByCPDefinitionOptionRelId_First(long CPDefinitionOptionRelId, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceOptionValueRel> orderByComparator)
      Returns the first cp instance 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 instance option value rel, or null if a matching cp instance option value rel could not be found
    • findByCPDefinitionOptionRelId_Last

      public static CPInstanceOptionValueRel findByCPDefinitionOptionRelId_Last(long CPDefinitionOptionRelId, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceOptionValueRel> orderByComparator) throws NoSuchCPInstanceOptionValueRelException
      Returns the last cp instance 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 instance option value rel
      Throws:
      NoSuchCPInstanceOptionValueRelException - if a matching cp instance option value rel could not be found
      NoSuchCPInstanceOptionValueRelException
    • fetchByCPDefinitionOptionRelId_Last

      public static CPInstanceOptionValueRel fetchByCPDefinitionOptionRelId_Last(long CPDefinitionOptionRelId, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceOptionValueRel> orderByComparator)
      Returns the last cp instance 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 instance option value rel, or null if a matching cp instance option value rel could not be found
    • findByCPDefinitionOptionRelId_PrevAndNext

      public static CPInstanceOptionValueRel[] findByCPDefinitionOptionRelId_PrevAndNext(long CPInstanceOptionValueRelId, long CPDefinitionOptionRelId, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceOptionValueRel> orderByComparator) throws NoSuchCPInstanceOptionValueRelException
      Returns the cp instance option value rels before and after the current cp instance option value rel in the ordered set where CPDefinitionOptionRelId = ?.
      Parameters:
      CPInstanceOptionValueRelId - the primary key of the current cp instance 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 instance option value rel
      Throws:
      NoSuchCPInstanceOptionValueRelException - if a cp instance option value rel with the primary key could not be found
      NoSuchCPInstanceOptionValueRelException
    • removeByCPDefinitionOptionRelId

      public static void removeByCPDefinitionOptionRelId(long CPDefinitionOptionRelId)
      Removes all the cp instance 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 instance option value rels where CPDefinitionOptionRelId = ?.
      Parameters:
      CPDefinitionOptionRelId - the cp definition option rel ID
      Returns:
      the number of matching cp instance option value rels
    • findByCPInstanceId

      public static List<CPInstanceOptionValueRel> findByCPInstanceId(long CPInstanceId)
      Returns all the cp instance option value rels where CPInstanceId = ?.
      Parameters:
      CPInstanceId - the cp instance ID
      Returns:
      the matching cp instance option value rels
    • findByCPInstanceId

      public static List<CPInstanceOptionValueRel> findByCPInstanceId(long CPInstanceId, int start, int end)
      Returns a range of all the cp instance option value rels where CPInstanceId = ?.

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

      Parameters:
      CPInstanceId - the cp instance ID
      start - the lower bound of the range of cp instance option value rels
      end - the upper bound of the range of cp instance option value rels (not inclusive)
      Returns:
      the range of matching cp instance option value rels
    • findByCPInstanceId

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

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

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

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

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

      Parameters:
      CPInstanceId - the cp instance ID
      start - the lower bound of the range of cp instance option value rels
      end - the upper bound of the range of cp instance 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 instance option value rels
    • findByCPInstanceId_First

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

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

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

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

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

      public static void removeByCPInstanceId(long CPInstanceId)
      Removes all the cp instance option value rels where CPInstanceId = ? from the database.
      Parameters:
      CPInstanceId - the cp instance ID
    • countByCPInstanceId

      public static int countByCPInstanceId(long CPInstanceId)
      Returns the number of cp instance option value rels where CPInstanceId = ?.
      Parameters:
      CPInstanceId - the cp instance ID
      Returns:
      the number of matching cp instance option value rels
    • findByCDORI_CII

      public static List<CPInstanceOptionValueRel> findByCDORI_CII(long CPDefinitionOptionRelId, long CPInstanceId)
      Returns all the cp instance option value rels where CPDefinitionOptionRelId = ? and CPInstanceId = ?.
      Parameters:
      CPDefinitionOptionRelId - the cp definition option rel ID
      CPInstanceId - the cp instance ID
      Returns:
      the matching cp instance option value rels
    • findByCDORI_CII

      public static List<CPInstanceOptionValueRel> findByCDORI_CII(long CPDefinitionOptionRelId, long CPInstanceId, int start, int end)
      Returns a range of all the cp instance option value rels where CPDefinitionOptionRelId = ? and CPInstanceId = ?.

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static void removeByCDORI_CII(long CPDefinitionOptionRelId, long CPInstanceId)
      Removes all the cp instance option value rels where CPDefinitionOptionRelId = ? and CPInstanceId = ? from the database.
      Parameters:
      CPDefinitionOptionRelId - the cp definition option rel ID
      CPInstanceId - the cp instance ID
    • countByCDORI_CII

      public static int countByCDORI_CII(long CPDefinitionOptionRelId, long CPInstanceId)
      Returns the number of cp instance option value rels where CPDefinitionOptionRelId = ? and CPInstanceId = ?.
      Parameters:
      CPDefinitionOptionRelId - the cp definition option rel ID
      CPInstanceId - the cp instance ID
      Returns:
      the number of matching cp instance option value rels
    • findByCDOVRI_CII

      public static CPInstanceOptionValueRel findByCDOVRI_CII(long CPDefinitionOptionValueRelId, long CPInstanceId) throws NoSuchCPInstanceOptionValueRelException
      Returns the cp instance option value rel where CPDefinitionOptionValueRelId = ? and CPInstanceId = ? or throws a NoSuchCPInstanceOptionValueRelException if it could not be found.
      Parameters:
      CPDefinitionOptionValueRelId - the cp definition option value rel ID
      CPInstanceId - the cp instance ID
      Returns:
      the matching cp instance option value rel
      Throws:
      NoSuchCPInstanceOptionValueRelException - if a matching cp instance option value rel could not be found
      NoSuchCPInstanceOptionValueRelException
    • fetchByCDOVRI_CII

      public static CPInstanceOptionValueRel fetchByCDOVRI_CII(long CPDefinitionOptionValueRelId, long CPInstanceId)
      Returns the cp instance option value rel where CPDefinitionOptionValueRelId = ? and CPInstanceId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      CPDefinitionOptionValueRelId - the cp definition option value rel ID
      CPInstanceId - the cp instance ID
      Returns:
      the matching cp instance option value rel, or null if a matching cp instance option value rel could not be found
    • fetchByCDOVRI_CII

      public static CPInstanceOptionValueRel fetchByCDOVRI_CII(long CPDefinitionOptionValueRelId, long CPInstanceId, boolean useFinderCache)
      Returns the cp instance option value rel where CPDefinitionOptionValueRelId = ? and CPInstanceId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      CPDefinitionOptionValueRelId - the cp definition option value rel ID
      CPInstanceId - the cp instance ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching cp instance option value rel, or null if a matching cp instance option value rel could not be found
    • removeByCDOVRI_CII

      public static CPInstanceOptionValueRel removeByCDOVRI_CII(long CPDefinitionOptionValueRelId, long CPInstanceId) throws NoSuchCPInstanceOptionValueRelException
      Removes the cp instance option value rel where CPDefinitionOptionValueRelId = ? and CPInstanceId = ? from the database.
      Parameters:
      CPDefinitionOptionValueRelId - the cp definition option value rel ID
      CPInstanceId - the cp instance ID
      Returns:
      the cp instance option value rel that was removed
      Throws:
      NoSuchCPInstanceOptionValueRelException
    • countByCDOVRI_CII

      public static int countByCDOVRI_CII(long CPDefinitionOptionValueRelId, long CPInstanceId)
      Returns the number of cp instance option value rels where CPDefinitionOptionValueRelId = ? and CPInstanceId = ?.
      Parameters:
      CPDefinitionOptionValueRelId - the cp definition option value rel ID
      CPInstanceId - the cp instance ID
      Returns:
      the number of matching cp instance option value rels
    • findByCDORI_CDOVRI_CII

      public static CPInstanceOptionValueRel findByCDORI_CDOVRI_CII(long CPDefinitionOptionRelId, long CPDefinitionOptionValueRelId, long CPInstanceId) throws NoSuchCPInstanceOptionValueRelException
      Returns the cp instance option value rel where CPDefinitionOptionRelId = ? and CPDefinitionOptionValueRelId = ? and CPInstanceId = ? or throws a NoSuchCPInstanceOptionValueRelException if it could not be found.
      Parameters:
      CPDefinitionOptionRelId - the cp definition option rel ID
      CPDefinitionOptionValueRelId - the cp definition option value rel ID
      CPInstanceId - the cp instance ID
      Returns:
      the matching cp instance option value rel
      Throws:
      NoSuchCPInstanceOptionValueRelException - if a matching cp instance option value rel could not be found
      NoSuchCPInstanceOptionValueRelException
    • fetchByCDORI_CDOVRI_CII

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

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

      public static CPInstanceOptionValueRel removeByCDORI_CDOVRI_CII(long CPDefinitionOptionRelId, long CPDefinitionOptionValueRelId, long CPInstanceId) throws NoSuchCPInstanceOptionValueRelException
      Removes the cp instance option value rel where CPDefinitionOptionRelId = ? and CPDefinitionOptionValueRelId = ? and CPInstanceId = ? from the database.
      Parameters:
      CPDefinitionOptionRelId - the cp definition option rel ID
      CPDefinitionOptionValueRelId - the cp definition option value rel ID
      CPInstanceId - the cp instance ID
      Returns:
      the cp instance option value rel that was removed
      Throws:
      NoSuchCPInstanceOptionValueRelException
    • countByCDORI_CDOVRI_CII

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

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

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

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

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

      public static CPInstanceOptionValueRel updateImpl(CPInstanceOptionValueRel cpInstanceOptionValueRel)
    • findByPrimaryKey

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

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

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

      public static List<CPInstanceOptionValueRel> findAll(int start, int end)
      Returns a range of all the cp instance 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 CPInstanceOptionValueRelModelImpl.

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

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

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

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

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

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

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

      public static CPInstanceOptionValueRelPersistence getPersistence()
    • setPersistence

      public static void setPersistence(CPInstanceOptionValueRelPersistence persistence)