Class CommercePaymentEntryAuditUtil

java.lang.Object
com.liferay.commerce.payment.service.persistence.CommercePaymentEntryAuditUtil

public class CommercePaymentEntryAuditUtil extends Object
The persistence utility for the commerce payment entry audit service. This utility wraps com.liferay.commerce.payment.service.persistence.impl.CommercePaymentEntryAuditPersistenceImpl 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

    • CommercePaymentEntryAuditUtil

      public CommercePaymentEntryAuditUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

      public static CommercePaymentEntryAudit update(CommercePaymentEntryAudit commercePaymentEntryAudit, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByCommercePaymentEntryId

      public static List<CommercePaymentEntryAudit> findByCommercePaymentEntryId(long commercePaymentEntryId)
      Returns all the commerce payment entry audits where commercePaymentEntryId = ?.
      Parameters:
      commercePaymentEntryId - the commerce payment entry ID
      Returns:
      the matching commerce payment entry audits
    • findByCommercePaymentEntryId

      public static List<CommercePaymentEntryAudit> findByCommercePaymentEntryId(long commercePaymentEntryId, int start, int end)
      Returns a range of all the commerce payment entry audits where commercePaymentEntryId = ?.

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

      Parameters:
      commercePaymentEntryId - the commerce payment entry ID
      start - the lower bound of the range of commerce payment entry audits
      end - the upper bound of the range of commerce payment entry audits (not inclusive)
      Returns:
      the range of matching commerce payment entry audits
    • findByCommercePaymentEntryId

      public static List<CommercePaymentEntryAudit> findByCommercePaymentEntryId(long commercePaymentEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentEntryAudit> orderByComparator)
      Returns an ordered range of all the commerce payment entry audits where commercePaymentEntryId = ?.

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

      Parameters:
      commercePaymentEntryId - the commerce payment entry ID
      start - the lower bound of the range of commerce payment entry audits
      end - the upper bound of the range of commerce payment entry audits (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce payment entry audits
    • findByCommercePaymentEntryId

      public static List<CommercePaymentEntryAudit> findByCommercePaymentEntryId(long commercePaymentEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentEntryAudit> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce payment entry audits where commercePaymentEntryId = ?.

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

      Parameters:
      commercePaymentEntryId - the commerce payment entry ID
      start - the lower bound of the range of commerce payment entry audits
      end - the upper bound of the range of commerce payment entry audits (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 payment entry audits
    • findByCommercePaymentEntryId_First

      public static CommercePaymentEntryAudit findByCommercePaymentEntryId_First(long commercePaymentEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentEntryAudit> orderByComparator) throws NoSuchPaymentEntryAuditException
      Returns the first commerce payment entry audit in the ordered set where commercePaymentEntryId = ?.
      Parameters:
      commercePaymentEntryId - the commerce payment entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce payment entry audit
      Throws:
      NoSuchPaymentEntryAuditException - if a matching commerce payment entry audit could not be found
      NoSuchPaymentEntryAuditException
    • fetchByCommercePaymentEntryId_First

      public static CommercePaymentEntryAudit fetchByCommercePaymentEntryId_First(long commercePaymentEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentEntryAudit> orderByComparator)
      Returns the first commerce payment entry audit in the ordered set where commercePaymentEntryId = ?.
      Parameters:
      commercePaymentEntryId - the commerce payment entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce payment entry audit, or null if a matching commerce payment entry audit could not be found
    • findByCommercePaymentEntryId_Last

      public static CommercePaymentEntryAudit findByCommercePaymentEntryId_Last(long commercePaymentEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentEntryAudit> orderByComparator) throws NoSuchPaymentEntryAuditException
      Returns the last commerce payment entry audit in the ordered set where commercePaymentEntryId = ?.
      Parameters:
      commercePaymentEntryId - the commerce payment entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce payment entry audit
      Throws:
      NoSuchPaymentEntryAuditException - if a matching commerce payment entry audit could not be found
      NoSuchPaymentEntryAuditException
    • fetchByCommercePaymentEntryId_Last

      public static CommercePaymentEntryAudit fetchByCommercePaymentEntryId_Last(long commercePaymentEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentEntryAudit> orderByComparator)
      Returns the last commerce payment entry audit in the ordered set where commercePaymentEntryId = ?.
      Parameters:
      commercePaymentEntryId - the commerce payment entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce payment entry audit, or null if a matching commerce payment entry audit could not be found
    • findByCommercePaymentEntryId_PrevAndNext

      public static CommercePaymentEntryAudit[] findByCommercePaymentEntryId_PrevAndNext(long commercePaymentEntryAuditId, long commercePaymentEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentEntryAudit> orderByComparator) throws NoSuchPaymentEntryAuditException
      Returns the commerce payment entry audits before and after the current commerce payment entry audit in the ordered set where commercePaymentEntryId = ?.
      Parameters:
      commercePaymentEntryAuditId - the primary key of the current commerce payment entry audit
      commercePaymentEntryId - the commerce payment entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce payment entry audit
      Throws:
      NoSuchPaymentEntryAuditException - if a commerce payment entry audit with the primary key could not be found
      NoSuchPaymentEntryAuditException
    • filterFindByCommercePaymentEntryId

      public static List<CommercePaymentEntryAudit> filterFindByCommercePaymentEntryId(long commercePaymentEntryId)
      Returns all the commerce payment entry audits that the user has permission to view where commercePaymentEntryId = ?.
      Parameters:
      commercePaymentEntryId - the commerce payment entry ID
      Returns:
      the matching commerce payment entry audits that the user has permission to view
    • filterFindByCommercePaymentEntryId

      public static List<CommercePaymentEntryAudit> filterFindByCommercePaymentEntryId(long commercePaymentEntryId, int start, int end)
      Returns a range of all the commerce payment entry audits that the user has permission to view where commercePaymentEntryId = ?.

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

      Parameters:
      commercePaymentEntryId - the commerce payment entry ID
      start - the lower bound of the range of commerce payment entry audits
      end - the upper bound of the range of commerce payment entry audits (not inclusive)
      Returns:
      the range of matching commerce payment entry audits that the user has permission to view
    • filterFindByCommercePaymentEntryId

      public static List<CommercePaymentEntryAudit> filterFindByCommercePaymentEntryId(long commercePaymentEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentEntryAudit> orderByComparator)
      Returns an ordered range of all the commerce payment entry audits that the user has permissions to view where commercePaymentEntryId = ?.

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

      Parameters:
      commercePaymentEntryId - the commerce payment entry ID
      start - the lower bound of the range of commerce payment entry audits
      end - the upper bound of the range of commerce payment entry audits (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce payment entry audits that the user has permission to view
    • filterFindByCommercePaymentEntryId_PrevAndNext

      public static CommercePaymentEntryAudit[] filterFindByCommercePaymentEntryId_PrevAndNext(long commercePaymentEntryAuditId, long commercePaymentEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentEntryAudit> orderByComparator) throws NoSuchPaymentEntryAuditException
      Returns the commerce payment entry audits before and after the current commerce payment entry audit in the ordered set of commerce payment entry audits that the user has permission to view where commercePaymentEntryId = ?.
      Parameters:
      commercePaymentEntryAuditId - the primary key of the current commerce payment entry audit
      commercePaymentEntryId - the commerce payment entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce payment entry audit
      Throws:
      NoSuchPaymentEntryAuditException - if a commerce payment entry audit with the primary key could not be found
      NoSuchPaymentEntryAuditException
    • removeByCommercePaymentEntryId

      public static void removeByCommercePaymentEntryId(long commercePaymentEntryId)
      Removes all the commerce payment entry audits where commercePaymentEntryId = ? from the database.
      Parameters:
      commercePaymentEntryId - the commerce payment entry ID
    • countByCommercePaymentEntryId

      public static int countByCommercePaymentEntryId(long commercePaymentEntryId)
      Returns the number of commerce payment entry audits where commercePaymentEntryId = ?.
      Parameters:
      commercePaymentEntryId - the commerce payment entry ID
      Returns:
      the number of matching commerce payment entry audits
    • filterCountByCommercePaymentEntryId

      public static int filterCountByCommercePaymentEntryId(long commercePaymentEntryId)
      Returns the number of commerce payment entry audits that the user has permission to view where commercePaymentEntryId = ?.
      Parameters:
      commercePaymentEntryId - the commerce payment entry ID
      Returns:
      the number of matching commerce payment entry audits that the user has permission to view
    • cacheResult

      public static void cacheResult(CommercePaymentEntryAudit commercePaymentEntryAudit)
      Caches the commerce payment entry audit in the entity cache if it is enabled.
      Parameters:
      commercePaymentEntryAudit - the commerce payment entry audit
    • cacheResult

      public static void cacheResult(List<CommercePaymentEntryAudit> commercePaymentEntryAudits)
      Caches the commerce payment entry audits in the entity cache if it is enabled.
      Parameters:
      commercePaymentEntryAudits - the commerce payment entry audits
    • create

      public static CommercePaymentEntryAudit create(long commercePaymentEntryAuditId)
      Creates a new commerce payment entry audit with the primary key. Does not add the commerce payment entry audit to the database.
      Parameters:
      commercePaymentEntryAuditId - the primary key for the new commerce payment entry audit
      Returns:
      the new commerce payment entry audit
    • remove

      public static CommercePaymentEntryAudit remove(long commercePaymentEntryAuditId) throws NoSuchPaymentEntryAuditException
      Removes the commerce payment entry audit with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      commercePaymentEntryAuditId - the primary key of the commerce payment entry audit
      Returns:
      the commerce payment entry audit that was removed
      Throws:
      NoSuchPaymentEntryAuditException - if a commerce payment entry audit with the primary key could not be found
      NoSuchPaymentEntryAuditException
    • updateImpl

      public static CommercePaymentEntryAudit updateImpl(CommercePaymentEntryAudit commercePaymentEntryAudit)
    • findByPrimaryKey

      public static CommercePaymentEntryAudit findByPrimaryKey(long commercePaymentEntryAuditId) throws NoSuchPaymentEntryAuditException
      Returns the commerce payment entry audit with the primary key or throws a NoSuchPaymentEntryAuditException if it could not be found.
      Parameters:
      commercePaymentEntryAuditId - the primary key of the commerce payment entry audit
      Returns:
      the commerce payment entry audit
      Throws:
      NoSuchPaymentEntryAuditException - if a commerce payment entry audit with the primary key could not be found
      NoSuchPaymentEntryAuditException
    • fetchByPrimaryKey

      public static CommercePaymentEntryAudit fetchByPrimaryKey(long commercePaymentEntryAuditId)
      Returns the commerce payment entry audit with the primary key or returns null if it could not be found.
      Parameters:
      commercePaymentEntryAuditId - the primary key of the commerce payment entry audit
      Returns:
      the commerce payment entry audit, or null if a commerce payment entry audit with the primary key could not be found
    • findAll

      public static List<CommercePaymentEntryAudit> findAll()
      Returns all the commerce payment entry audits.
      Returns:
      the commerce payment entry audits
    • findAll

      public static List<CommercePaymentEntryAudit> findAll(int start, int end)
      Returns a range of all the commerce payment entry audits.

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

      Parameters:
      start - the lower bound of the range of commerce payment entry audits
      end - the upper bound of the range of commerce payment entry audits (not inclusive)
      Returns:
      the range of commerce payment entry audits
    • findAll

      public static List<CommercePaymentEntryAudit> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentEntryAudit> orderByComparator)
      Returns an ordered range of all the commerce payment entry audits.

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

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

      public static List<CommercePaymentEntryAudit> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentEntryAudit> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce payment entry audits.

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

      Parameters:
      start - the lower bound of the range of commerce payment entry audits
      end - the upper bound of the range of commerce payment entry audits (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 payment entry audits
    • removeAll

      public static void removeAll()
      Removes all the commerce payment entry audits from the database.
    • countAll

      public static int countAll()
      Returns the number of commerce payment entry audits.
      Returns:
      the number of commerce payment entry audits
    • getPersistence

      public static CommercePaymentEntryAuditPersistence getPersistence()
    • setPersistence

      public static void setPersistence(CommercePaymentEntryAuditPersistence persistence)