Class CPConfigurationEntryUtil

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

public class CPConfigurationEntryUtil extends Object
The persistence utility for the cp configuration entry service. This utility wraps com.liferay.commerce.product.service.persistence.impl.CPConfigurationEntryPersistenceImpl 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

    • CPConfigurationEntryUtil

      public CPConfigurationEntryUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static CPConfigurationEntry removeByUUID_G(String uuid, long groupId) throws NoSuchCPConfigurationEntryException
      Removes the cp configuration entry where uuid = ? and groupId = ? from the database.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the cp configuration entry that was removed
      Throws:
      NoSuchCPConfigurationEntryException
    • countByUUID_G

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static List<CPConfigurationEntry> findByCPConfigurationListId(long CPConfigurationListId)
      Returns all the cp configuration entries where CPConfigurationListId = ?.
      Parameters:
      CPConfigurationListId - the cp configuration list ID
      Returns:
      the matching cp configuration entries
    • findByCPConfigurationListId

      public static List<CPConfigurationEntry> findByCPConfigurationListId(long CPConfigurationListId, int start, int end)
      Returns a range of all the cp configuration entries where CPConfigurationListId = ?.

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

      Parameters:
      CPConfigurationListId - the cp configuration list ID
      start - the lower bound of the range of cp configuration entries
      end - the upper bound of the range of cp configuration entries (not inclusive)
      Returns:
      the range of matching cp configuration entries
    • findByCPConfigurationListId

      public static List<CPConfigurationEntry> findByCPConfigurationListId(long CPConfigurationListId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPConfigurationEntry> orderByComparator)
      Returns an ordered range of all the cp configuration entries where CPConfigurationListId = ?.

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

      Parameters:
      CPConfigurationListId - the cp configuration list ID
      start - the lower bound of the range of cp configuration entries
      end - the upper bound of the range of cp configuration entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching cp configuration entries
    • findByCPConfigurationListId

      public static List<CPConfigurationEntry> findByCPConfigurationListId(long CPConfigurationListId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPConfigurationEntry> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cp configuration entries where CPConfigurationListId = ?.

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

      Parameters:
      CPConfigurationListId - the cp configuration list ID
      start - the lower bound of the range of cp configuration entries
      end - the upper bound of the range of cp configuration entries (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 configuration entries
    • findByCPConfigurationListId_First

      public static CPConfigurationEntry findByCPConfigurationListId_First(long CPConfigurationListId, com.liferay.portal.kernel.util.OrderByComparator<CPConfigurationEntry> orderByComparator) throws NoSuchCPConfigurationEntryException
      Returns the first cp configuration entry in the ordered set where CPConfigurationListId = ?.
      Parameters:
      CPConfigurationListId - the cp configuration list ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp configuration entry
      Throws:
      NoSuchCPConfigurationEntryException - if a matching cp configuration entry could not be found
      NoSuchCPConfigurationEntryException
    • fetchByCPConfigurationListId_First

      public static CPConfigurationEntry fetchByCPConfigurationListId_First(long CPConfigurationListId, com.liferay.portal.kernel.util.OrderByComparator<CPConfigurationEntry> orderByComparator)
      Returns the first cp configuration entry in the ordered set where CPConfigurationListId = ?.
      Parameters:
      CPConfigurationListId - the cp configuration list ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp configuration entry, or null if a matching cp configuration entry could not be found
    • findByCPConfigurationListId_Last

      public static CPConfigurationEntry findByCPConfigurationListId_Last(long CPConfigurationListId, com.liferay.portal.kernel.util.OrderByComparator<CPConfigurationEntry> orderByComparator) throws NoSuchCPConfigurationEntryException
      Returns the last cp configuration entry in the ordered set where CPConfigurationListId = ?.
      Parameters:
      CPConfigurationListId - the cp configuration list ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp configuration entry
      Throws:
      NoSuchCPConfigurationEntryException - if a matching cp configuration entry could not be found
      NoSuchCPConfigurationEntryException
    • fetchByCPConfigurationListId_Last

      public static CPConfigurationEntry fetchByCPConfigurationListId_Last(long CPConfigurationListId, com.liferay.portal.kernel.util.OrderByComparator<CPConfigurationEntry> orderByComparator)
      Returns the last cp configuration entry in the ordered set where CPConfigurationListId = ?.
      Parameters:
      CPConfigurationListId - the cp configuration list ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp configuration entry, or null if a matching cp configuration entry could not be found
    • findByCPConfigurationListId_PrevAndNext

      public static CPConfigurationEntry[] findByCPConfigurationListId_PrevAndNext(long CPConfigurationEntryId, long CPConfigurationListId, com.liferay.portal.kernel.util.OrderByComparator<CPConfigurationEntry> orderByComparator) throws NoSuchCPConfigurationEntryException
      Returns the cp configuration entries before and after the current cp configuration entry in the ordered set where CPConfigurationListId = ?.
      Parameters:
      CPConfigurationEntryId - the primary key of the current cp configuration entry
      CPConfigurationListId - the cp configuration list ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp configuration entry
      Throws:
      NoSuchCPConfigurationEntryException - if a cp configuration entry with the primary key could not be found
      NoSuchCPConfigurationEntryException
    • removeByCPConfigurationListId

      public static void removeByCPConfigurationListId(long CPConfigurationListId)
      Removes all the cp configuration entries where CPConfigurationListId = ? from the database.
      Parameters:
      CPConfigurationListId - the cp configuration list ID
    • countByCPConfigurationListId

      public static int countByCPConfigurationListId(long CPConfigurationListId)
      Returns the number of cp configuration entries where CPConfigurationListId = ?.
      Parameters:
      CPConfigurationListId - the cp configuration list ID
      Returns:
      the number of matching cp configuration entries
    • findByC_C

      public static List<CPConfigurationEntry> findByC_C(long classNameId, long classPK)
      Returns all the cp configuration entries where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the matching cp configuration entries
    • findByC_C

      public static List<CPConfigurationEntry> findByC_C(long classNameId, long classPK, int start, int end)
      Returns a range of all the cp configuration entries where classNameId = ? and classPK = ?.

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

      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      start - the lower bound of the range of cp configuration entries
      end - the upper bound of the range of cp configuration entries (not inclusive)
      Returns:
      the range of matching cp configuration entries
    • findByC_C

      public static List<CPConfigurationEntry> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPConfigurationEntry> orderByComparator)
      Returns an ordered range of all the cp configuration entries where classNameId = ? and classPK = ?.

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

      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      start - the lower bound of the range of cp configuration entries
      end - the upper bound of the range of cp configuration entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching cp configuration entries
    • findByC_C

      public static List<CPConfigurationEntry> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPConfigurationEntry> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cp configuration entries where classNameId = ? and classPK = ?.

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

      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      start - the lower bound of the range of cp configuration entries
      end - the upper bound of the range of cp configuration entries (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 configuration entries
    • findByC_C_First

      public static CPConfigurationEntry findByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CPConfigurationEntry> orderByComparator) throws NoSuchCPConfigurationEntryException
      Returns the first cp configuration entry in the ordered set where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp configuration entry
      Throws:
      NoSuchCPConfigurationEntryException - if a matching cp configuration entry could not be found
      NoSuchCPConfigurationEntryException
    • fetchByC_C_First

      public static CPConfigurationEntry fetchByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CPConfigurationEntry> orderByComparator)
      Returns the first cp configuration entry in the ordered set where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp configuration entry, or null if a matching cp configuration entry could not be found
    • findByC_C_Last

      public static CPConfigurationEntry findByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CPConfigurationEntry> orderByComparator) throws NoSuchCPConfigurationEntryException
      Returns the last cp configuration entry in the ordered set where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp configuration entry
      Throws:
      NoSuchCPConfigurationEntryException - if a matching cp configuration entry could not be found
      NoSuchCPConfigurationEntryException
    • fetchByC_C_Last

      public static CPConfigurationEntry fetchByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CPConfigurationEntry> orderByComparator)
      Returns the last cp configuration entry in the ordered set where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp configuration entry, or null if a matching cp configuration entry could not be found
    • findByC_C_PrevAndNext

      public static CPConfigurationEntry[] findByC_C_PrevAndNext(long CPConfigurationEntryId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CPConfigurationEntry> orderByComparator) throws NoSuchCPConfigurationEntryException
      Returns the cp configuration entries before and after the current cp configuration entry in the ordered set where classNameId = ? and classPK = ?.
      Parameters:
      CPConfigurationEntryId - the primary key of the current cp configuration entry
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp configuration entry
      Throws:
      NoSuchCPConfigurationEntryException - if a cp configuration entry with the primary key could not be found
      NoSuchCPConfigurationEntryException
    • removeByC_C

      public static void removeByC_C(long classNameId, long classPK)
      Removes all the cp configuration entries where classNameId = ? and classPK = ? from the database.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
    • countByC_C

      public static int countByC_C(long classNameId, long classPK)
      Returns the number of cp configuration entries where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the number of matching cp configuration entries
    • findByC_C_C

      public static CPConfigurationEntry findByC_C_C(long classNameId, long classPK, long CPConfigurationListId) throws NoSuchCPConfigurationEntryException
      Returns the cp configuration entry where classNameId = ? and classPK = ? and CPConfigurationListId = ? or throws a NoSuchCPConfigurationEntryException if it could not be found.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      CPConfigurationListId - the cp configuration list ID
      Returns:
      the matching cp configuration entry
      Throws:
      NoSuchCPConfigurationEntryException - if a matching cp configuration entry could not be found
      NoSuchCPConfigurationEntryException
    • fetchByC_C_C

      public static CPConfigurationEntry fetchByC_C_C(long classNameId, long classPK, long CPConfigurationListId)
      Returns the cp configuration entry where classNameId = ? and classPK = ? and CPConfigurationListId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      CPConfigurationListId - the cp configuration list ID
      Returns:
      the matching cp configuration entry, or null if a matching cp configuration entry could not be found
    • fetchByC_C_C

      public static CPConfigurationEntry fetchByC_C_C(long classNameId, long classPK, long CPConfigurationListId, boolean useFinderCache)
      Returns the cp configuration entry where classNameId = ? and classPK = ? and CPConfigurationListId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      CPConfigurationListId - the cp configuration list ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching cp configuration entry, or null if a matching cp configuration entry could not be found
    • removeByC_C_C

      public static CPConfigurationEntry removeByC_C_C(long classNameId, long classPK, long CPConfigurationListId) throws NoSuchCPConfigurationEntryException
      Removes the cp configuration entry where classNameId = ? and classPK = ? and CPConfigurationListId = ? from the database.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      CPConfigurationListId - the cp configuration list ID
      Returns:
      the cp configuration entry that was removed
      Throws:
      NoSuchCPConfigurationEntryException
    • countByC_C_C

      public static int countByC_C_C(long classNameId, long classPK, long CPConfigurationListId)
      Returns the number of cp configuration entries where classNameId = ? and classPK = ? and CPConfigurationListId = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      CPConfigurationListId - the cp configuration list ID
      Returns:
      the number of matching cp configuration entries
    • findByC_C_V

      public static List<CPConfigurationEntry> findByC_C_V(long classNameId, long classPK, boolean visible)
      Returns all the cp configuration entries where classNameId = ? and classPK = ? and visible = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      visible - the visible
      Returns:
      the matching cp configuration entries
    • findByC_C_V

      public static List<CPConfigurationEntry> findByC_C_V(long classNameId, long classPK, boolean visible, int start, int end)
      Returns a range of all the cp configuration entries where classNameId = ? and classPK = ? and visible = ?.

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

      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      visible - the visible
      start - the lower bound of the range of cp configuration entries
      end - the upper bound of the range of cp configuration entries (not inclusive)
      Returns:
      the range of matching cp configuration entries
    • findByC_C_V

      public static List<CPConfigurationEntry> findByC_C_V(long classNameId, long classPK, boolean visible, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPConfigurationEntry> orderByComparator)
      Returns an ordered range of all the cp configuration entries where classNameId = ? and classPK = ? and visible = ?.

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

      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      visible - the visible
      start - the lower bound of the range of cp configuration entries
      end - the upper bound of the range of cp configuration entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching cp configuration entries
    • findByC_C_V

      public static List<CPConfigurationEntry> findByC_C_V(long classNameId, long classPK, boolean visible, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPConfigurationEntry> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cp configuration entries where classNameId = ? and classPK = ? and visible = ?.

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

      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      visible - the visible
      start - the lower bound of the range of cp configuration entries
      end - the upper bound of the range of cp configuration entries (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 configuration entries
    • findByC_C_V_First

      public static CPConfigurationEntry findByC_C_V_First(long classNameId, long classPK, boolean visible, com.liferay.portal.kernel.util.OrderByComparator<CPConfigurationEntry> orderByComparator) throws NoSuchCPConfigurationEntryException
      Returns the first cp configuration entry in the ordered set where classNameId = ? and classPK = ? and visible = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      visible - the visible
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp configuration entry
      Throws:
      NoSuchCPConfigurationEntryException - if a matching cp configuration entry could not be found
      NoSuchCPConfigurationEntryException
    • fetchByC_C_V_First

      public static CPConfigurationEntry fetchByC_C_V_First(long classNameId, long classPK, boolean visible, com.liferay.portal.kernel.util.OrderByComparator<CPConfigurationEntry> orderByComparator)
      Returns the first cp configuration entry in the ordered set where classNameId = ? and classPK = ? and visible = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      visible - the visible
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp configuration entry, or null if a matching cp configuration entry could not be found
    • findByC_C_V_Last

      public static CPConfigurationEntry findByC_C_V_Last(long classNameId, long classPK, boolean visible, com.liferay.portal.kernel.util.OrderByComparator<CPConfigurationEntry> orderByComparator) throws NoSuchCPConfigurationEntryException
      Returns the last cp configuration entry in the ordered set where classNameId = ? and classPK = ? and visible = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      visible - the visible
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp configuration entry
      Throws:
      NoSuchCPConfigurationEntryException - if a matching cp configuration entry could not be found
      NoSuchCPConfigurationEntryException
    • fetchByC_C_V_Last

      public static CPConfigurationEntry fetchByC_C_V_Last(long classNameId, long classPK, boolean visible, com.liferay.portal.kernel.util.OrderByComparator<CPConfigurationEntry> orderByComparator)
      Returns the last cp configuration entry in the ordered set where classNameId = ? and classPK = ? and visible = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      visible - the visible
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp configuration entry, or null if a matching cp configuration entry could not be found
    • findByC_C_V_PrevAndNext

      public static CPConfigurationEntry[] findByC_C_V_PrevAndNext(long CPConfigurationEntryId, long classNameId, long classPK, boolean visible, com.liferay.portal.kernel.util.OrderByComparator<CPConfigurationEntry> orderByComparator) throws NoSuchCPConfigurationEntryException
      Returns the cp configuration entries before and after the current cp configuration entry in the ordered set where classNameId = ? and classPK = ? and visible = ?.
      Parameters:
      CPConfigurationEntryId - the primary key of the current cp configuration entry
      classNameId - the class name ID
      classPK - the class pk
      visible - the visible
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp configuration entry
      Throws:
      NoSuchCPConfigurationEntryException - if a cp configuration entry with the primary key could not be found
      NoSuchCPConfigurationEntryException
    • removeByC_C_V

      public static void removeByC_C_V(long classNameId, long classPK, boolean visible)
      Removes all the cp configuration entries where classNameId = ? and classPK = ? and visible = ? from the database.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      visible - the visible
    • countByC_C_V

      public static int countByC_C_V(long classNameId, long classPK, boolean visible)
      Returns the number of cp configuration entries where classNameId = ? and classPK = ? and visible = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      visible - the visible
      Returns:
      the number of matching cp configuration entries
    • findByERC_C

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

      public static CPConfigurationEntry fetchByERC_C(String externalReferenceCode, long companyId)
      Returns the cp configuration entry 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 configuration entry, or null if a matching cp configuration entry could not be found
    • fetchByERC_C

      public static CPConfigurationEntry fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache)
      Returns the cp configuration entry 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 configuration entry, or null if a matching cp configuration entry could not be found
    • removeByERC_C

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

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

      public static void cacheResult(CPConfigurationEntry cpConfigurationEntry)
      Caches the cp configuration entry in the entity cache if it is enabled.
      Parameters:
      cpConfigurationEntry - the cp configuration entry
    • cacheResult

      public static void cacheResult(List<CPConfigurationEntry> cpConfigurationEntries)
      Caches the cp configuration entries in the entity cache if it is enabled.
      Parameters:
      cpConfigurationEntries - the cp configuration entries
    • create

      public static CPConfigurationEntry create(long CPConfigurationEntryId)
      Creates a new cp configuration entry with the primary key. Does not add the cp configuration entry to the database.
      Parameters:
      CPConfigurationEntryId - the primary key for the new cp configuration entry
      Returns:
      the new cp configuration entry
    • remove

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

      public static CPConfigurationEntry updateImpl(CPConfigurationEntry cpConfigurationEntry)
    • findByPrimaryKey

      public static CPConfigurationEntry findByPrimaryKey(long CPConfigurationEntryId) throws NoSuchCPConfigurationEntryException
      Returns the cp configuration entry with the primary key or throws a NoSuchCPConfigurationEntryException if it could not be found.
      Parameters:
      CPConfigurationEntryId - the primary key of the cp configuration entry
      Returns:
      the cp configuration entry
      Throws:
      NoSuchCPConfigurationEntryException - if a cp configuration entry with the primary key could not be found
      NoSuchCPConfigurationEntryException
    • fetchByPrimaryKey

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

      public static List<CPConfigurationEntry> findAll()
      Returns all the cp configuration entries.
      Returns:
      the cp configuration entries
    • findAll

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

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

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

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

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

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

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

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

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

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

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

      public static CPConfigurationEntryPersistence getPersistence()
    • setPersistence

      public static void setPersistence(CPConfigurationEntryPersistence persistence)