Interface CommerceOrderPaymentPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceOrderPayment>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionintcountByCommerceOrderId(long commerceOrderId) Returns the number of commerce order payments where commerceOrderId = ?.create(long commerceOrderPaymentId) Creates a new commerce order payment with the primary key.fetchByCommerceOrderId_First(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator) Returns the first commerce order payment in the ordered set where commerceOrderId = ?.fetchByPrimaryKey(long commerceOrderPaymentId) Returns the commerce order payment with the primary key or returnsnullif it could not be found.default List<CommerceOrderPayment> findByCommerceOrderId(long commerceOrderId) Returns all the commerce order payments where commerceOrderId = ?.default List<CommerceOrderPayment> findByCommerceOrderId(long commerceOrderId, int start, int end) Returns a range of all the commerce order payments where commerceOrderId = ?.default 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 = ?.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 = ?.findByCommerceOrderId_First(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator) Returns the first commerce order payment in the ordered set where commerceOrderId = ?.findByPrimaryKey(long commerceOrderPaymentId) Returns the commerce order payment with the primary key or throws aNoSuchOrderPaymentExceptionif it could not be found.remove(long commerceOrderPaymentId) Removes the commerce order payment with the primary key from the database.voidremoveByCommerceOrderId(long commerceOrderId) Removes all the commerce order payments where commerceOrderId = ? from the database.updateImpl(CommerceOrderPayment commerceOrderPayment) 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
-
findByCommerceOrderId
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.model.impl.CommerceOrderPaymentModelImpl.- 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
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 found
-
fetchByCommerceOrderId_First
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
nullif a matching commerce order payment could not be found
-
removeByCommerceOrderId
void removeByCommerceOrderId(long commerceOrderId) Removes all the commerce order payments where commerceOrderId = ? from the database.- Parameters:
commerceOrderId- the commerce order ID
-
countByCommerceOrderId
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
-
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
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 found
-
updateImpl
-
findByPrimaryKey
CommerceOrderPayment findByPrimaryKey(long commerceOrderPaymentId) throws NoSuchOrderPaymentException Returns the commerce order payment with the primary key or throws aNoSuchOrderPaymentExceptionif 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 found
-
fetchByPrimaryKey
Returns the commerce order payment with the primary key or returnsnullif it could not be found.- Parameters:
commerceOrderPaymentId- the primary key of the commerce order payment- Returns:
- the commerce order payment, or
nullif a commerce order payment with the primary key could not be found
-
findByCommerceOrderId
Returns all the commerce order payments where commerceOrderId = ?.- Parameters:
commerceOrderId- the commerce order ID- Returns:
- the matching commerce order payments
-
findByCommerceOrderId
Returns a range of all the commerce order payments where commerceOrderId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.model.impl.CommerceOrderPaymentModelImpl.- 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
default 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.model.impl.CommerceOrderPaymentModelImpl.- 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
-