@ProviderType public interface CommercePaymentMethodPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommercePaymentMethod>
Caching information and settings can be found in portal.properties
com.liferay.commerce.service.persistence.impl.CommercePaymentMethodPersistenceImpl,
CommercePaymentMethodUtil| Modifier and Type | Method and Description |
|---|---|
void |
cacheResult(CommercePaymentMethod commercePaymentMethod)
Caches the commerce payment method in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CommercePaymentMethod> commercePaymentMethods)
Caches the commerce payment methods in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of commerce payment methods.
|
int |
countByG_A(long groupId,
boolean active)
Returns the number of commerce payment methods where groupId = ? and active = ?.
|
int |
countByG_E(long groupId,
java.lang.String engineKey)
Returns the number of commerce payment methods where groupId = ? and engineKey = ?.
|
int |
countByGroupId(long groupId)
Returns the number of commerce payment methods where groupId = ?.
|
CommercePaymentMethod |
create(long commercePaymentMethodId)
Creates a new commerce payment method with the primary key.
|
CommercePaymentMethod |
fetchByG_A_First(long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
Returns the first commerce payment method in the ordered set where groupId = ? and active = ?.
|
CommercePaymentMethod |
fetchByG_A_Last(long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
Returns the last commerce payment method in the ordered set where groupId = ? and active = ?.
|
CommercePaymentMethod |
fetchByG_E(long groupId,
java.lang.String engineKey)
Returns the commerce payment method where groupId = ? and engineKey = ? or returns
null if it could not be found. |
CommercePaymentMethod |
fetchByG_E(long groupId,
java.lang.String engineKey,
boolean retrieveFromCache)
Returns the commerce payment method where groupId = ? and engineKey = ? or returns
null if it could not be found, optionally using the finder cache. |
CommercePaymentMethod |
fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
Returns the first commerce payment method in the ordered set where groupId = ?.
|
CommercePaymentMethod |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
Returns the last commerce payment method in the ordered set where groupId = ?.
|
CommercePaymentMethod |
fetchByPrimaryKey(long commercePaymentMethodId)
Returns the commerce payment method with the primary key or returns
null if it could not be found. |
java.util.Map<java.io.Serializable,CommercePaymentMethod> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
java.util.List<CommercePaymentMethod> |
findAll()
Returns all the commerce payment methods.
|
java.util.List<CommercePaymentMethod> |
findAll(int start,
int end)
Returns a range of all the commerce payment methods.
|
java.util.List<CommercePaymentMethod> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
Returns an ordered range of all the commerce payment methods.
|
java.util.List<CommercePaymentMethod> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce payment methods.
|
CommercePaymentMethod |
findByG_A_First(long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
Returns the first commerce payment method in the ordered set where groupId = ? and active = ?.
|
CommercePaymentMethod |
findByG_A_Last(long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
Returns the last commerce payment method in the ordered set where groupId = ? and active = ?.
|
CommercePaymentMethod[] |
findByG_A_PrevAndNext(long commercePaymentMethodId,
long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
Returns the commerce payment methods before and after the current commerce payment method in the ordered set where groupId = ? and active = ?.
|
java.util.List<CommercePaymentMethod> |
findByG_A(long groupId,
boolean active)
Returns all the commerce payment methods where groupId = ? and active = ?.
|
java.util.List<CommercePaymentMethod> |
findByG_A(long groupId,
boolean active,
int start,
int end)
Returns a range of all the commerce payment methods where groupId = ? and active = ?.
|
java.util.List<CommercePaymentMethod> |
findByG_A(long groupId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
Returns an ordered range of all the commerce payment methods where groupId = ? and active = ?.
|
java.util.List<CommercePaymentMethod> |
findByG_A(long groupId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce payment methods where groupId = ? and active = ?.
|
CommercePaymentMethod |
findByG_E(long groupId,
java.lang.String engineKey)
Returns the commerce payment method where groupId = ? and engineKey = ? or throws a
NoSuchPaymentMethodException if it could not be found. |
CommercePaymentMethod |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
Returns the first commerce payment method in the ordered set where groupId = ?.
|
CommercePaymentMethod |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
Returns the last commerce payment method in the ordered set where groupId = ?.
|
CommercePaymentMethod[] |
findByGroupId_PrevAndNext(long commercePaymentMethodId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
Returns the commerce payment methods before and after the current commerce payment method in the ordered set where groupId = ?.
|
java.util.List<CommercePaymentMethod> |
findByGroupId(long groupId)
Returns all the commerce payment methods where groupId = ?.
|
java.util.List<CommercePaymentMethod> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the commerce payment methods where groupId = ?.
|
java.util.List<CommercePaymentMethod> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
Returns an ordered range of all the commerce payment methods where groupId = ?.
|
java.util.List<CommercePaymentMethod> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce payment methods where groupId = ?.
|
CommercePaymentMethod |
findByPrimaryKey(long commercePaymentMethodId)
Returns the commerce payment method with the primary key or throws a
NoSuchPaymentMethodException if it could not be found. |
java.util.Set<java.lang.String> |
getBadColumnNames() |
CommercePaymentMethod |
remove(long commercePaymentMethodId)
Removes the commerce payment method with the primary key from the database.
|
void |
removeAll()
Removes all the commerce payment methods from the database.
|
void |
removeByG_A(long groupId,
boolean active)
Removes all the commerce payment methods where groupId = ? and active = ? from the database.
|
CommercePaymentMethod |
removeByG_E(long groupId,
java.lang.String engineKey)
Removes the commerce payment method where groupId = ? and engineKey = ? from the database.
|
void |
removeByGroupId(long groupId)
Removes all the commerce payment methods where groupId = ? from the database.
|
CommercePaymentMethod |
updateImpl(CommercePaymentMethod commercePaymentMethod) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, updatejava.util.List<CommercePaymentMethod> findByGroupId(long groupId)
groupId - the group IDjava.util.List<CommercePaymentMethod> findByGroupId(long groupId, 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommercePaymentMethodModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstart - the lower bound of the range of commerce payment methodsend - the upper bound of the range of commerce payment methods (not inclusive)java.util.List<CommercePaymentMethod> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommercePaymentMethodModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstart - the lower bound of the range of commerce payment methodsend - the upper bound of the range of commerce payment methods (not inclusive)orderByComparator - the comparator to order the results by (optionally null)java.util.List<CommercePaymentMethod> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommercePaymentMethodModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstart - the lower bound of the range of commerce payment methodsend - the upper bound of the range of commerce payment methods (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cacheCommercePaymentMethod findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator) throws NoSuchPaymentMethodException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchPaymentMethodException - if a matching commerce payment method could not be foundCommercePaymentMethod fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce payment method could not be foundCommercePaymentMethod findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator) throws NoSuchPaymentMethodException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchPaymentMethodException - if a matching commerce payment method could not be foundCommercePaymentMethod fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce payment method could not be foundCommercePaymentMethod[] findByGroupId_PrevAndNext(long commercePaymentMethodId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator) throws NoSuchPaymentMethodException
commercePaymentMethodId - the primary key of the current commerce payment methodgroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchPaymentMethodException - if a commerce payment method with the primary key could not be foundvoid removeByGroupId(long groupId)
groupId - the group IDint countByGroupId(long groupId)
groupId - the group IDCommercePaymentMethod findByG_E(long groupId, java.lang.String engineKey) throws NoSuchPaymentMethodException
NoSuchPaymentMethodException if it could not be found.groupId - the group IDengineKey - the engine keyNoSuchPaymentMethodException - if a matching commerce payment method could not be foundCommercePaymentMethod fetchByG_E(long groupId, java.lang.String engineKey)
null if it could not be found. Uses the finder cache.groupId - the group IDengineKey - the engine keynull if a matching commerce payment method could not be foundCommercePaymentMethod fetchByG_E(long groupId, java.lang.String engineKey, boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.groupId - the group IDengineKey - the engine keyretrieveFromCache - whether to retrieve from the finder cachenull if a matching commerce payment method could not be foundCommercePaymentMethod removeByG_E(long groupId, java.lang.String engineKey) throws NoSuchPaymentMethodException
groupId - the group IDengineKey - the engine keyNoSuchPaymentMethodExceptionint countByG_E(long groupId,
java.lang.String engineKey)
groupId - the group IDengineKey - the engine keyjava.util.List<CommercePaymentMethod> findByG_A(long groupId, boolean active)
groupId - the group IDactive - the activejava.util.List<CommercePaymentMethod> findByG_A(long groupId, boolean active, 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommercePaymentMethodModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDactive - the activestart - the lower bound of the range of commerce payment methodsend - the upper bound of the range of commerce payment methods (not inclusive)java.util.List<CommercePaymentMethod> findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommercePaymentMethodModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDactive - the activestart - the lower bound of the range of commerce payment methodsend - the upper bound of the range of commerce payment methods (not inclusive)orderByComparator - the comparator to order the results by (optionally null)java.util.List<CommercePaymentMethod> findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommercePaymentMethodModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDactive - the activestart - the lower bound of the range of commerce payment methodsend - the upper bound of the range of commerce payment methods (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cacheCommercePaymentMethod findByG_A_First(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator) throws NoSuchPaymentMethodException
groupId - the group IDactive - the activeorderByComparator - the comparator to order the set by (optionally null)NoSuchPaymentMethodException - if a matching commerce payment method could not be foundCommercePaymentMethod fetchByG_A_First(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
groupId - the group IDactive - the activeorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce payment method could not be foundCommercePaymentMethod findByG_A_Last(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator) throws NoSuchPaymentMethodException
groupId - the group IDactive - the activeorderByComparator - the comparator to order the set by (optionally null)NoSuchPaymentMethodException - if a matching commerce payment method could not be foundCommercePaymentMethod fetchByG_A_Last(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
groupId - the group IDactive - the activeorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce payment method could not be foundCommercePaymentMethod[] findByG_A_PrevAndNext(long commercePaymentMethodId, long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator) throws NoSuchPaymentMethodException
commercePaymentMethodId - the primary key of the current commerce payment methodgroupId - the group IDactive - the activeorderByComparator - the comparator to order the set by (optionally null)NoSuchPaymentMethodException - if a commerce payment method with the primary key could not be foundvoid removeByG_A(long groupId,
boolean active)
groupId - the group IDactive - the activeint countByG_A(long groupId,
boolean active)
groupId - the group IDactive - the activevoid cacheResult(CommercePaymentMethod commercePaymentMethod)
commercePaymentMethod - the commerce payment methodvoid cacheResult(java.util.List<CommercePaymentMethod> commercePaymentMethods)
commercePaymentMethods - the commerce payment methodsCommercePaymentMethod create(long commercePaymentMethodId)
commercePaymentMethodId - the primary key for the new commerce payment methodCommercePaymentMethod remove(long commercePaymentMethodId) throws NoSuchPaymentMethodException
commercePaymentMethodId - the primary key of the commerce payment methodNoSuchPaymentMethodException - if a commerce payment method with the primary key could not be foundCommercePaymentMethod updateImpl(CommercePaymentMethod commercePaymentMethod)
CommercePaymentMethod findByPrimaryKey(long commercePaymentMethodId) throws NoSuchPaymentMethodException
NoSuchPaymentMethodException if it could not be found.commercePaymentMethodId - the primary key of the commerce payment methodNoSuchPaymentMethodException - if a commerce payment method with the primary key could not be foundCommercePaymentMethod fetchByPrimaryKey(long commercePaymentMethodId)
null if it could not be found.commercePaymentMethodId - the primary key of the commerce payment methodnull if a commerce payment method with the primary key could not be foundjava.util.Map<java.io.Serializable,CommercePaymentMethod> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
fetchByPrimaryKeys in interface com.liferay.portal.kernel.service.persistence.BasePersistence<CommercePaymentMethod>java.util.List<CommercePaymentMethod> findAll()
java.util.List<CommercePaymentMethod> 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommercePaymentMethodModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of commerce payment methodsend - the upper bound of the range of commerce payment methods (not inclusive)java.util.List<CommercePaymentMethod> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommercePaymentMethodModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of commerce payment methodsend - the upper bound of the range of commerce payment methods (not inclusive)orderByComparator - the comparator to order the results by (optionally null)java.util.List<CommercePaymentMethod> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommercePaymentMethodModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of commerce payment methodsend - the upper bound of the range of commerce payment methods (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachevoid removeAll()
int countAll()
java.util.Set<java.lang.String> getBadColumnNames()
getBadColumnNames in interface com.liferay.portal.kernel.service.persistence.BasePersistence<CommercePaymentMethod>