@ProviderType public interface CommerceOrderPaymentPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceOrderPayment>
Caching information and settings can be found in portal.properties
CommerceOrderPaymentUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(CommerceOrderPayment commerceOrderPayment)
Caches the commerce order payment in the entity cache if it is enabled.
|
void |
cacheResult(java.util.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 = ?.
|
CommerceOrderPayment |
create(long commerceOrderPaymentId)
Creates a new commerce order payment with the primary key.
|
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 = ?.
|
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 = ?.
|
CommerceOrderPayment |
fetchByPrimaryKey(long commerceOrderPaymentId)
Returns the commerce order payment with the primary key or returns
null if it could not be found. |
java.util.List<CommerceOrderPayment> |
findAll()
Returns all the commerce order payments.
|
java.util.List<CommerceOrderPayment> |
findAll(int start,
int end)
Returns a range of all the commerce order payments.
|
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.
|
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.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CommerceOrderPayment> |
findByCommerceOrderId(long commerceOrderId)
Returns all the commerce order payments where commerceOrderId = ?.
|
java.util.List<CommerceOrderPayment> |
findByCommerceOrderId(long commerceOrderId,
int start,
int end)
Returns a range of all the commerce order payments where commerceOrderId = ?.
|
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 = ?.
|
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 = ?.
|
CommerceOrderPayment |
findByPrimaryKey(long commerceOrderPaymentId)
Returns the commerce order payment with the primary key or throws a
NoSuchOrderPaymentException if it could not be found. |
CommerceOrderPayment |
remove(long commerceOrderPaymentId)
Removes the commerce order payment with the primary key from the database.
|
void |
removeAll()
Removes all the commerce order payments from the database.
|
void |
removeByCommerceOrderId(long commerceOrderId)
Removes all the commerce order payments where commerceOrderId = ? from the database.
|
CommerceOrderPayment |
updateImpl(CommerceOrderPayment commerceOrderPayment) |
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, setDataSource, unregisterListener, update, update
java.util.List<CommerceOrderPayment> findByCommerceOrderId(long commerceOrderId)
commerceOrderId
- the commerce order IDjava.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)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
)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 cacheCommerceOrderPayment 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 foundCommerceOrderPayment 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 foundCommerceOrderPayment 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 foundCommerceOrderPayment 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 foundCommerceOrderPayment[] 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 foundvoid removeByCommerceOrderId(long commerceOrderId)
commerceOrderId
- the commerce order IDint countByCommerceOrderId(long commerceOrderId)
commerceOrderId
- the commerce order IDvoid cacheResult(CommerceOrderPayment commerceOrderPayment)
commerceOrderPayment
- the commerce order paymentvoid cacheResult(java.util.List<CommerceOrderPayment> commerceOrderPayments)
commerceOrderPayments
- the commerce order paymentsCommerceOrderPayment create(long commerceOrderPaymentId)
commerceOrderPaymentId
- the primary key for the new commerce order paymentCommerceOrderPayment 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 foundCommerceOrderPayment updateImpl(CommerceOrderPayment commerceOrderPayment)
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 foundCommerceOrderPayment 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 foundjava.util.List<CommerceOrderPayment> findAll()
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)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
)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 cachevoid removeAll()
int countAll()