Class CPDefinitionOptionRelUtil

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

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

    • CPDefinitionOptionRelUtil

      public CPDefinitionOptionRelUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static void removeByGroupId(long groupId)
      Removes all the cp definition option 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 rels where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the number of matching cp definition option rels
    • findByCompanyId

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

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

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

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

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

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

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

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

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

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

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

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

      public static void removeByCompanyId(long companyId)
      Removes all the cp definition option 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 rels where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching cp definition option rels
    • findByCPDefinitionId

      public static List<CPDefinitionOptionRel> findByCPDefinitionId(long CPDefinitionId)
      Returns all the cp definition option rels where CPDefinitionId = ?.
      Parameters:
      CPDefinitionId - the cp definition ID
      Returns:
      the matching cp definition option rels
    • findByCPDefinitionId

      public static List<CPDefinitionOptionRel> findByCPDefinitionId(long CPDefinitionId, int start, int end)
      Returns a range of all the cp definition option rels where CPDefinitionId = ?.

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

      Parameters:
      CPDefinitionId - the cp definition ID
      start - the lower bound of the range of cp definition option rels
      end - the upper bound of the range of cp definition option rels (not inclusive)
      Returns:
      the range of matching cp definition option rels
    • findByCPDefinitionId

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

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

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

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

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

      Parameters:
      CPDefinitionId - the cp definition ID
      start - the lower bound of the range of cp definition option rels
      end - the upper bound of the range of cp definition option 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 rels
    • findByCPDefinitionId_First

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

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

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

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

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

      public static void removeByCPDefinitionId(long CPDefinitionId)
      Removes all the cp definition option rels where CPDefinitionId = ? from the database.
      Parameters:
      CPDefinitionId - the cp definition ID
    • countByCPDefinitionId

      public static int countByCPDefinitionId(long CPDefinitionId)
      Returns the number of cp definition option rels where CPDefinitionId = ?.
      Parameters:
      CPDefinitionId - the cp definition ID
      Returns:
      the number of matching cp definition option rels
    • findByCPOptionId

      public static List<CPDefinitionOptionRel> findByCPOptionId(long CPOptionId)
      Returns all the cp definition option rels where CPOptionId = ?.
      Parameters:
      CPOptionId - the cp option ID
      Returns:
      the matching cp definition option rels
    • findByCPOptionId

      public static List<CPDefinitionOptionRel> findByCPOptionId(long CPOptionId, int start, int end)
      Returns a range of all the cp definition option rels where CPOptionId = ?.

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

      Parameters:
      CPOptionId - the cp option ID
      start - the lower bound of the range of cp definition option rels
      end - the upper bound of the range of cp definition option rels (not inclusive)
      Returns:
      the range of matching cp definition option rels
    • findByCPOptionId

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

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

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

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

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

      Parameters:
      CPOptionId - the cp option ID
      start - the lower bound of the range of cp definition option rels
      end - the upper bound of the range of cp definition option 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 rels
    • findByCPOptionId_First

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

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

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

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

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

      public static void removeByCPOptionId(long CPOptionId)
      Removes all the cp definition option rels where CPOptionId = ? from the database.
      Parameters:
      CPOptionId - the cp option ID
    • countByCPOptionId

      public static int countByCPOptionId(long CPOptionId)
      Returns the number of cp definition option rels where CPOptionId = ?.
      Parameters:
      CPOptionId - the cp option ID
      Returns:
      the number of matching cp definition option rels
    • findByC_C

      public static CPDefinitionOptionRel findByC_C(long CPDefinitionId, long CPOptionId) throws NoSuchCPDefinitionOptionRelException
      Returns the cp definition option rel where CPDefinitionId = ? and CPOptionId = ? or throws a NoSuchCPDefinitionOptionRelException if it could not be found.
      Parameters:
      CPDefinitionId - the cp definition ID
      CPOptionId - the cp option ID
      Returns:
      the matching cp definition option rel
      Throws:
      NoSuchCPDefinitionOptionRelException - if a matching cp definition option rel could not be found
      NoSuchCPDefinitionOptionRelException
    • fetchByC_C

      public static CPDefinitionOptionRel fetchByC_C(long CPDefinitionId, long CPOptionId)
      Returns the cp definition option rel where CPDefinitionId = ? and CPOptionId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      CPDefinitionId - the cp definition ID
      CPOptionId - the cp option ID
      Returns:
      the matching cp definition option rel, or null if a matching cp definition option rel could not be found
    • fetchByC_C

      public static CPDefinitionOptionRel fetchByC_C(long CPDefinitionId, long CPOptionId, boolean useFinderCache)
      Returns the cp definition option rel where CPDefinitionId = ? and CPOptionId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      CPDefinitionId - the cp definition ID
      CPOptionId - the cp option ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching cp definition option rel, or null if a matching cp definition option rel could not be found
    • removeByC_C

      public static CPDefinitionOptionRel removeByC_C(long CPDefinitionId, long CPOptionId) throws NoSuchCPDefinitionOptionRelException
      Removes the cp definition option rel where CPDefinitionId = ? and CPOptionId = ? from the database.
      Parameters:
      CPDefinitionId - the cp definition ID
      CPOptionId - the cp option ID
      Returns:
      the cp definition option rel that was removed
      Throws:
      NoSuchCPDefinitionOptionRelException
    • countByC_C

      public static int countByC_C(long CPDefinitionId, long CPOptionId)
      Returns the number of cp definition option rels where CPDefinitionId = ? and CPOptionId = ?.
      Parameters:
      CPDefinitionId - the cp definition ID
      CPOptionId - the cp option ID
      Returns:
      the number of matching cp definition option rels
    • findByCPDI_R

      public static List<CPDefinitionOptionRel> findByCPDI_R(long CPDefinitionId, boolean required)
      Returns all the cp definition option rels where CPDefinitionId = ? and required = ?.
      Parameters:
      CPDefinitionId - the cp definition ID
      required - the required
      Returns:
      the matching cp definition option rels
    • findByCPDI_R

      public static List<CPDefinitionOptionRel> findByCPDI_R(long CPDefinitionId, boolean required, int start, int end)
      Returns a range of all the cp definition option rels where CPDefinitionId = ? and required = ?.

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

      Parameters:
      CPDefinitionId - the cp definition ID
      required - the required
      start - the lower bound of the range of cp definition option rels
      end - the upper bound of the range of cp definition option rels (not inclusive)
      Returns:
      the range of matching cp definition option rels
    • findByCPDI_R

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

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

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

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

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

      Parameters:
      CPDefinitionId - the cp definition ID
      required - the required
      start - the lower bound of the range of cp definition option rels
      end - the upper bound of the range of cp definition option 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 rels
    • findByCPDI_R_First

      public static CPDefinitionOptionRel findByCPDI_R_First(long CPDefinitionId, boolean required, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException
      Returns the first cp definition option rel in the ordered set where CPDefinitionId = ? and required = ?.
      Parameters:
      CPDefinitionId - the cp definition ID
      required - the required
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp definition option rel
      Throws:
      NoSuchCPDefinitionOptionRelException - if a matching cp definition option rel could not be found
      NoSuchCPDefinitionOptionRelException
    • fetchByCPDI_R_First

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

      public static CPDefinitionOptionRel findByCPDI_R_Last(long CPDefinitionId, boolean required, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException
      Returns the last cp definition option rel in the ordered set where CPDefinitionId = ? and required = ?.
      Parameters:
      CPDefinitionId - the cp definition ID
      required - the required
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp definition option rel
      Throws:
      NoSuchCPDefinitionOptionRelException - if a matching cp definition option rel could not be found
      NoSuchCPDefinitionOptionRelException
    • fetchByCPDI_R_Last

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

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

      public static void removeByCPDI_R(long CPDefinitionId, boolean required)
      Removes all the cp definition option rels where CPDefinitionId = ? and required = ? from the database.
      Parameters:
      CPDefinitionId - the cp definition ID
      required - the required
    • countByCPDI_R

      public static int countByCPDI_R(long CPDefinitionId, boolean required)
      Returns the number of cp definition option rels where CPDefinitionId = ? and required = ?.
      Parameters:
      CPDefinitionId - the cp definition ID
      required - the required
      Returns:
      the number of matching cp definition option rels
    • findByC_SC

      public static List<CPDefinitionOptionRel> findByC_SC(long CPDefinitionId, boolean skuContributor)
      Returns all the cp definition option rels where CPDefinitionId = ? and skuContributor = ?.
      Parameters:
      CPDefinitionId - the cp definition ID
      skuContributor - the sku contributor
      Returns:
      the matching cp definition option rels
    • findByC_SC

      public static List<CPDefinitionOptionRel> findByC_SC(long CPDefinitionId, boolean skuContributor, int start, int end)
      Returns a range of all the cp definition option rels where CPDefinitionId = ? and skuContributor = ?.

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

      Parameters:
      CPDefinitionId - the cp definition ID
      skuContributor - the sku contributor
      start - the lower bound of the range of cp definition option rels
      end - the upper bound of the range of cp definition option rels (not inclusive)
      Returns:
      the range of matching cp definition option rels
    • findByC_SC

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

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

      Parameters:
      CPDefinitionId - the cp definition ID
      skuContributor - the sku contributor
      start - the lower bound of the range of cp definition option rels
      end - the upper bound of the range of cp definition option rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching cp definition option rels
    • findByC_SC

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

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

      Parameters:
      CPDefinitionId - the cp definition ID
      skuContributor - the sku contributor
      start - the lower bound of the range of cp definition option rels
      end - the upper bound of the range of cp definition option 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 rels
    • findByC_SC_First

      public static CPDefinitionOptionRel findByC_SC_First(long CPDefinitionId, boolean skuContributor, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException
      Returns the first cp definition option rel in the ordered set where CPDefinitionId = ? and skuContributor = ?.
      Parameters:
      CPDefinitionId - the cp definition ID
      skuContributor - the sku contributor
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp definition option rel
      Throws:
      NoSuchCPDefinitionOptionRelException - if a matching cp definition option rel could not be found
      NoSuchCPDefinitionOptionRelException
    • fetchByC_SC_First

      public static CPDefinitionOptionRel fetchByC_SC_First(long CPDefinitionId, boolean skuContributor, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator)
      Returns the first cp definition option rel in the ordered set where CPDefinitionId = ? and skuContributor = ?.
      Parameters:
      CPDefinitionId - the cp definition ID
      skuContributor - the sku contributor
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp definition option rel, or null if a matching cp definition option rel could not be found
    • findByC_SC_Last

      public static CPDefinitionOptionRel findByC_SC_Last(long CPDefinitionId, boolean skuContributor, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException
      Returns the last cp definition option rel in the ordered set where CPDefinitionId = ? and skuContributor = ?.
      Parameters:
      CPDefinitionId - the cp definition ID
      skuContributor - the sku contributor
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp definition option rel
      Throws:
      NoSuchCPDefinitionOptionRelException - if a matching cp definition option rel could not be found
      NoSuchCPDefinitionOptionRelException
    • fetchByC_SC_Last

      public static CPDefinitionOptionRel fetchByC_SC_Last(long CPDefinitionId, boolean skuContributor, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator)
      Returns the last cp definition option rel in the ordered set where CPDefinitionId = ? and skuContributor = ?.
      Parameters:
      CPDefinitionId - the cp definition ID
      skuContributor - the sku contributor
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp definition option rel, or null if a matching cp definition option rel could not be found
    • findByC_SC_PrevAndNext

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

      public static void removeByC_SC(long CPDefinitionId, boolean skuContributor)
      Removes all the cp definition option rels where CPDefinitionId = ? and skuContributor = ? from the database.
      Parameters:
      CPDefinitionId - the cp definition ID
      skuContributor - the sku contributor
    • countByC_SC

      public static int countByC_SC(long CPDefinitionId, boolean skuContributor)
      Returns the number of cp definition option rels where CPDefinitionId = ? and skuContributor = ?.
      Parameters:
      CPDefinitionId - the cp definition ID
      skuContributor - the sku contributor
      Returns:
      the number of matching cp definition option rels
    • findByC_K

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

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

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

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

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

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

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

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

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

      public static CPDefinitionOptionRel updateImpl(CPDefinitionOptionRel cpDefinitionOptionRel)
    • findByPrimaryKey

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

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

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

      public static List<CPDefinitionOptionRel> findAll(int start, int end)
      Returns a range of all the cp definition option 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 CPDefinitionOptionRelModelImpl.

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

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

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

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

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

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

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

      public static CPDefinitionOptionRelPersistence getPersistence()
    • setPersistence

      public static void setPersistence(CPDefinitionOptionRelPersistence persistence)