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 TypeMethodDescriptionvoid
cacheResult
(CommerceOrderPayment commerceOrderPayment) Caches the commerce order payment in the entity cache if it is enabled.void
cacheResult
(List<CommerceOrderPayment> commerceOrderPayments) Caches the commerce order payments in the entity cache if it is enabled.int
countAll()
Returns the number of commerce order payments.int
countByCommerceOrderId
(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 = ?.fetchByCommerceOrderId_Last
(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator) Returns the last commerce order payment in the ordered set where commerceOrderId = ?.fetchByPrimaryKey
(long commerceOrderPaymentId) Returns the commerce order payment with the primary key or returnsnull
if it could not be found.findAll()
Returns all the commerce order payments.findAll
(int start, int end) Returns a range of all the commerce order payments.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator) Returns an ordered range of all the commerce order payments.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.findByCommerceOrderId
(long commerceOrderId) Returns all the commerce order payments where commerceOrderId = ?.findByCommerceOrderId
(long commerceOrderId, int start, int end) Returns a range of all the commerce order payments where commerceOrderId = ?.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 = ?.findByCommerceOrderId_Last
(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderPayment> orderByComparator) Returns the last commerce order payment in the ordered set where commerceOrderId = ?.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 = ?.findByPrimaryKey
(long commerceOrderPaymentId) Returns the commerce order payment with the primary key or throws aNoSuchOrderPaymentException
if it could not be found.remove
(long commerceOrderPaymentId) Removes the commerce order payment with the primary key from the database.void
Removes all the commerce order payments from the database.void
removeByCommerceOrderId
(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
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
-
Method Details
-
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 - 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
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
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
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
null
if a matching commerce order payment could not be found
-
findByCommerceOrderId_Last
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 found
-
fetchByCommerceOrderId_Last
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
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 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
-
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
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 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 found
-
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
List<CommerceOrderPayment> 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
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
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
void removeAll()Removes all the commerce order payments from the database. -
countAll
int countAll()Returns the number of commerce order payments.- Returns:
- the number of commerce order payments
-