Interface CommerceShippingMethodPersistence

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

@ProviderType public interface CommerceShippingMethodPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceShippingMethod>
The persistence interface for the commerce shipping method service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    countByG_A(long groupId, boolean active)
    Returns the number of commerce shipping methods where groupId = ? and active = ?.
    int
    countByG_E(long groupId, String engineKey)
    Returns the number of commerce shipping methods where groupId = ? and engineKey = ?.
    int
    countByGroupId(long groupId)
    Returns the number of commerce shipping methods where groupId = ?.
    create(long commerceShippingMethodId)
    Creates a new commerce shipping method with the primary key.
    fetchByG_A_First(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator)
    Returns the first commerce shipping method in the ordered set where groupId = ? and active = ?.
    fetchByG_E(long groupId, String engineKey)
    Returns the commerce shipping method where groupId = ? and engineKey = ? or returns null if it could not be found.
    fetchByG_E(long groupId, String engineKey, boolean useFinderCache)
    Returns the commerce shipping method where groupId = ? and engineKey = ? or returns null if it could not be found, optionally using the finder cache.
    fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator)
    Returns the first commerce shipping method in the ordered set where groupId = ?.
    fetchByPrimaryKey(long commerceShippingMethodId)
    Returns the commerce shipping method with the primary key or returns null if it could not be found.
    findByG_A(long groupId, boolean active)
    Returns all the commerce shipping methods where groupId = ? and active = ?.
    findByG_A(long groupId, boolean active, int start, int end)
    Returns a range of all the commerce shipping methods where groupId = ? and active = ?.
    findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator)
    Returns an ordered range of all the commerce shipping methods where groupId = ? and active = ?.
    findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce shipping methods where groupId = ? and active = ?.
    findByG_A_First(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator)
    Returns the first commerce shipping method in the ordered set where groupId = ? and active = ?.
    findByG_E(long groupId, String engineKey)
    Returns the commerce shipping method where groupId = ? and engineKey = ? or throws a NoSuchShippingMethodException if it could not be found.
    findByGroupId(long groupId)
    Returns all the commerce shipping methods where groupId = ?.
    findByGroupId(long groupId, int start, int end)
    Returns a range of all the commerce shipping methods where groupId = ?.
    findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator)
    Returns an ordered range of all the commerce shipping methods where groupId = ?.
    findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce shipping methods where groupId = ?.
    findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator)
    Returns the first commerce shipping method in the ordered set where groupId = ?.
    findByPrimaryKey(long commerceShippingMethodId)
    Returns the commerce shipping method with the primary key or throws a NoSuchShippingMethodException if it could not be found.
    remove(long commerceShippingMethodId)
    Removes the commerce shipping method with the primary key from the database.
    void
    removeByG_A(long groupId, boolean active)
    Removes all the commerce shipping methods where groupId = ? and active = ? from the database.
    removeByG_E(long groupId, String engineKey)
    Removes the commerce shipping method where groupId = ? and engineKey = ? from the database.
    void
    removeByGroupId(long groupId)
    Removes all the commerce shipping methods where groupId = ? from the database.
    updateImpl(CommerceShippingMethod commerceShippingMethod)
     

    Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence

    cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, setDataSource, unregisterListener, update, update
  • Method Details

    • findByGroupId

      List<CommerceShippingMethod> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce shipping methods where groupId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.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 com.liferay.commerce.model.impl.CommerceShippingMethodModelImpl.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of commerce shipping methods
      end - the upper bound of the range of commerce shipping methods (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 methods
    • findByGroupId_First

      CommerceShippingMethod findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) throws NoSuchShippingMethodException
      Returns the first commerce shipping method in the ordered set where groupId = ?.
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce shipping method
      Throws:
      NoSuchShippingMethodException - if a matching commerce shipping method could not be found
    • fetchByGroupId_First

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

      void removeByGroupId(long groupId)
      Removes all the commerce shipping methods where groupId = ? from the database.
      Parameters:
      groupId - the group ID
    • countByGroupId

      int countByGroupId(long groupId)
      Returns the number of commerce shipping methods where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the number of matching commerce shipping methods
    • findByG_A

      List<CommerceShippingMethod> findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce shipping methods where groupId = ? and active = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.commerce.model.impl.CommerceShippingMethodModelImpl.

      Parameters:
      groupId - the group ID
      active - the active
      start - the lower bound of the range of commerce shipping methods
      end - the upper bound of the range of commerce shipping methods (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 methods
    • findByG_A_First

      CommerceShippingMethod findByG_A_First(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) throws NoSuchShippingMethodException
      Returns the first commerce shipping method in the ordered set where groupId = ? and active = ?.
      Parameters:
      groupId - the group ID
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce shipping method
      Throws:
      NoSuchShippingMethodException - if a matching commerce shipping method could not be found
    • fetchByG_A_First

      CommerceShippingMethod fetchByG_A_First(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator)
      Returns the first commerce shipping method in the ordered set where groupId = ? and active = ?.
      Parameters:
      groupId - the group ID
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce shipping method, or null if a matching commerce shipping method could not be found
    • removeByG_A

      void removeByG_A(long groupId, boolean active)
      Removes all the commerce shipping methods where groupId = ? and active = ? from the database.
      Parameters:
      groupId - the group ID
      active - the active
    • countByG_A

      int countByG_A(long groupId, boolean active)
      Returns the number of commerce shipping methods where groupId = ? and active = ?.
      Parameters:
      groupId - the group ID
      active - the active
      Returns:
      the number of matching commerce shipping methods
    • findByG_E

      CommerceShippingMethod findByG_E(long groupId, String engineKey) throws NoSuchShippingMethodException
      Returns the commerce shipping method where groupId = ? and engineKey = ? or throws a NoSuchShippingMethodException if it could not be found.
      Parameters:
      groupId - the group ID
      engineKey - the engine key
      Returns:
      the matching commerce shipping method
      Throws:
      NoSuchShippingMethodException - if a matching commerce shipping method could not be found
    • fetchByG_E

      CommerceShippingMethod fetchByG_E(long groupId, String engineKey, boolean useFinderCache)
      Returns the commerce shipping method where groupId = ? and engineKey = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      groupId - the group ID
      engineKey - the engine key
      useFinderCache - whether to use the finder cache
      Returns:
      the matching commerce shipping method, or null if a matching commerce shipping method could not be found
    • removeByG_E

      CommerceShippingMethod removeByG_E(long groupId, String engineKey) throws NoSuchShippingMethodException
      Removes the commerce shipping method where groupId = ? and engineKey = ? from the database.
      Parameters:
      groupId - the group ID
      engineKey - the engine key
      Returns:
      the commerce shipping method that was removed
      Throws:
      NoSuchShippingMethodException
    • countByG_E

      int countByG_E(long groupId, String engineKey)
      Returns the number of commerce shipping methods where groupId = ? and engineKey = ?.
      Parameters:
      groupId - the group ID
      engineKey - the engine key
      Returns:
      the number of matching commerce shipping methods
    • create

      CommerceShippingMethod create(long commerceShippingMethodId)
      Creates a new commerce shipping method with the primary key. Does not add the commerce shipping method to the database.
      Parameters:
      commerceShippingMethodId - the primary key for the new commerce shipping method
      Returns:
      the new commerce shipping method
    • remove

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

      CommerceShippingMethod updateImpl(CommerceShippingMethod commerceShippingMethod)
    • findByPrimaryKey

      CommerceShippingMethod findByPrimaryKey(long commerceShippingMethodId) throws NoSuchShippingMethodException
      Returns the commerce shipping method with the primary key or throws a NoSuchShippingMethodException if it could not be found.
      Parameters:
      commerceShippingMethodId - the primary key of the commerce shipping method
      Returns:
      the commerce shipping method
      Throws:
      NoSuchShippingMethodException - if a commerce shipping method with the primary key could not be found
    • fetchByPrimaryKey

      CommerceShippingMethod fetchByPrimaryKey(long commerceShippingMethodId)
      Returns the commerce shipping method with the primary key or returns null if it could not be found.
      Parameters:
      commerceShippingMethodId - the primary key of the commerce shipping method
      Returns:
      the commerce shipping method, or null if a commerce shipping method with the primary key could not be found
    • fetchByG_E

      default CommerceShippingMethod fetchByG_E(long groupId, String engineKey)
      Returns the commerce shipping method where groupId = ? and engineKey = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      groupId - the group ID
      engineKey - the engine key
      Returns:
      the matching commerce shipping method, or null if a matching commerce shipping method could not be found
    • findByGroupId

      default List<CommerceShippingMethod> findByGroupId(long groupId)
      Returns all the commerce shipping methods where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the matching commerce shipping methods
    • findByGroupId

      default List<CommerceShippingMethod> findByGroupId(long groupId, int start, int end)
      Returns a range of all the commerce shipping methods where groupId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.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 com.liferay.commerce.model.impl.CommerceShippingMethodModelImpl.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of commerce shipping methods
      end - the upper bound of the range of commerce shipping methods (not inclusive)
      Returns:
      the range of matching commerce shipping methods
    • findByGroupId

      default List<CommerceShippingMethod> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator)
      Returns an ordered range of all the commerce shipping methods where groupId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.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 com.liferay.commerce.model.impl.CommerceShippingMethodModelImpl.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of commerce shipping methods
      end - the upper bound of the range of commerce shipping methods (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce shipping methods
    • findByG_A

      default List<CommerceShippingMethod> findByG_A(long groupId, boolean active)
      Returns all the commerce shipping methods where groupId = ? and active = ?.
      Parameters:
      groupId - the group ID
      active - the active
      Returns:
      the matching commerce shipping methods
    • findByG_A

      default List<CommerceShippingMethod> findByG_A(long groupId, boolean active, int start, int end)
      Returns a range of all the commerce shipping methods where groupId = ? and active = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.commerce.model.impl.CommerceShippingMethodModelImpl.

      Parameters:
      groupId - the group ID
      active - the active
      start - the lower bound of the range of commerce shipping methods
      end - the upper bound of the range of commerce shipping methods (not inclusive)
      Returns:
      the range of matching commerce shipping methods
    • findByG_A

      default List<CommerceShippingMethod> findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator)
      Returns an ordered range of all the commerce shipping methods where groupId = ? and active = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.commerce.model.impl.CommerceShippingMethodModelImpl.

      Parameters:
      groupId - the group ID
      active - the active
      start - the lower bound of the range of commerce shipping methods
      end - the upper bound of the range of commerce shipping methods (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce shipping methods