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

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Caches the cp option in the entity cache if it is enabled.
    static void
    Caches the cp options in the entity cache if it is enabled.
    static void
     
    static void
    clearCache(CPOption cpOption)
     
    static int
    Returns the number of cp options.
    static int
    countByC_K(long companyId, String key)
    Returns the number of cp options where companyId = ? and key = ?.
    static int
    countByCompanyId(long companyId)
    Returns the number of cp options where companyId = ?.
    static int
    countByERC_C(String externalReferenceCode, long companyId)
    Returns the number of cp options where externalReferenceCode = ? and companyId = ?.
    static int
    Returns the number of cp options where uuid = ?.
    static int
    countByUuid_C(String uuid, long companyId)
    Returns the number of cp options where uuid = ? and companyId = ?.
    static long
    countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    static CPOption
    create(long CPOptionId)
    Creates a new cp option with the primary key.
    static CPOption
    fetchByC_K(long companyId, String key)
    Returns the cp option where companyId = ? and key = ? or returns null if it could not be found.
    static CPOption
    fetchByC_K(long companyId, String key, boolean useFinderCache)
    Returns the cp option where companyId = ? and key = ? or returns null if it could not be found, optionally using the finder cache.
    static CPOption
    fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
    Returns the first cp option in the ordered set where companyId = ?.
    static CPOption
    fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
    Returns the last cp option in the ordered set where companyId = ?.
    static CPOption
    fetchByERC_C(String externalReferenceCode, long companyId)
    Returns the cp option where externalReferenceCode = ? and companyId = ? or returns null if it could not be found.
    static CPOption
    fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache)
    Returns the cp option where externalReferenceCode = ? and companyId = ? or returns null if it could not be found, optionally using the finder cache.
    static CPOption
    fetchByPrimaryKey(long CPOptionId)
    Returns the cp option with the primary key or returns null if it could not be found.
     
    static CPOption
    fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
    Returns the first cp option in the ordered set where uuid = ? and companyId = ?.
    static CPOption
    fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
    Returns the last cp option in the ordered set where uuid = ? and companyId = ?.
    static CPOption
    fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
    Returns the first cp option in the ordered set where uuid = ?.
    static CPOption
    fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
    Returns the last cp option in the ordered set where uuid = ?.
    static int
    filterCountByCompanyId(long companyId)
    Returns the number of cp options that the user has permission to view where companyId = ?.
    static int
    Returns the number of cp options that the user has permission to view where uuid = ?.
    static int
    filterCountByUuid_C(String uuid, long companyId)
    Returns the number of cp options that the user has permission to view where uuid = ? and companyId = ?.
    static List<CPOption>
    filterFindByCompanyId(long companyId)
    Returns all the cp options that the user has permission to view where companyId = ?.
    static List<CPOption>
    filterFindByCompanyId(long companyId, int start, int end)
    Returns a range of all the cp options that the user has permission to view where companyId = ?.
    static List<CPOption>
    filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
    Returns an ordered range of all the cp options that the user has permissions to view where companyId = ?.
    static CPOption[]
    filterFindByCompanyId_PrevAndNext(long CPOptionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
    Returns the cp options before and after the current cp option in the ordered set of cp options that the user has permission to view where companyId = ?.
    static List<CPOption>
    Returns all the cp options that the user has permission to view where uuid = ?.
    static List<CPOption>
    filterFindByUuid(String uuid, int start, int end)
    Returns a range of all the cp options that the user has permission to view where uuid = ?.
    static List<CPOption>
    filterFindByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
    Returns an ordered range of all the cp options that the user has permissions to view where uuid = ?.
    static List<CPOption>
    filterFindByUuid_C(String uuid, long companyId)
    Returns all the cp options that the user has permission to view where uuid = ? and companyId = ?.
    static List<CPOption>
    filterFindByUuid_C(String uuid, long companyId, int start, int end)
    Returns a range of all the cp options that the user has permission to view where uuid = ? and companyId = ?.
    static List<CPOption>
    filterFindByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
    Returns an ordered range of all the cp options that the user has permissions to view where uuid = ? and companyId = ?.
    static CPOption[]
    filterFindByUuid_C_PrevAndNext(long CPOptionId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
    Returns the cp options before and after the current cp option in the ordered set of cp options that the user has permission to view where uuid = ? and companyId = ?.
    static CPOption[]
    filterFindByUuid_PrevAndNext(long CPOptionId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
    Returns the cp options before and after the current cp option in the ordered set of cp options that the user has permission to view where uuid = ?.
    static List<CPOption>
    Returns all the cp options.
    static List<CPOption>
    findAll(int start, int end)
    Returns a range of all the cp options.
    static List<CPOption>
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
    Returns an ordered range of all the cp options.
    static List<CPOption>
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the cp options.
    static CPOption
    findByC_K(long companyId, String key)
    Returns the cp option where companyId = ? and key = ? or throws a NoSuchCPOptionException if it could not be found.
    static List<CPOption>
    findByCompanyId(long companyId)
    Returns all the cp options where companyId = ?.
    static List<CPOption>
    findByCompanyId(long companyId, int start, int end)
    Returns a range of all the cp options where companyId = ?.
    static List<CPOption>
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
    Returns an ordered range of all the cp options where companyId = ?.
    static List<CPOption>
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the cp options where companyId = ?.
    static CPOption
    findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
    Returns the first cp option in the ordered set where companyId = ?.
    static CPOption
    findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
    Returns the last cp option in the ordered set where companyId = ?.
    static CPOption[]
    findByCompanyId_PrevAndNext(long CPOptionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
    Returns the cp options before and after the current cp option in the ordered set where companyId = ?.
    static CPOption
    findByERC_C(String externalReferenceCode, long companyId)
    Returns the cp option where externalReferenceCode = ? and companyId = ? or throws a NoSuchCPOptionException if it could not be found.
    static CPOption
    findByPrimaryKey(long CPOptionId)
    Returns the cp option with the primary key or throws a NoSuchCPOptionException if it could not be found.
    static List<CPOption>
    Returns all the cp options where uuid = ?.
    static List<CPOption>
    findByUuid(String uuid, int start, int end)
    Returns a range of all the cp options where uuid = ?.
    static List<CPOption>
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
    Returns an ordered range of all the cp options where uuid = ?.
    static List<CPOption>
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the cp options where uuid = ?.
    static List<CPOption>
    findByUuid_C(String uuid, long companyId)
    Returns all the cp options where uuid = ? and companyId = ?.
    static List<CPOption>
    findByUuid_C(String uuid, long companyId, int start, int end)
    Returns a range of all the cp options where uuid = ? and companyId = ?.
    static List<CPOption>
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
    Returns an ordered range of all the cp options where uuid = ? and companyId = ?.
    static List<CPOption>
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the cp options where uuid = ? and companyId = ?.
    static CPOption
    findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
    Returns the first cp option in the ordered set where uuid = ? and companyId = ?.
    static CPOption
    findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
    Returns the last cp option in the ordered set where uuid = ? and companyId = ?.
    static CPOption[]
    findByUuid_C_PrevAndNext(long CPOptionId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
    Returns the cp options before and after the current cp option in the ordered set where uuid = ? and companyId = ?.
    static CPOption
    findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
    Returns the first cp option in the ordered set where uuid = ?.
    static CPOption
    findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
    Returns the last cp option in the ordered set where uuid = ?.
    static CPOption[]
    findByUuid_PrevAndNext(long CPOptionId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
    Returns the cp options before and after the current cp option in the ordered set where uuid = ?.
    static List<CPOption>
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    static List<CPOption>
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
     
    static List<CPOption>
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
     
     
    static CPOption
    remove(long CPOptionId)
    Removes the cp option with the primary key from the database.
    static void
    Removes all the cp options from the database.
    static CPOption
    removeByC_K(long companyId, String key)
    Removes the cp option where companyId = ? and key = ? from the database.
    static void
    removeByCompanyId(long companyId)
    Removes all the cp options where companyId = ? from the database.
    static CPOption
    removeByERC_C(String externalReferenceCode, long companyId)
    Removes the cp option where externalReferenceCode = ? and companyId = ? from the database.
    static void
    Removes all the cp options where uuid = ? from the database.
    static void
    removeByUuid_C(String uuid, long companyId)
    Removes all the cp options where uuid = ? and companyId = ? from the database.
    static void
     
    static CPOption
    update(CPOption cpOption)
     
    static CPOption
    update(CPOption cpOption, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static CPOption
    updateImpl(CPOption cpOption)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CPOptionUtil

      public CPOptionUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

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

      public static List<CPOption> findByUuid(String uuid)
      Returns all the cp options where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching cp options
    • findByUuid

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

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

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

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

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

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

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

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

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

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

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

      public static List<CPOption> filterFindByUuid(String uuid)
      Returns all the cp options that the user has permission to view where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching cp options that the user has permission to view
    • filterFindByUuid

      public static List<CPOption> filterFindByUuid(String uuid, int start, int end)
      Returns a range of all the cp options that the user has permission to view 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 CPOptionModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of cp options
      end - the upper bound of the range of cp options (not inclusive)
      Returns:
      the range of matching cp options that the user has permission to view
    • filterFindByUuid

      public static List<CPOption> filterFindByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
      Returns an ordered range of all the cp options that the user has permissions to view 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 CPOptionModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of cp options
      end - the upper bound of the range of cp options (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching cp options that the user has permission to view
    • filterFindByUuid_PrevAndNext

      public static CPOption[] filterFindByUuid_PrevAndNext(long CPOptionId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) throws NoSuchCPOptionException
      Returns the cp options before and after the current cp option in the ordered set of cp options that the user has permission to view where uuid = ?.
      Parameters:
      CPOptionId - the primary key of the current cp option
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp option
      Throws:
      NoSuchCPOptionException - if a cp option with the primary key could not be found
      NoSuchCPOptionException
    • removeByUuid

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

      public static int countByUuid(String uuid)
      Returns the number of cp options where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching cp options
    • filterCountByUuid

      public static int filterCountByUuid(String uuid)
      Returns the number of cp options that the user has permission to view where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching cp options that the user has permission to view
    • findByUuid_C

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

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

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

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

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

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

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

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

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

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

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

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

      public static List<CPOption> filterFindByUuid_C(String uuid, long companyId)
      Returns all the cp options that the user has permission to view where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching cp options that the user has permission to view
    • filterFindByUuid_C

      public static List<CPOption> filterFindByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the cp options that the user has permission to view 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 CPOptionModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of cp options
      end - the upper bound of the range of cp options (not inclusive)
      Returns:
      the range of matching cp options that the user has permission to view
    • filterFindByUuid_C

      public static List<CPOption> filterFindByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
      Returns an ordered range of all the cp options that the user has permissions to view 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 CPOptionModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of cp options
      end - the upper bound of the range of cp options (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching cp options that the user has permission to view
    • filterFindByUuid_C_PrevAndNext

      public static CPOption[] filterFindByUuid_C_PrevAndNext(long CPOptionId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) throws NoSuchCPOptionException
      Returns the cp options before and after the current cp option in the ordered set of cp options that the user has permission to view where uuid = ? and companyId = ?.
      Parameters:
      CPOptionId - the primary key of the current cp option
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp option
      Throws:
      NoSuchCPOptionException - if a cp option with the primary key could not be found
      NoSuchCPOptionException
    • removeByUuid_C

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

      public static int filterCountByUuid_C(String uuid, long companyId)
      Returns the number of cp options that the user has permission to view where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching cp options that the user has permission to view
    • findByCompanyId

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

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

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

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

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

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

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

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

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

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

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

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

      public static List<CPOption> filterFindByCompanyId(long companyId)
      Returns all the cp options that the user has permission to view where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching cp options that the user has permission to view
    • filterFindByCompanyId

      public static List<CPOption> filterFindByCompanyId(long companyId, int start, int end)
      Returns a range of all the cp options that the user has permission to view 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 CPOptionModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of cp options
      end - the upper bound of the range of cp options (not inclusive)
      Returns:
      the range of matching cp options that the user has permission to view
    • filterFindByCompanyId

      public static List<CPOption> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
      Returns an ordered range of all the cp options that the user has permissions to view 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 CPOptionModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of cp options
      end - the upper bound of the range of cp options (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching cp options that the user has permission to view
    • filterFindByCompanyId_PrevAndNext

      public static CPOption[] filterFindByCompanyId_PrevAndNext(long CPOptionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) throws NoSuchCPOptionException
      Returns the cp options before and after the current cp option in the ordered set of cp options that the user has permission to view where companyId = ?.
      Parameters:
      CPOptionId - the primary key of the current cp option
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp option
      Throws:
      NoSuchCPOptionException - if a cp option with the primary key could not be found
      NoSuchCPOptionException
    • removeByCompanyId

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

      public static int countByCompanyId(long companyId)
      Returns the number of cp options where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching cp options
    • filterCountByCompanyId

      public static int filterCountByCompanyId(long companyId)
      Returns the number of cp options that the user has permission to view where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching cp options that the user has permission to view
    • findByC_K

      public static CPOption findByC_K(long companyId, String key) throws NoSuchCPOptionException
      Returns the cp option where companyId = ? and key = ? or throws a NoSuchCPOptionException if it could not be found.
      Parameters:
      companyId - the company ID
      key - the key
      Returns:
      the matching cp option
      Throws:
      NoSuchCPOptionException - if a matching cp option could not be found
      NoSuchCPOptionException
    • fetchByC_K

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

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

      public static CPOption removeByC_K(long companyId, String key) throws NoSuchCPOptionException
      Removes the cp option where companyId = ? and key = ? from the database.
      Parameters:
      companyId - the company ID
      key - the key
      Returns:
      the cp option that was removed
      Throws:
      NoSuchCPOptionException
    • countByC_K

      public static int countByC_K(long companyId, String key)
      Returns the number of cp options where companyId = ? and key = ?.
      Parameters:
      companyId - the company ID
      key - the key
      Returns:
      the number of matching cp options
    • findByERC_C

      public static CPOption findByERC_C(String externalReferenceCode, long companyId) throws NoSuchCPOptionException
      Returns the cp option where externalReferenceCode = ? and companyId = ? or throws a NoSuchCPOptionException if it could not be found.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the matching cp option
      Throws:
      NoSuchCPOptionException - if a matching cp option could not be found
      NoSuchCPOptionException
    • fetchByERC_C

      public static CPOption fetchByERC_C(String externalReferenceCode, long companyId)
      Returns the cp option where externalReferenceCode = ? and companyId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the matching cp option, or null if a matching cp option could not be found
    • fetchByERC_C

      public static CPOption fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache)
      Returns the cp option where externalReferenceCode = ? and companyId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching cp option, or null if a matching cp option could not be found
    • removeByERC_C

      public static CPOption removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchCPOptionException
      Removes the cp option where externalReferenceCode = ? and companyId = ? from the database.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the cp option that was removed
      Throws:
      NoSuchCPOptionException
    • countByERC_C

      public static int countByERC_C(String externalReferenceCode, long companyId)
      Returns the number of cp options where externalReferenceCode = ? and companyId = ?.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the number of matching cp options
    • cacheResult

      public static void cacheResult(CPOption cpOption)
      Caches the cp option in the entity cache if it is enabled.
      Parameters:
      cpOption - the cp option
    • cacheResult

      public static void cacheResult(List<CPOption> cpOptions)
      Caches the cp options in the entity cache if it is enabled.
      Parameters:
      cpOptions - the cp options
    • create

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

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

      public static CPOption updateImpl(CPOption cpOption)
    • findByPrimaryKey

      public static CPOption findByPrimaryKey(long CPOptionId) throws NoSuchCPOptionException
      Returns the cp option with the primary key or throws a NoSuchCPOptionException if it could not be found.
      Parameters:
      CPOptionId - the primary key of the cp option
      Returns:
      the cp option
      Throws:
      NoSuchCPOptionException - if a cp option with the primary key could not be found
      NoSuchCPOptionException
    • fetchByPrimaryKey

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

      public static List<CPOption> findAll()
      Returns all the cp options.
      Returns:
      the cp options
    • findAll

      public static List<CPOption> findAll(int start, int end)
      Returns a range of all the cp options.

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

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

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

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

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

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

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

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

      public static void removeAll()
      Removes all the cp options from the database.
    • countAll

      public static int countAll()
      Returns the number of cp options.
      Returns:
      the number of cp options
    • getPersistence

      public static CPOptionPersistence getPersistence()
    • setPersistence

      public static void setPersistence(CPOptionPersistence persistence)