@ProviderType public interface CommerceShippingMethodPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceShippingMethod>
Caching information and settings can be found in portal.properties
CommerceShippingMethodUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(CommerceShippingMethod commerceShippingMethod)
Caches the commerce shipping method in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CommerceShippingMethod> commerceShippingMethods)
Caches the commerce shipping methods in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of commerce shipping methods.
|
int |
countByG_A(long groupId,
boolean active)
Returns the number of commerce shipping methods where groupId = ? and active = ?.
|
int |
countByG_E(long groupId,
java.lang.String engineKey)
Returns the number of commerce shipping methods where groupId = ? and engineKey = ?.
|
int |
countByGroupId(long groupId)
Returns the number of commerce shipping methods where groupId = ?.
|
CommerceShippingMethod |
create(long commerceShippingMethodId)
Creates a new commerce shipping method with the primary key.
|
CommerceShippingMethod |
fetchByG_A_First(long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator)
Returns the first commerce shipping method in the ordered set where groupId = ? and active = ?.
|
CommerceShippingMethod |
fetchByG_A_Last(long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator)
Returns the last commerce shipping method in the ordered set where groupId = ? and active = ?.
|
CommerceShippingMethod |
fetchByG_E(long groupId,
java.lang.String engineKey)
Returns the commerce shipping method where groupId = ? and engineKey = ? or returns
null if it could not be found. |
CommerceShippingMethod |
fetchByG_E(long groupId,
java.lang.String engineKey,
boolean useFinderCache)
Returns the commerce shipping method where groupId = ? and engineKey = ? or returns
null if it could not be found, optionally using the finder cache. |
CommerceShippingMethod |
fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator)
Returns the first commerce shipping method in the ordered set where groupId = ?.
|
CommerceShippingMethod |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator)
Returns the last commerce shipping method in the ordered set where groupId = ?.
|
CommerceShippingMethod |
fetchByPrimaryKey(long commerceShippingMethodId)
Returns the commerce shipping method with the primary key or returns
null if it could not be found. |
java.util.List<CommerceShippingMethod> |
findAll()
Returns all the commerce shipping methods.
|
java.util.List<CommerceShippingMethod> |
findAll(int start,
int end)
Returns a range of all the commerce shipping methods.
|
java.util.List<CommerceShippingMethod> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator)
Returns an ordered range of all the commerce shipping methods.
|
java.util.List<CommerceShippingMethod> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce shipping methods.
|
CommerceShippingMethod |
findByG_A_First(long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator)
Returns the first commerce shipping method in the ordered set where groupId = ? and active = ?.
|
CommerceShippingMethod |
findByG_A_Last(long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator)
Returns the last commerce shipping method in the ordered set where groupId = ? and active = ?.
|
CommerceShippingMethod[] |
findByG_A_PrevAndNext(long commerceShippingMethodId,
long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator)
Returns the commerce shipping methods before and after the current commerce shipping method in the ordered set where groupId = ? and active = ?.
|
java.util.List<CommerceShippingMethod> |
findByG_A(long groupId,
boolean active)
Returns all the commerce shipping methods where groupId = ? and active = ?.
|
java.util.List<CommerceShippingMethod> |
findByG_A(long groupId,
boolean active,
int start,
int end)
Returns a range of all the commerce shipping methods where groupId = ? and active = ?.
|
java.util.List<CommerceShippingMethod> |
findByG_A(long groupId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator)
Returns an ordered range of all the commerce shipping methods where groupId = ? and active = ?.
|
java.util.List<CommerceShippingMethod> |
findByG_A(long groupId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce shipping methods where groupId = ? and active = ?.
|
CommerceShippingMethod |
findByG_E(long groupId,
java.lang.String engineKey)
Returns the commerce shipping method where groupId = ? and engineKey = ? or throws a
NoSuchShippingMethodException if it could not be found. |
CommerceShippingMethod |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator)
Returns the first commerce shipping method in the ordered set where groupId = ?.
|
CommerceShippingMethod |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator)
Returns the last commerce shipping method in the ordered set where groupId = ?.
|
CommerceShippingMethod[] |
findByGroupId_PrevAndNext(long commerceShippingMethodId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator)
Returns the commerce shipping methods before and after the current commerce shipping method in the ordered set where groupId = ?.
|
java.util.List<CommerceShippingMethod> |
findByGroupId(long groupId)
Returns all the commerce shipping methods where groupId = ?.
|
java.util.List<CommerceShippingMethod> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the commerce shipping methods where groupId = ?.
|
java.util.List<CommerceShippingMethod> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator)
Returns an ordered range of all the commerce shipping methods where groupId = ?.
|
java.util.List<CommerceShippingMethod> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce shipping methods where groupId = ?.
|
CommerceShippingMethod |
findByPrimaryKey(long commerceShippingMethodId)
Returns the commerce shipping method with the primary key or throws a
NoSuchShippingMethodException if it could not be found. |
CommerceShippingMethod |
remove(long commerceShippingMethodId)
Removes the commerce shipping method with the primary key from the database.
|
void |
removeAll()
Removes all the commerce shipping methods from the database.
|
void |
removeByG_A(long groupId,
boolean active)
Removes all the commerce shipping methods where groupId = ? and active = ? from the database.
|
CommerceShippingMethod |
removeByG_E(long groupId,
java.lang.String engineKey)
Removes the commerce shipping method where groupId = ? and engineKey = ? from the database.
|
void |
removeByGroupId(long groupId)
Removes all the commerce shipping methods where groupId = ? from the database.
|
CommerceShippingMethod |
updateImpl(CommerceShippingMethod commerceShippingMethod) |
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<CommerceShippingMethod> findByGroupId(long groupId)
groupId
- the group IDjava.util.List<CommerceShippingMethod> 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, then the query will include the default ORDER BY logic from CommerceShippingMethodModelImpl
.
groupId
- the group IDstart
- the lower bound of the range of commerce shipping methodsend
- the upper bound of the range of commerce shipping methods (not inclusive)java.util.List<CommerceShippingMethod> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> 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 CommerceShippingMethodModelImpl
.
groupId
- the group IDstart
- the lower bound of the range of commerce shipping methodsend
- the upper bound of the range of commerce shipping methods (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CommerceShippingMethod> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> 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 CommerceShippingMethodModelImpl
.
groupId
- the group IDstart
- the lower bound of the range of commerce shipping methodsend
- the upper bound of the range of commerce shipping methods (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCommerceShippingMethod findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) throws NoSuchShippingMethodException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchShippingMethodException
- if a matching commerce shipping method could not be foundCommerceShippingMethod fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce shipping method could not be foundCommerceShippingMethod findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) throws NoSuchShippingMethodException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchShippingMethodException
- if a matching commerce shipping method could not be foundCommerceShippingMethod fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce shipping method could not be foundCommerceShippingMethod[] findByGroupId_PrevAndNext(long commerceShippingMethodId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) throws NoSuchShippingMethodException
commerceShippingMethodId
- the primary key of the current commerce shipping methodgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchShippingMethodException
- if a commerce shipping method with the primary key could not be foundvoid removeByGroupId(long groupId)
groupId
- the group IDint countByGroupId(long groupId)
groupId
- the group IDCommerceShippingMethod findByG_E(long groupId, java.lang.String engineKey) throws NoSuchShippingMethodException
NoSuchShippingMethodException
if it could not be found.groupId
- the group IDengineKey
- the engine keyNoSuchShippingMethodException
- if a matching commerce shipping method could not be foundCommerceShippingMethod 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 shipping method could not be foundCommerceShippingMethod fetchByG_E(long groupId, java.lang.String engineKey, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.groupId
- the group IDengineKey
- the engine keyuseFinderCache
- whether to use the finder cachenull
if a matching commerce shipping method could not be foundCommerceShippingMethod removeByG_E(long groupId, java.lang.String engineKey) throws NoSuchShippingMethodException
groupId
- the group IDengineKey
- the engine keyNoSuchShippingMethodException
int countByG_E(long groupId, java.lang.String engineKey)
groupId
- the group IDengineKey
- the engine keyjava.util.List<CommerceShippingMethod> findByG_A(long groupId, boolean active)
groupId
- the group IDactive
- the activejava.util.List<CommerceShippingMethod> 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, then the query will include the default ORDER BY logic from CommerceShippingMethodModelImpl
.
groupId
- the group IDactive
- the activestart
- the lower bound of the range of commerce shipping methodsend
- the upper bound of the range of commerce shipping methods (not inclusive)java.util.List<CommerceShippingMethod> findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> 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 CommerceShippingMethodModelImpl
.
groupId
- the group IDactive
- the activestart
- the lower bound of the range of commerce shipping methodsend
- the upper bound of the range of commerce shipping methods (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CommerceShippingMethod> findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> 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 CommerceShippingMethodModelImpl
.
groupId
- the group IDactive
- the activestart
- the lower bound of the range of commerce shipping methodsend
- the upper bound of the range of commerce shipping methods (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCommerceShippingMethod findByG_A_First(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) throws NoSuchShippingMethodException
groupId
- the group IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchShippingMethodException
- if a matching commerce shipping method could not be foundCommerceShippingMethod fetchByG_A_First(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator)
groupId
- the group IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce shipping method could not be foundCommerceShippingMethod findByG_A_Last(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) throws NoSuchShippingMethodException
groupId
- the group IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchShippingMethodException
- if a matching commerce shipping method could not be foundCommerceShippingMethod fetchByG_A_Last(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator)
groupId
- the group IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce shipping method could not be foundCommerceShippingMethod[] findByG_A_PrevAndNext(long commerceShippingMethodId, long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) throws NoSuchShippingMethodException
commerceShippingMethodId
- the primary key of the current commerce shipping methodgroupId
- the group IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchShippingMethodException
- if a commerce shipping 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(CommerceShippingMethod commerceShippingMethod)
commerceShippingMethod
- the commerce shipping methodvoid cacheResult(java.util.List<CommerceShippingMethod> commerceShippingMethods)
commerceShippingMethods
- the commerce shipping methodsCommerceShippingMethod create(long commerceShippingMethodId)
commerceShippingMethodId
- the primary key for the new commerce shipping methodCommerceShippingMethod remove(long commerceShippingMethodId) throws NoSuchShippingMethodException
commerceShippingMethodId
- the primary key of the commerce shipping methodNoSuchShippingMethodException
- if a commerce shipping method with the primary key could not be foundCommerceShippingMethod updateImpl(CommerceShippingMethod commerceShippingMethod)
CommerceShippingMethod findByPrimaryKey(long commerceShippingMethodId) throws NoSuchShippingMethodException
NoSuchShippingMethodException
if it could not be found.commerceShippingMethodId
- the primary key of the commerce shipping methodNoSuchShippingMethodException
- if a commerce shipping method with the primary key could not be foundCommerceShippingMethod fetchByPrimaryKey(long commerceShippingMethodId)
null
if it could not be found.commerceShippingMethodId
- the primary key of the commerce shipping methodnull
if a commerce shipping method with the primary key could not be foundjava.util.List<CommerceShippingMethod> findAll()
java.util.List<CommerceShippingMethod> 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 CommerceShippingMethodModelImpl
.
start
- the lower bound of the range of commerce shipping methodsend
- the upper bound of the range of commerce shipping methods (not inclusive)java.util.List<CommerceShippingMethod> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> 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 CommerceShippingMethodModelImpl
.
start
- the lower bound of the range of commerce shipping methodsend
- the upper bound of the range of commerce shipping methods (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CommerceShippingMethod> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> 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 CommerceShippingMethodModelImpl
.
start
- the lower bound of the range of commerce shipping methodsend
- the upper bound of the range of commerce shipping methods (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()