Interface CommerceShippingFixedOptionPersistence

All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceShippingFixedOption>

@ProviderType public interface CommerceShippingFixedOptionPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceShippingFixedOption>
The persistence interface for the commerce shipping fixed option service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Details

    • findByCommerceShippingMethodId

      List<CommerceShippingFixedOption> findByCommerceShippingMethodId(long commerceShippingMethodId)
      Returns all the commerce shipping fixed options where commerceShippingMethodId = ?.
      Parameters:
      commerceShippingMethodId - the commerce shipping method ID
      Returns:
      the matching commerce shipping fixed options
    • findByCommerceShippingMethodId

      List<CommerceShippingFixedOption> findByCommerceShippingMethodId(long commerceShippingMethodId, int start, int end)
      Returns a range of all the commerce shipping fixed options where commerceShippingMethodId = ?.

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

      Parameters:
      commerceShippingMethodId - the commerce shipping method ID
      start - the lower bound of the range of commerce shipping fixed options
      end - the upper bound of the range of commerce shipping fixed options (not inclusive)
      Returns:
      the range of matching commerce shipping fixed options
    • findByCommerceShippingMethodId

      List<CommerceShippingFixedOption> findByCommerceShippingMethodId(long commerceShippingMethodId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator)
      Returns an ordered range of all the commerce shipping fixed options where commerceShippingMethodId = ?.

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

      Parameters:
      commerceShippingMethodId - the commerce shipping method ID
      start - the lower bound of the range of commerce shipping fixed options
      end - the upper bound of the range of commerce shipping fixed options (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce shipping fixed options
    • findByCommerceShippingMethodId

      List<CommerceShippingFixedOption> findByCommerceShippingMethodId(long commerceShippingMethodId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce shipping fixed options where commerceShippingMethodId = ?.

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

      Parameters:
      commerceShippingMethodId - the commerce shipping method ID
      start - the lower bound of the range of commerce shipping fixed options
      end - the upper bound of the range of commerce shipping fixed 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 commerce shipping fixed options
    • findByCommerceShippingMethodId_First

      CommerceShippingFixedOption findByCommerceShippingMethodId_First(long commerceShippingMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator) throws NoSuchShippingFixedOptionException
      Returns the first commerce shipping fixed option in the ordered set where commerceShippingMethodId = ?.
      Parameters:
      commerceShippingMethodId - the commerce shipping method ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce shipping fixed option
      Throws:
      NoSuchShippingFixedOptionException - if a matching commerce shipping fixed option could not be found
    • fetchByCommerceShippingMethodId_First

      CommerceShippingFixedOption fetchByCommerceShippingMethodId_First(long commerceShippingMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator)
      Returns the first commerce shipping fixed option in the ordered set where commerceShippingMethodId = ?.
      Parameters:
      commerceShippingMethodId - the commerce shipping method ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce shipping fixed option, or null if a matching commerce shipping fixed option could not be found
    • findByCommerceShippingMethodId_Last

      CommerceShippingFixedOption findByCommerceShippingMethodId_Last(long commerceShippingMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator) throws NoSuchShippingFixedOptionException
      Returns the last commerce shipping fixed option in the ordered set where commerceShippingMethodId = ?.
      Parameters:
      commerceShippingMethodId - the commerce shipping method ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce shipping fixed option
      Throws:
      NoSuchShippingFixedOptionException - if a matching commerce shipping fixed option could not be found
    • fetchByCommerceShippingMethodId_Last

      CommerceShippingFixedOption fetchByCommerceShippingMethodId_Last(long commerceShippingMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator)
      Returns the last commerce shipping fixed option in the ordered set where commerceShippingMethodId = ?.
      Parameters:
      commerceShippingMethodId - the commerce shipping method ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce shipping fixed option, or null if a matching commerce shipping fixed option could not be found
    • findByCommerceShippingMethodId_PrevAndNext

      CommerceShippingFixedOption[] findByCommerceShippingMethodId_PrevAndNext(long commerceShippingFixedOptionId, long commerceShippingMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator) throws NoSuchShippingFixedOptionException
      Returns the commerce shipping fixed options before and after the current commerce shipping fixed option in the ordered set where commerceShippingMethodId = ?.
      Parameters:
      commerceShippingFixedOptionId - the primary key of the current commerce shipping fixed option
      commerceShippingMethodId - the commerce shipping method ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce shipping fixed option
      Throws:
      NoSuchShippingFixedOptionException - if a commerce shipping fixed option with the primary key could not be found
    • removeByCommerceShippingMethodId

      void removeByCommerceShippingMethodId(long commerceShippingMethodId)
      Removes all the commerce shipping fixed options where commerceShippingMethodId = ? from the database.
      Parameters:
      commerceShippingMethodId - the commerce shipping method ID
    • countByCommerceShippingMethodId

      int countByCommerceShippingMethodId(long commerceShippingMethodId)
      Returns the number of commerce shipping fixed options where commerceShippingMethodId = ?.
      Parameters:
      commerceShippingMethodId - the commerce shipping method ID
      Returns:
      the number of matching commerce shipping fixed options
    • findByC_K

      Returns the commerce shipping fixed option where companyId = ? and key = ? or throws a NoSuchShippingFixedOptionException if it could not be found.
      Parameters:
      companyId - the company ID
      key - the key
      Returns:
      the matching commerce shipping fixed option
      Throws:
      NoSuchShippingFixedOptionException - if a matching commerce shipping fixed option could not be found
    • fetchByC_K

      CommerceShippingFixedOption fetchByC_K(long companyId, String key)
      Returns the commerce shipping fixed 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 commerce shipping fixed option, or null if a matching commerce shipping fixed option could not be found
    • fetchByC_K

      CommerceShippingFixedOption fetchByC_K(long companyId, String key, boolean useFinderCache)
      Returns the commerce shipping fixed 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 commerce shipping fixed option, or null if a matching commerce shipping fixed option could not be found
    • removeByC_K

      CommerceShippingFixedOption removeByC_K(long companyId, String key) throws NoSuchShippingFixedOptionException
      Removes the commerce shipping fixed option where companyId = ? and key = ? from the database.
      Parameters:
      companyId - the company ID
      key - the key
      Returns:
      the commerce shipping fixed option that was removed
      Throws:
      NoSuchShippingFixedOptionException
    • countByC_K

      int countByC_K(long companyId, String key)
      Returns the number of commerce shipping fixed options where companyId = ? and key = ?.
      Parameters:
      companyId - the company ID
      key - the key
      Returns:
      the number of matching commerce shipping fixed options
    • cacheResult

      void cacheResult(CommerceShippingFixedOption commerceShippingFixedOption)
      Caches the commerce shipping fixed option in the entity cache if it is enabled.
      Parameters:
      commerceShippingFixedOption - the commerce shipping fixed option
    • cacheResult

      void cacheResult(List<CommerceShippingFixedOption> commerceShippingFixedOptions)
      Caches the commerce shipping fixed options in the entity cache if it is enabled.
      Parameters:
      commerceShippingFixedOptions - the commerce shipping fixed options
    • create

      CommerceShippingFixedOption create(long commerceShippingFixedOptionId)
      Creates a new commerce shipping fixed option with the primary key. Does not add the commerce shipping fixed option to the database.
      Parameters:
      commerceShippingFixedOptionId - the primary key for the new commerce shipping fixed option
      Returns:
      the new commerce shipping fixed option
    • remove

      CommerceShippingFixedOption remove(long commerceShippingFixedOptionId) throws NoSuchShippingFixedOptionException
      Removes the commerce shipping fixed option with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      commerceShippingFixedOptionId - the primary key of the commerce shipping fixed option
      Returns:
      the commerce shipping fixed option that was removed
      Throws:
      NoSuchShippingFixedOptionException - if a commerce shipping fixed option with the primary key could not be found
    • updateImpl

      CommerceShippingFixedOption updateImpl(CommerceShippingFixedOption commerceShippingFixedOption)
    • findByPrimaryKey

      CommerceShippingFixedOption findByPrimaryKey(long commerceShippingFixedOptionId) throws NoSuchShippingFixedOptionException
      Returns the commerce shipping fixed option with the primary key or throws a NoSuchShippingFixedOptionException if it could not be found.
      Parameters:
      commerceShippingFixedOptionId - the primary key of the commerce shipping fixed option
      Returns:
      the commerce shipping fixed option
      Throws:
      NoSuchShippingFixedOptionException - if a commerce shipping fixed option with the primary key could not be found
    • fetchByPrimaryKey

      CommerceShippingFixedOption fetchByPrimaryKey(long commerceShippingFixedOptionId)
      Returns the commerce shipping fixed option with the primary key or returns null if it could not be found.
      Parameters:
      commerceShippingFixedOptionId - the primary key of the commerce shipping fixed option
      Returns:
      the commerce shipping fixed option, or null if a commerce shipping fixed option with the primary key could not be found
    • findAll

      Returns all the commerce shipping fixed options.
      Returns:
      the commerce shipping fixed options
    • findAll

      List<CommerceShippingFixedOption> findAll(int start, int end)
      Returns a range of all the commerce shipping fixed 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 CommerceShippingFixedOptionModelImpl.

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

      List<CommerceShippingFixedOption> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator)
      Returns an ordered range of all the commerce shipping fixed 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 CommerceShippingFixedOptionModelImpl.

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

      List<CommerceShippingFixedOption> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingFixedOption> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce shipping fixed 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 CommerceShippingFixedOptionModelImpl.

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

      void removeAll()
      Removes all the commerce shipping fixed options from the database.
    • countAll

      int countAll()
      Returns the number of commerce shipping fixed options.
      Returns:
      the number of commerce shipping fixed options