Class CommerceOrderPaymentUtil
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
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(CommerceOrderPayment commerceOrderPayment) Caches the commerce order payment in the entity cache if it is enabled.static void
cacheResult
(List<CommerceOrderPayment> commerceOrderPayments) Caches the commerce order payments in the entity cache if it is enabled.static void
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 returnsnull
if it could not be found.static Map<Serializable,
CommerceOrderPayment> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static List<CommerceOrderPayment>
findAll()
Returns all the commerce order payments.static List<CommerceOrderPayment>
findAll
(int start, int end) Returns a range of all the commerce order payments.static 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 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 List<CommerceOrderPayment>
findByCommerceOrderId
(long commerceOrderId) Returns all the commerce order payments where commerceOrderId = ?.static List<CommerceOrderPayment>
findByCommerceOrderId
(long commerceOrderId, int start, int end) Returns a range of all the commerce order payments where commerceOrderId = ?.static 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 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
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 CommerceOrderPayment
findByPrimaryKey
(long commerceOrderPaymentId) Returns the commerce order payment with the primary key or throws aNoSuchOrderPaymentException
if it could not be found.static List<CommerceOrderPayment>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CommerceOrderPayment>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CommerceOrderPayment>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator) static CommerceOrderPayment
remove
(long commerceOrderPaymentId) Removes the commerce order payment with the primary key from the database.static void
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 void
setPersistence
(CommerceOrderPaymentPersistence persistence) static CommerceOrderPayment
update
(CommerceOrderPayment commerceOrderPayment) static CommerceOrderPayment
update
(CommerceOrderPayment commerceOrderPayment, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommerceOrderPayment
updateImpl
(CommerceOrderPayment commerceOrderPayment)
-
Constructor Details
-
CommerceOrderPaymentUtil
public CommerceOrderPaymentUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- 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,CommerceOrderPayment> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CommerceOrderPayment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CommerceOrderPayment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CommerceOrderPayment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CommerceOrderPayment update(CommerceOrderPayment commerceOrderPayment, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByCommerceOrderId
Returns all the commerce order payments where commerceOrderId = ?.- Parameters:
commerceOrderId
- the commerce order ID- Returns:
- the matching commerce order payments
-
findByCommerceOrderId
public static List<CommerceOrderPayment> findByCommerceOrderId(long commerceOrderId, int start, int end) Returns a range of all the commerce order payments where commerceOrderId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderPaymentModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce order payments
-
findByCommerceOrderId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderPaymentModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce order payments
-
findByCommerceOrderId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderPaymentModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce order payments
-
findByCommerceOrderId_First
public static CommerceOrderPayment findByCommerceOrderId_First(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator) throws NoSuchOrderPaymentException Returns the first commerce order payment in the ordered set where commerceOrderId = ?.- Parameters:
commerceOrderId
- the commerce order IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order payment
- Throws:
NoSuchOrderPaymentException
- if a matching commerce order payment could not be foundNoSuchOrderPaymentException
-
fetchByCommerceOrderId_First
public 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 = ?.- Parameters:
commerceOrderId
- the commerce order IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order payment, or
null
if a matching commerce order payment could not be found
-
findByCommerceOrderId_Last
public static CommerceOrderPayment findByCommerceOrderId_Last(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator) throws NoSuchOrderPaymentException Returns the last commerce order payment in the ordered set where commerceOrderId = ?.- Parameters:
commerceOrderId
- the commerce order IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order payment
- Throws:
NoSuchOrderPaymentException
- if a matching commerce order payment could not be foundNoSuchOrderPaymentException
-
fetchByCommerceOrderId_Last
public 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 = ?.- Parameters:
commerceOrderId
- the commerce order IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order payment, or
null
if a matching commerce order payment could not be found
-
findByCommerceOrderId_PrevAndNext
public static CommerceOrderPayment[] findByCommerceOrderId_PrevAndNext(long commerceOrderPaymentId, long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator) throws NoSuchOrderPaymentException Returns the commerce order payments before and after the current commerce order payment in the ordered set where commerceOrderId = ?.- Parameters:
commerceOrderPaymentId
- the primary key of the current commerce order paymentcommerceOrderId
- the commerce order IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce order payment
- Throws:
NoSuchOrderPaymentException
- if a commerce order payment with the primary key could not be foundNoSuchOrderPaymentException
-
removeByCommerceOrderId
public static void removeByCommerceOrderId(long commerceOrderId) Removes all the commerce order payments where commerceOrderId = ? from the database.- Parameters:
commerceOrderId
- the commerce order ID
-
countByCommerceOrderId
public static int countByCommerceOrderId(long commerceOrderId) Returns the number of commerce order payments where commerceOrderId = ?.- Parameters:
commerceOrderId
- the commerce order ID- Returns:
- the number of matching commerce order payments
-
cacheResult
Caches the commerce order payment in the entity cache if it is enabled.- Parameters:
commerceOrderPayment
- the commerce order payment
-
cacheResult
Caches the commerce order payments in the entity cache if it is enabled.- Parameters:
commerceOrderPayments
- the commerce order payments
-
create
Creates a new commerce order payment with the primary key. Does not add the commerce order payment to the database.- Parameters:
commerceOrderPaymentId
- the primary key for the new commerce order payment- Returns:
- the new commerce order payment
-
remove
public static CommerceOrderPayment remove(long commerceOrderPaymentId) throws NoSuchOrderPaymentException Removes the commerce order payment with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
commerceOrderPaymentId
- the primary key of the commerce order payment- Returns:
- the commerce order payment that was removed
- Throws:
NoSuchOrderPaymentException
- if a commerce order payment with the primary key could not be foundNoSuchOrderPaymentException
-
updateImpl
-
findByPrimaryKey
public static CommerceOrderPayment findByPrimaryKey(long commerceOrderPaymentId) throws NoSuchOrderPaymentException Returns the commerce order payment with the primary key or throws aNoSuchOrderPaymentException
if it could not be found.- Parameters:
commerceOrderPaymentId
- the primary key of the commerce order payment- Returns:
- the commerce order payment
- Throws:
NoSuchOrderPaymentException
- if a commerce order payment with the primary key could not be foundNoSuchOrderPaymentException
-
fetchByPrimaryKey
Returns the commerce order payment with the primary key or returnsnull
if it could not be found.- Parameters:
commerceOrderPaymentId
- the primary key of the commerce order payment- Returns:
- the commerce order payment, or
null
if a commerce order payment with the primary key could not be found
-
findAll
Returns all the commerce order payments.- Returns:
- the commerce order payments
-
findAll
Returns a range of all the commerce order payments.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderPaymentModelImpl
.- Parameters:
start
- the lower bound of the range of commerce order paymentsend
- the upper bound of the range of commerce order payments (not inclusive)- Returns:
- the range of commerce order payments
-
findAll
public static 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderPaymentModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of commerce order payments
-
findAll
public static 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceOrderPaymentModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of commerce order payments
-
removeAll
public static void removeAll()Removes all the commerce order payments from the database. -
countAll
public static int countAll()Returns the number of commerce order payments.- Returns:
- the number of commerce order payments
-
getPersistence
-
setPersistence
-