public class CommercePaymentEntryAuditUtil
extends java.lang.Object
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
CommercePaymentEntryAuditPersistence
Constructor and Description |
---|
CommercePaymentEntryAuditUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CommercePaymentEntryAudit commercePaymentEntryAudit)
Caches the commerce payment entry audit in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommercePaymentEntryAudit> commercePaymentEntryAudits)
Caches the commerce payment entry audits in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommercePaymentEntryAudit commercePaymentEntryAudit) |
static int |
countAll()
Returns the number of commerce payment entry audits.
|
static int |
countByCommercePaymentEntryId(long commercePaymentEntryId)
Returns the number of commerce payment entry audits where commercePaymentEntryId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommercePaymentEntryAudit |
create(long commercePaymentEntryAuditId)
Creates a new commerce payment entry audit with the primary key.
|
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 = ?.
|
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 = ?.
|
static CommercePaymentEntryAudit |
fetchByPrimaryKey(long commercePaymentEntryAuditId)
Returns the commerce payment entry audit with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommercePaymentEntryAudit> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static int |
filterCountByCommercePaymentEntryId(long commercePaymentEntryId)
Returns the number of commerce payment entry audits that the user has permission to view where commercePaymentEntryId = ?.
|
static CommercePaymentEntryAudit[] |
filterFindByCommercePaymentEntryId_PrevAndNext(long commercePaymentEntryAuditId,
long commercePaymentEntryId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentEntryAudit> orderByComparator)
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 = ?.
|
static java.util.List<CommercePaymentEntryAudit> |
filterFindByCommercePaymentEntryId(long commercePaymentEntryId)
Returns all the commerce payment entry audits that the user has permission to view where commercePaymentEntryId = ?.
|
static java.util.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 = ?.
|
static java.util.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 = ?.
|
static java.util.List<CommercePaymentEntryAudit> |
findAll()
Returns all the commerce payment entry audits.
|
static java.util.List<CommercePaymentEntryAudit> |
findAll(int start,
int end)
Returns a range of all the commerce payment entry audits.
|
static java.util.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.
|
static java.util.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.
|
static CommercePaymentEntryAudit |
findByCommercePaymentEntryId_First(long commercePaymentEntryId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentEntryAudit> orderByComparator)
Returns the first commerce payment entry audit in the ordered set where commercePaymentEntryId = ?.
|
static CommercePaymentEntryAudit |
findByCommercePaymentEntryId_Last(long commercePaymentEntryId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentEntryAudit> orderByComparator)
Returns the last commerce payment entry audit in the ordered set where commercePaymentEntryId = ?.
|
static CommercePaymentEntryAudit[] |
findByCommercePaymentEntryId_PrevAndNext(long commercePaymentEntryAuditId,
long commercePaymentEntryId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentEntryAudit> orderByComparator)
Returns the commerce payment entry audits before and after the current commerce payment entry audit in the ordered set where commercePaymentEntryId = ?.
|
static java.util.List<CommercePaymentEntryAudit> |
findByCommercePaymentEntryId(long commercePaymentEntryId)
Returns all the commerce payment entry audits where commercePaymentEntryId = ?.
|
static java.util.List<CommercePaymentEntryAudit> |
findByCommercePaymentEntryId(long commercePaymentEntryId,
int start,
int end)
Returns a range of all the commerce payment entry audits where commercePaymentEntryId = ?.
|
static java.util.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 = ?.
|
static java.util.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 = ?.
|
static CommercePaymentEntryAudit |
findByPrimaryKey(long commercePaymentEntryAuditId)
Returns the commerce payment entry audit with the primary key or throws a
NoSuchPaymentEntryAuditException if it could not be found. |
static java.util.List<CommercePaymentEntryAudit> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommercePaymentEntryAudit> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommercePaymentEntryAudit> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentEntryAudit> orderByComparator) |
static CommercePaymentEntryAuditPersistence |
getPersistence() |
static CommercePaymentEntryAudit |
remove(long commercePaymentEntryAuditId)
Removes the commerce payment entry audit with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce payment entry audits from the database.
|
static void |
removeByCommercePaymentEntryId(long commercePaymentEntryId)
Removes all the commerce payment entry audits where commercePaymentEntryId = ? from the database.
|
static void |
setPersistence(CommercePaymentEntryAuditPersistence persistence) |
static CommercePaymentEntryAudit |
update(CommercePaymentEntryAudit commercePaymentEntryAudit) |
static CommercePaymentEntryAudit |
update(CommercePaymentEntryAudit commercePaymentEntryAudit,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommercePaymentEntryAudit |
updateImpl(CommercePaymentEntryAudit commercePaymentEntryAudit) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CommercePaymentEntryAudit commercePaymentEntryAudit)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,CommercePaymentEntryAudit> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CommercePaymentEntryAudit> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CommercePaymentEntryAudit> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CommercePaymentEntryAudit> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentEntryAudit> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CommercePaymentEntryAudit update(CommercePaymentEntryAudit commercePaymentEntryAudit)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CommercePaymentEntryAudit update(CommercePaymentEntryAudit commercePaymentEntryAudit, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CommercePaymentEntryAudit> findByCommercePaymentEntryId(long commercePaymentEntryId)
commercePaymentEntryId
- the commerce payment entry IDpublic static java.util.List<CommercePaymentEntryAudit> findByCommercePaymentEntryId(long commercePaymentEntryId, int start, int end)
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
.
commercePaymentEntryId
- the commerce payment entry IDstart
- the lower bound of the range of commerce payment entry auditsend
- the upper bound of the range of commerce payment entry audits (not inclusive)public static java.util.List<CommercePaymentEntryAudit> findByCommercePaymentEntryId(long commercePaymentEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentEntryAudit> orderByComparator)
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
.
commercePaymentEntryId
- the commerce payment entry IDstart
- the lower bound of the range of commerce payment entry auditsend
- the upper bound of the range of commerce payment entry audits (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommercePaymentEntryAudit> findByCommercePaymentEntryId(long commercePaymentEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentEntryAudit> orderByComparator, boolean useFinderCache)
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
.
commercePaymentEntryId
- the commerce payment entry IDstart
- the lower bound of the range of commerce payment entry auditsend
- 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 cachepublic static CommercePaymentEntryAudit findByCommercePaymentEntryId_First(long commercePaymentEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentEntryAudit> orderByComparator) throws NoSuchPaymentEntryAuditException
commercePaymentEntryId
- the commerce payment entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPaymentEntryAuditException
- if a matching commerce payment entry audit could not be foundpublic static CommercePaymentEntryAudit fetchByCommercePaymentEntryId_First(long commercePaymentEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentEntryAudit> orderByComparator)
commercePaymentEntryId
- the commerce payment entry IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce payment entry audit could not be foundpublic static CommercePaymentEntryAudit findByCommercePaymentEntryId_Last(long commercePaymentEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentEntryAudit> orderByComparator) throws NoSuchPaymentEntryAuditException
commercePaymentEntryId
- the commerce payment entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPaymentEntryAuditException
- if a matching commerce payment entry audit could not be foundpublic static CommercePaymentEntryAudit fetchByCommercePaymentEntryId_Last(long commercePaymentEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentEntryAudit> orderByComparator)
commercePaymentEntryId
- the commerce payment entry IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce payment entry audit could not be foundpublic static CommercePaymentEntryAudit[] findByCommercePaymentEntryId_PrevAndNext(long commercePaymentEntryAuditId, long commercePaymentEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentEntryAudit> orderByComparator) throws NoSuchPaymentEntryAuditException
commercePaymentEntryAuditId
- the primary key of the current commerce payment entry auditcommercePaymentEntryId
- the commerce payment entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPaymentEntryAuditException
- if a commerce payment entry audit with the primary key could not be foundpublic static java.util.List<CommercePaymentEntryAudit> filterFindByCommercePaymentEntryId(long commercePaymentEntryId)
commercePaymentEntryId
- the commerce payment entry IDpublic static java.util.List<CommercePaymentEntryAudit> filterFindByCommercePaymentEntryId(long commercePaymentEntryId, int start, int end)
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
.
commercePaymentEntryId
- the commerce payment entry IDstart
- the lower bound of the range of commerce payment entry auditsend
- the upper bound of the range of commerce payment entry audits (not inclusive)public static java.util.List<CommercePaymentEntryAudit> filterFindByCommercePaymentEntryId(long commercePaymentEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentEntryAudit> orderByComparator)
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
.
commercePaymentEntryId
- the commerce payment entry IDstart
- the lower bound of the range of commerce payment entry auditsend
- the upper bound of the range of commerce payment entry audits (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static CommercePaymentEntryAudit[] filterFindByCommercePaymentEntryId_PrevAndNext(long commercePaymentEntryAuditId, long commercePaymentEntryId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentEntryAudit> orderByComparator) throws NoSuchPaymentEntryAuditException
commercePaymentEntryAuditId
- the primary key of the current commerce payment entry auditcommercePaymentEntryId
- the commerce payment entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPaymentEntryAuditException
- if a commerce payment entry audit with the primary key could not be foundpublic static void removeByCommercePaymentEntryId(long commercePaymentEntryId)
commercePaymentEntryId
- the commerce payment entry IDpublic static int countByCommercePaymentEntryId(long commercePaymentEntryId)
commercePaymentEntryId
- the commerce payment entry IDpublic static int filterCountByCommercePaymentEntryId(long commercePaymentEntryId)
commercePaymentEntryId
- the commerce payment entry IDpublic static void cacheResult(CommercePaymentEntryAudit commercePaymentEntryAudit)
commercePaymentEntryAudit
- the commerce payment entry auditpublic static void cacheResult(java.util.List<CommercePaymentEntryAudit> commercePaymentEntryAudits)
commercePaymentEntryAudits
- the commerce payment entry auditspublic static CommercePaymentEntryAudit create(long commercePaymentEntryAuditId)
commercePaymentEntryAuditId
- the primary key for the new commerce payment entry auditpublic static CommercePaymentEntryAudit remove(long commercePaymentEntryAuditId) throws NoSuchPaymentEntryAuditException
commercePaymentEntryAuditId
- the primary key of the commerce payment entry auditNoSuchPaymentEntryAuditException
- if a commerce payment entry audit with the primary key could not be foundpublic static CommercePaymentEntryAudit updateImpl(CommercePaymentEntryAudit commercePaymentEntryAudit)
public static CommercePaymentEntryAudit findByPrimaryKey(long commercePaymentEntryAuditId) throws NoSuchPaymentEntryAuditException
NoSuchPaymentEntryAuditException
if it could not be found.commercePaymentEntryAuditId
- the primary key of the commerce payment entry auditNoSuchPaymentEntryAuditException
- if a commerce payment entry audit with the primary key could not be foundpublic static CommercePaymentEntryAudit fetchByPrimaryKey(long commercePaymentEntryAuditId)
null
if it could not be found.commercePaymentEntryAuditId
- the primary key of the commerce payment entry auditnull
if a commerce payment entry audit with the primary key could not be foundpublic static java.util.List<CommercePaymentEntryAudit> findAll()
public static java.util.List<CommercePaymentEntryAudit> findAll(int start, int end)
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
.
start
- the lower bound of the range of commerce payment entry auditsend
- the upper bound of the range of commerce payment entry audits (not inclusive)public static java.util.List<CommercePaymentEntryAudit> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentEntryAudit> orderByComparator)
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
.
start
- the lower bound of the range of commerce payment entry auditsend
- the upper bound of the range of commerce payment entry audits (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommercePaymentEntryAudit> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentEntryAudit> orderByComparator, boolean useFinderCache)
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
.
start
- the lower bound of the range of commerce payment entry auditsend
- 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 cachepublic static void removeAll()
public static int countAll()
public static CommercePaymentEntryAuditPersistence getPersistence()
public static void setPersistence(CommercePaymentEntryAuditPersistence persistence)