public class CommerceAddressRestrictionUtil
extends java.lang.Object
com.liferay.commerce.service.persistence.impl.CommerceAddressRestrictionPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
CommerceAddressRestrictionPersistence| Constructor and Description |
|---|
CommerceAddressRestrictionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cacheResult(CommerceAddressRestriction commerceAddressRestriction)
Caches the commerce address restriction in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceAddressRestriction> commerceAddressRestrictions)
Caches the commerce address restrictions in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceAddressRestriction commerceAddressRestriction) |
static int |
countAll()
Returns the number of commerce address restrictions.
|
static int |
countByC_C_C(long classNameId,
long classPK,
long commerceCountryId)
Returns the number of commerce address restrictions where classNameId = ? and classPK = ? and commerceCountryId = ?.
|
static int |
countByC_C(long classNameId,
long classPK)
Returns the number of commerce address restrictions where classNameId = ? and classPK = ?.
|
static int |
countByCommerceCountryId(long commerceCountryId)
Returns the number of commerce address restrictions where commerceCountryId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceAddressRestriction |
create(long commerceAddressRestrictionId)
Creates a new commerce address restriction with the primary key.
|
static CommerceAddressRestriction |
fetchByC_C_C(long classNameId,
long classPK,
long commerceCountryId)
Returns the commerce address restriction where classNameId = ? and classPK = ? and commerceCountryId = ? or returns
null if it could not be found. |
static CommerceAddressRestriction |
fetchByC_C_C(long classNameId,
long classPK,
long commerceCountryId,
boolean useFinderCache)
Returns the commerce address restriction where classNameId = ? and classPK = ? and commerceCountryId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommerceAddressRestriction |
fetchByC_C_First(long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator)
Returns the first commerce address restriction in the ordered set where classNameId = ? and classPK = ?.
|
static CommerceAddressRestriction |
fetchByC_C_Last(long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator)
Returns the last commerce address restriction in the ordered set where classNameId = ? and classPK = ?.
|
static CommerceAddressRestriction |
fetchByCommerceCountryId_First(long commerceCountryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator)
Returns the first commerce address restriction in the ordered set where commerceCountryId = ?.
|
static CommerceAddressRestriction |
fetchByCommerceCountryId_Last(long commerceCountryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator)
Returns the last commerce address restriction in the ordered set where commerceCountryId = ?.
|
static CommerceAddressRestriction |
fetchByPrimaryKey(long commerceAddressRestrictionId)
Returns the commerce address restriction with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceAddressRestriction> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<CommerceAddressRestriction> |
findAll()
Returns all the commerce address restrictions.
|
static java.util.List<CommerceAddressRestriction> |
findAll(int start,
int end)
Returns a range of all the commerce address restrictions.
|
static java.util.List<CommerceAddressRestriction> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator)
Returns an ordered range of all the commerce address restrictions.
|
static java.util.List<CommerceAddressRestriction> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce address restrictions.
|
static CommerceAddressRestriction |
findByC_C_C(long classNameId,
long classPK,
long commerceCountryId)
Returns the commerce address restriction where classNameId = ? and classPK = ? and commerceCountryId = ? or throws a
NoSuchAddressRestrictionException if it could not be found. |
static CommerceAddressRestriction |
findByC_C_First(long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator)
Returns the first commerce address restriction in the ordered set where classNameId = ? and classPK = ?.
|
static CommerceAddressRestriction |
findByC_C_Last(long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator)
Returns the last commerce address restriction in the ordered set where classNameId = ? and classPK = ?.
|
static CommerceAddressRestriction[] |
findByC_C_PrevAndNext(long commerceAddressRestrictionId,
long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator)
Returns the commerce address restrictions before and after the current commerce address restriction in the ordered set where classNameId = ? and classPK = ?.
|
static java.util.List<CommerceAddressRestriction> |
findByC_C(long classNameId,
long classPK)
Returns all the commerce address restrictions where classNameId = ? and classPK = ?.
|
static java.util.List<CommerceAddressRestriction> |
findByC_C(long classNameId,
long classPK,
int start,
int end)
Returns a range of all the commerce address restrictions where classNameId = ? and classPK = ?.
|
static java.util.List<CommerceAddressRestriction> |
findByC_C(long classNameId,
long classPK,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator)
Returns an ordered range of all the commerce address restrictions where classNameId = ? and classPK = ?.
|
static java.util.List<CommerceAddressRestriction> |
findByC_C(long classNameId,
long classPK,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce address restrictions where classNameId = ? and classPK = ?.
|
static CommerceAddressRestriction |
findByCommerceCountryId_First(long commerceCountryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator)
Returns the first commerce address restriction in the ordered set where commerceCountryId = ?.
|
static CommerceAddressRestriction |
findByCommerceCountryId_Last(long commerceCountryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator)
Returns the last commerce address restriction in the ordered set where commerceCountryId = ?.
|
static CommerceAddressRestriction[] |
findByCommerceCountryId_PrevAndNext(long commerceAddressRestrictionId,
long commerceCountryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator)
Returns the commerce address restrictions before and after the current commerce address restriction in the ordered set where commerceCountryId = ?.
|
static java.util.List<CommerceAddressRestriction> |
findByCommerceCountryId(long commerceCountryId)
Returns all the commerce address restrictions where commerceCountryId = ?.
|
static java.util.List<CommerceAddressRestriction> |
findByCommerceCountryId(long commerceCountryId,
int start,
int end)
Returns a range of all the commerce address restrictions where commerceCountryId = ?.
|
static java.util.List<CommerceAddressRestriction> |
findByCommerceCountryId(long commerceCountryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator)
Returns an ordered range of all the commerce address restrictions where commerceCountryId = ?.
|
static java.util.List<CommerceAddressRestriction> |
findByCommerceCountryId(long commerceCountryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce address restrictions where commerceCountryId = ?.
|
static CommerceAddressRestriction |
findByPrimaryKey(long commerceAddressRestrictionId)
Returns the commerce address restriction with the primary key or throws a
NoSuchAddressRestrictionException if it could not be found. |
static java.util.List<CommerceAddressRestriction> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceAddressRestriction> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceAddressRestriction> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) |
static CommerceAddressRestrictionPersistence |
getPersistence() |
static CommerceAddressRestriction |
remove(long commerceAddressRestrictionId)
Removes the commerce address restriction with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce address restrictions from the database.
|
static CommerceAddressRestriction |
removeByC_C_C(long classNameId,
long classPK,
long commerceCountryId)
Removes the commerce address restriction where classNameId = ? and classPK = ? and commerceCountryId = ? from the database.
|
static void |
removeByC_C(long classNameId,
long classPK)
Removes all the commerce address restrictions where classNameId = ? and classPK = ? from the database.
|
static void |
removeByCommerceCountryId(long commerceCountryId)
Removes all the commerce address restrictions where commerceCountryId = ? from the database.
|
static void |
setPersistence(CommerceAddressRestrictionPersistence persistence) |
static CommerceAddressRestriction |
update(CommerceAddressRestriction commerceAddressRestriction) |
static CommerceAddressRestriction |
update(CommerceAddressRestriction commerceAddressRestriction,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceAddressRestriction |
updateImpl(CommerceAddressRestriction commerceAddressRestriction) |
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(CommerceAddressRestriction commerceAddressRestriction)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)public static java.util.Map<java.io.Serializable,CommerceAddressRestriction> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)public static java.util.List<CommerceAddressRestriction> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)public static java.util.List<CommerceAddressRestriction> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)public static java.util.List<CommerceAddressRestriction> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)public static CommerceAddressRestriction update(CommerceAddressRestriction commerceAddressRestriction)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)public static CommerceAddressRestriction update(CommerceAddressRestriction commerceAddressRestriction, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)public static java.util.List<CommerceAddressRestriction> findByCommerceCountryId(long commerceCountryId)
commerceCountryId - the commerce country IDpublic static java.util.List<CommerceAddressRestriction> findByCommerceCountryId(long commerceCountryId, 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 CommerceAddressRestrictionModelImpl.
commerceCountryId - the commerce country IDstart - the lower bound of the range of commerce address restrictionsend - the upper bound of the range of commerce address restrictions (not inclusive)public static java.util.List<CommerceAddressRestriction> findByCommerceCountryId(long commerceCountryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> 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 CommerceAddressRestrictionModelImpl.
commerceCountryId - the commerce country IDstart - the lower bound of the range of commerce address restrictionsend - the upper bound of the range of commerce address restrictions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceAddressRestriction> findByCommerceCountryId(long commerceCountryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> 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 CommerceAddressRestrictionModelImpl.
commerceCountryId - the commerce country IDstart - the lower bound of the range of commerce address restrictionsend - the upper bound of the range of commerce address restrictions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachepublic static CommerceAddressRestriction findByCommerceCountryId_First(long commerceCountryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) throws NoSuchAddressRestrictionException
commerceCountryId - the commerce country IDorderByComparator - the comparator to order the set by (optionally null)NoSuchAddressRestrictionException - if a matching commerce address restriction could not be foundpublic static CommerceAddressRestriction fetchByCommerceCountryId_First(long commerceCountryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator)
commerceCountryId - the commerce country IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce address restriction could not be foundpublic static CommerceAddressRestriction findByCommerceCountryId_Last(long commerceCountryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) throws NoSuchAddressRestrictionException
commerceCountryId - the commerce country IDorderByComparator - the comparator to order the set by (optionally null)NoSuchAddressRestrictionException - if a matching commerce address restriction could not be foundpublic static CommerceAddressRestriction fetchByCommerceCountryId_Last(long commerceCountryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator)
commerceCountryId - the commerce country IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce address restriction could not be foundpublic static CommerceAddressRestriction[] findByCommerceCountryId_PrevAndNext(long commerceAddressRestrictionId, long commerceCountryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) throws NoSuchAddressRestrictionException
commerceAddressRestrictionId - the primary key of the current commerce address restrictioncommerceCountryId - the commerce country IDorderByComparator - the comparator to order the set by (optionally null)NoSuchAddressRestrictionException - if a commerce address restriction with the primary key could not be foundpublic static void removeByCommerceCountryId(long commerceCountryId)
commerceCountryId - the commerce country IDpublic static int countByCommerceCountryId(long commerceCountryId)
commerceCountryId - the commerce country IDpublic static java.util.List<CommerceAddressRestriction> findByC_C(long classNameId, long classPK)
classNameId - the class name IDclassPK - the class pkpublic static java.util.List<CommerceAddressRestriction> findByC_C(long classNameId, long classPK, 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 CommerceAddressRestrictionModelImpl.
classNameId - the class name IDclassPK - the class pkstart - the lower bound of the range of commerce address restrictionsend - the upper bound of the range of commerce address restrictions (not inclusive)public static java.util.List<CommerceAddressRestriction> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> 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 CommerceAddressRestrictionModelImpl.
classNameId - the class name IDclassPK - the class pkstart - the lower bound of the range of commerce address restrictionsend - the upper bound of the range of commerce address restrictions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceAddressRestriction> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> 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 CommerceAddressRestrictionModelImpl.
classNameId - the class name IDclassPK - the class pkstart - the lower bound of the range of commerce address restrictionsend - the upper bound of the range of commerce address restrictions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachepublic static CommerceAddressRestriction findByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) throws NoSuchAddressRestrictionException
classNameId - the class name IDclassPK - the class pkorderByComparator - the comparator to order the set by (optionally null)NoSuchAddressRestrictionException - if a matching commerce address restriction could not be foundpublic static CommerceAddressRestriction fetchByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator)
classNameId - the class name IDclassPK - the class pkorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce address restriction could not be foundpublic static CommerceAddressRestriction findByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) throws NoSuchAddressRestrictionException
classNameId - the class name IDclassPK - the class pkorderByComparator - the comparator to order the set by (optionally null)NoSuchAddressRestrictionException - if a matching commerce address restriction could not be foundpublic static CommerceAddressRestriction fetchByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator)
classNameId - the class name IDclassPK - the class pkorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce address restriction could not be foundpublic static CommerceAddressRestriction[] findByC_C_PrevAndNext(long commerceAddressRestrictionId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) throws NoSuchAddressRestrictionException
commerceAddressRestrictionId - the primary key of the current commerce address restrictionclassNameId - the class name IDclassPK - the class pkorderByComparator - the comparator to order the set by (optionally null)NoSuchAddressRestrictionException - if a commerce address restriction with the primary key could not be foundpublic static void removeByC_C(long classNameId,
long classPK)
classNameId - the class name IDclassPK - the class pkpublic static int countByC_C(long classNameId,
long classPK)
classNameId - the class name IDclassPK - the class pkpublic static CommerceAddressRestriction findByC_C_C(long classNameId, long classPK, long commerceCountryId) throws NoSuchAddressRestrictionException
NoSuchAddressRestrictionException if it could not be found.classNameId - the class name IDclassPK - the class pkcommerceCountryId - the commerce country IDNoSuchAddressRestrictionException - if a matching commerce address restriction could not be foundpublic static CommerceAddressRestriction fetchByC_C_C(long classNameId, long classPK, long commerceCountryId)
null if it could not be found. Uses the finder cache.classNameId - the class name IDclassPK - the class pkcommerceCountryId - the commerce country IDnull if a matching commerce address restriction could not be foundpublic static CommerceAddressRestriction fetchByC_C_C(long classNameId, long classPK, long commerceCountryId, boolean useFinderCache)
null if it could not be found, optionally using the finder cache.classNameId - the class name IDclassPK - the class pkcommerceCountryId - the commerce country IDuseFinderCache - whether to use the finder cachenull if a matching commerce address restriction could not be foundpublic static CommerceAddressRestriction removeByC_C_C(long classNameId, long classPK, long commerceCountryId) throws NoSuchAddressRestrictionException
classNameId - the class name IDclassPK - the class pkcommerceCountryId - the commerce country IDNoSuchAddressRestrictionExceptionpublic static int countByC_C_C(long classNameId,
long classPK,
long commerceCountryId)
classNameId - the class name IDclassPK - the class pkcommerceCountryId - the commerce country IDpublic static void cacheResult(CommerceAddressRestriction commerceAddressRestriction)
commerceAddressRestriction - the commerce address restrictionpublic static void cacheResult(java.util.List<CommerceAddressRestriction> commerceAddressRestrictions)
commerceAddressRestrictions - the commerce address restrictionspublic static CommerceAddressRestriction create(long commerceAddressRestrictionId)
commerceAddressRestrictionId - the primary key for the new commerce address restrictionpublic static CommerceAddressRestriction remove(long commerceAddressRestrictionId) throws NoSuchAddressRestrictionException
commerceAddressRestrictionId - the primary key of the commerce address restrictionNoSuchAddressRestrictionException - if a commerce address restriction with the primary key could not be foundpublic static CommerceAddressRestriction updateImpl(CommerceAddressRestriction commerceAddressRestriction)
public static CommerceAddressRestriction findByPrimaryKey(long commerceAddressRestrictionId) throws NoSuchAddressRestrictionException
NoSuchAddressRestrictionException if it could not be found.commerceAddressRestrictionId - the primary key of the commerce address restrictionNoSuchAddressRestrictionException - if a commerce address restriction with the primary key could not be foundpublic static CommerceAddressRestriction fetchByPrimaryKey(long commerceAddressRestrictionId)
null if it could not be found.commerceAddressRestrictionId - the primary key of the commerce address restrictionnull if a commerce address restriction with the primary key could not be foundpublic static java.util.List<CommerceAddressRestriction> findAll()
public static java.util.List<CommerceAddressRestriction> 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 CommerceAddressRestrictionModelImpl.
start - the lower bound of the range of commerce address restrictionsend - the upper bound of the range of commerce address restrictions (not inclusive)public static java.util.List<CommerceAddressRestriction> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> 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 CommerceAddressRestrictionModelImpl.
start - the lower bound of the range of commerce address restrictionsend - the upper bound of the range of commerce address restrictions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceAddressRestriction> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> 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 CommerceAddressRestrictionModelImpl.
start - the lower bound of the range of commerce address restrictionsend - the upper bound of the range of commerce address restrictions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static CommerceAddressRestrictionPersistence getPersistence()
public static void setPersistence(CommerceAddressRestrictionPersistence persistence)