public class CommerceOrderPaymentUtil
extends java.lang.Object
com.liferay.commerce.service.persistence.impl.CommerceOrderPaymentPersistenceImpl
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
CommerceOrderPaymentPersistence
Constructor and Description |
---|
CommerceOrderPaymentUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CommerceOrderPayment commerceOrderPayment)
Caches the commerce order payment in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceOrderPayment> commerceOrderPayments)
Caches the commerce order payments in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceOrderPayment commerceOrderPayment) |
static int |
countAll()
Returns the number of commerce order payments.
|
static int |
countByCommerceOrderId(long commerceOrderId)
Returns the number of commerce order payments where commerceOrderId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceOrderPayment |
create(long commerceOrderPaymentId)
Creates a new commerce order payment with the primary key.
|
static CommerceOrderPayment |
fetchByCommerceOrderId_First(long commerceOrderId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator)
Returns the first commerce order payment in the ordered set where commerceOrderId = ?.
|
static CommerceOrderPayment |
fetchByCommerceOrderId_Last(long commerceOrderId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator)
Returns the last commerce order payment in the ordered set where commerceOrderId = ?.
|
static CommerceOrderPayment |
fetchByPrimaryKey(long commerceOrderPaymentId)
Returns the commerce order payment with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceOrderPayment> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<CommerceOrderPayment> |
findAll()
Returns all the commerce order payments.
|
static java.util.List<CommerceOrderPayment> |
findAll(int start,
int end)
Returns a range of all the commerce order payments.
|
static java.util.List<CommerceOrderPayment> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator)
Returns an ordered range of all the commerce order payments.
|
static java.util.List<CommerceOrderPayment> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce order payments.
|
static CommerceOrderPayment |
findByCommerceOrderId_First(long commerceOrderId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator)
Returns the first commerce order payment in the ordered set where commerceOrderId = ?.
|
static CommerceOrderPayment |
findByCommerceOrderId_Last(long commerceOrderId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator)
Returns the last commerce order payment in the ordered set where commerceOrderId = ?.
|
static CommerceOrderPayment[] |
findByCommerceOrderId_PrevAndNext(long commerceOrderPaymentId,
long commerceOrderId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator)
Returns the commerce order payments before and after the current commerce order payment in the ordered set where commerceOrderId = ?.
|
static java.util.List<CommerceOrderPayment> |
findByCommerceOrderId(long commerceOrderId)
Returns all the commerce order payments where commerceOrderId = ?.
|
static java.util.List<CommerceOrderPayment> |
findByCommerceOrderId(long commerceOrderId,
int start,
int end)
Returns a range of all the commerce order payments where commerceOrderId = ?.
|
static java.util.List<CommerceOrderPayment> |
findByCommerceOrderId(long commerceOrderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator)
Returns an ordered range of all the commerce order payments where commerceOrderId = ?.
|
static java.util.List<CommerceOrderPayment> |
findByCommerceOrderId(long commerceOrderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce order payments where commerceOrderId = ?.
|
static CommerceOrderPayment |
findByPrimaryKey(long commerceOrderPaymentId)
Returns the commerce order payment with the primary key or throws a
NoSuchOrderPaymentException if it could not be found. |
static java.util.List<CommerceOrderPayment> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceOrderPayment> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceOrderPayment> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator) |
static CommerceOrderPaymentPersistence |
getPersistence() |
static CommerceOrderPayment |
remove(long commerceOrderPaymentId)
Removes the commerce order payment with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce order payments from the database.
|
static void |
removeByCommerceOrderId(long commerceOrderId)
Removes all the commerce order payments where commerceOrderId = ? from the database.
|
static CommerceOrderPayment |
update(CommerceOrderPayment commerceOrderPayment) |
static CommerceOrderPayment |
update(CommerceOrderPayment commerceOrderPayment,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceOrderPayment |
updateImpl(CommerceOrderPayment commerceOrderPayment) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CommerceOrderPayment commerceOrderPayment)
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,CommerceOrderPayment> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CommerceOrderPayment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CommerceOrderPayment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CommerceOrderPayment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CommerceOrderPayment update(CommerceOrderPayment commerceOrderPayment)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CommerceOrderPayment update(CommerceOrderPayment commerceOrderPayment, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CommerceOrderPayment> findByCommerceOrderId(long commerceOrderId)
commerceOrderId
- the commerce order IDpublic static java.util.List<CommerceOrderPayment> findByCommerceOrderId(long commerceOrderId, 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 CommerceOrderPaymentModelImpl
.
commerceOrderId
- the commerce order IDstart
- the lower bound of the range of commerce order paymentsend
- the upper bound of the range of commerce order payments (not inclusive)public static java.util.List<CommerceOrderPayment> findByCommerceOrderId(long commerceOrderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> 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 CommerceOrderPaymentModelImpl
.
commerceOrderId
- the commerce order IDstart
- the lower bound of the range of commerce order paymentsend
- the upper bound of the range of commerce order payments (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceOrderPayment> findByCommerceOrderId(long commerceOrderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> 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 CommerceOrderPaymentModelImpl
.
commerceOrderId
- the commerce order IDstart
- the lower bound of the range of commerce order paymentsend
- the upper bound of the range of commerce order payments (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceOrderPayment findByCommerceOrderId_First(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator) throws NoSuchOrderPaymentException
commerceOrderId
- the commerce order IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderPaymentException
- if a matching commerce order payment could not be foundpublic static CommerceOrderPayment fetchByCommerceOrderId_First(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator)
commerceOrderId
- the commerce order IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order payment could not be foundpublic static CommerceOrderPayment findByCommerceOrderId_Last(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator) throws NoSuchOrderPaymentException
commerceOrderId
- the commerce order IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderPaymentException
- if a matching commerce order payment could not be foundpublic static CommerceOrderPayment fetchByCommerceOrderId_Last(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator)
commerceOrderId
- the commerce order IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order payment could not be foundpublic static CommerceOrderPayment[] findByCommerceOrderId_PrevAndNext(long commerceOrderPaymentId, long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator) throws NoSuchOrderPaymentException
commerceOrderPaymentId
- the primary key of the current commerce order paymentcommerceOrderId
- the commerce order IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderPaymentException
- if a commerce order payment with the primary key could not be foundpublic static void removeByCommerceOrderId(long commerceOrderId)
commerceOrderId
- the commerce order IDpublic static int countByCommerceOrderId(long commerceOrderId)
commerceOrderId
- the commerce order IDpublic static void cacheResult(CommerceOrderPayment commerceOrderPayment)
commerceOrderPayment
- the commerce order paymentpublic static void cacheResult(java.util.List<CommerceOrderPayment> commerceOrderPayments)
commerceOrderPayments
- the commerce order paymentspublic static CommerceOrderPayment create(long commerceOrderPaymentId)
commerceOrderPaymentId
- the primary key for the new commerce order paymentpublic static CommerceOrderPayment remove(long commerceOrderPaymentId) throws NoSuchOrderPaymentException
commerceOrderPaymentId
- the primary key of the commerce order paymentNoSuchOrderPaymentException
- if a commerce order payment with the primary key could not be foundpublic static CommerceOrderPayment updateImpl(CommerceOrderPayment commerceOrderPayment)
public static CommerceOrderPayment findByPrimaryKey(long commerceOrderPaymentId) throws NoSuchOrderPaymentException
NoSuchOrderPaymentException
if it could not be found.commerceOrderPaymentId
- the primary key of the commerce order paymentNoSuchOrderPaymentException
- if a commerce order payment with the primary key could not be foundpublic static CommerceOrderPayment fetchByPrimaryKey(long commerceOrderPaymentId)
null
if it could not be found.commerceOrderPaymentId
- the primary key of the commerce order paymentnull
if a commerce order payment with the primary key could not be foundpublic static java.util.List<CommerceOrderPayment> findAll()
public static java.util.List<CommerceOrderPayment> 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 CommerceOrderPaymentModelImpl
.
start
- the lower bound of the range of commerce order paymentsend
- the upper bound of the range of commerce order payments (not inclusive)public static java.util.List<CommerceOrderPayment> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> 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 CommerceOrderPaymentModelImpl
.
start
- the lower bound of the range of commerce order paymentsend
- the upper bound of the range of commerce order payments (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceOrderPayment> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> 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 CommerceOrderPaymentModelImpl
.
start
- the lower bound of the range of commerce order paymentsend
- the upper bound of the range of commerce order payments (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 CommerceOrderPaymentPersistence getPersistence()