public class CommerceRegionUtil
extends java.lang.Object
com.liferay.commerce.service.persistence.impl.CommerceRegionPersistenceImpl 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
CommerceRegionPersistence| Constructor and Description |
|---|
CommerceRegionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cacheResult(CommerceRegion commerceRegion)
Caches the commerce region in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceRegion> commerceRegions)
Caches the commerce regions in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceRegion commerceRegion) |
static int |
countAll()
Returns the number of commerce regions.
|
static int |
countByC_A(long commerceCountryId,
boolean active)
Returns the number of commerce regions where commerceCountryId = ? and active = ?.
|
static int |
countByC_C(long commerceCountryId,
java.lang.String code)
Returns the number of commerce regions where commerceCountryId = ? and code = ?.
|
static int |
countByCommerceCountryId(long commerceCountryId)
Returns the number of commerce regions where commerceCountryId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of commerce regions where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of commerce regions where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceRegion |
create(long commerceRegionId)
Creates a new commerce region with the primary key.
|
static CommerceRegion |
fetchByC_A_First(long commerceCountryId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
Returns the first commerce region in the ordered set where commerceCountryId = ? and active = ?.
|
static CommerceRegion |
fetchByC_A_Last(long commerceCountryId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
Returns the last commerce region in the ordered set where commerceCountryId = ? and active = ?.
|
static CommerceRegion |
fetchByC_C(long commerceCountryId,
java.lang.String code)
Returns the commerce region where commerceCountryId = ? and code = ? or returns
null if it could not be found. |
static CommerceRegion |
fetchByC_C(long commerceCountryId,
java.lang.String code,
boolean useFinderCache)
Returns the commerce region where commerceCountryId = ? and code = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommerceRegion |
fetchByCommerceCountryId_First(long commerceCountryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
Returns the first commerce region in the ordered set where commerceCountryId = ?.
|
static CommerceRegion |
fetchByCommerceCountryId_Last(long commerceCountryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
Returns the last commerce region in the ordered set where commerceCountryId = ?.
|
static CommerceRegion |
fetchByPrimaryKey(long commerceRegionId)
Returns the commerce region with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceRegion> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static CommerceRegion |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
Returns the first commerce region in the ordered set where uuid = ? and companyId = ?.
|
static CommerceRegion |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
Returns the last commerce region in the ordered set where uuid = ? and companyId = ?.
|
static CommerceRegion |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
Returns the first commerce region in the ordered set where uuid = ?.
|
static CommerceRegion |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
Returns the last commerce region in the ordered set where uuid = ?.
|
static java.util.List<CommerceRegion> |
findAll()
Returns all the commerce regions.
|
static java.util.List<CommerceRegion> |
findAll(int start,
int end)
Returns a range of all the commerce regions.
|
static java.util.List<CommerceRegion> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
Returns an ordered range of all the commerce regions.
|
static java.util.List<CommerceRegion> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce regions.
|
static CommerceRegion |
findByC_A_First(long commerceCountryId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
Returns the first commerce region in the ordered set where commerceCountryId = ? and active = ?.
|
static CommerceRegion |
findByC_A_Last(long commerceCountryId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
Returns the last commerce region in the ordered set where commerceCountryId = ? and active = ?.
|
static CommerceRegion[] |
findByC_A_PrevAndNext(long commerceRegionId,
long commerceCountryId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
Returns the commerce regions before and after the current commerce region in the ordered set where commerceCountryId = ? and active = ?.
|
static java.util.List<CommerceRegion> |
findByC_A(long commerceCountryId,
boolean active)
Returns all the commerce regions where commerceCountryId = ? and active = ?.
|
static java.util.List<CommerceRegion> |
findByC_A(long commerceCountryId,
boolean active,
int start,
int end)
Returns a range of all the commerce regions where commerceCountryId = ? and active = ?.
|
static java.util.List<CommerceRegion> |
findByC_A(long commerceCountryId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
Returns an ordered range of all the commerce regions where commerceCountryId = ? and active = ?.
|
static java.util.List<CommerceRegion> |
findByC_A(long commerceCountryId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce regions where commerceCountryId = ? and active = ?.
|
static CommerceRegion |
findByC_C(long commerceCountryId,
java.lang.String code)
Returns the commerce region where commerceCountryId = ? and code = ? or throws a
NoSuchRegionException if it could not be found. |
static CommerceRegion |
findByCommerceCountryId_First(long commerceCountryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
Returns the first commerce region in the ordered set where commerceCountryId = ?.
|
static CommerceRegion |
findByCommerceCountryId_Last(long commerceCountryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
Returns the last commerce region in the ordered set where commerceCountryId = ?.
|
static CommerceRegion[] |
findByCommerceCountryId_PrevAndNext(long commerceRegionId,
long commerceCountryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
Returns the commerce regions before and after the current commerce region in the ordered set where commerceCountryId = ?.
|
static java.util.List<CommerceRegion> |
findByCommerceCountryId(long commerceCountryId)
Returns all the commerce regions where commerceCountryId = ?.
|
static java.util.List<CommerceRegion> |
findByCommerceCountryId(long commerceCountryId,
int start,
int end)
Returns a range of all the commerce regions where commerceCountryId = ?.
|
static java.util.List<CommerceRegion> |
findByCommerceCountryId(long commerceCountryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
Returns an ordered range of all the commerce regions where commerceCountryId = ?.
|
static java.util.List<CommerceRegion> |
findByCommerceCountryId(long commerceCountryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce regions where commerceCountryId = ?.
|
static CommerceRegion |
findByPrimaryKey(long commerceRegionId)
Returns the commerce region with the primary key or throws a
NoSuchRegionException if it could not be found. |
static CommerceRegion |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
Returns the first commerce region in the ordered set where uuid = ? and companyId = ?.
|
static CommerceRegion |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
Returns the last commerce region in the ordered set where uuid = ? and companyId = ?.
|
static CommerceRegion[] |
findByUuid_C_PrevAndNext(long commerceRegionId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
Returns the commerce regions before and after the current commerce region in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<CommerceRegion> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the commerce regions where uuid = ? and companyId = ?.
|
static java.util.List<CommerceRegion> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the commerce regions where uuid = ? and companyId = ?.
|
static java.util.List<CommerceRegion> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
Returns an ordered range of all the commerce regions where uuid = ? and companyId = ?.
|
static java.util.List<CommerceRegion> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce regions where uuid = ? and companyId = ?.
|
static CommerceRegion |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
Returns the first commerce region in the ordered set where uuid = ?.
|
static CommerceRegion |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
Returns the last commerce region in the ordered set where uuid = ?.
|
static CommerceRegion[] |
findByUuid_PrevAndNext(long commerceRegionId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
Returns the commerce regions before and after the current commerce region in the ordered set where uuid = ?.
|
static java.util.List<CommerceRegion> |
findByUuid(java.lang.String uuid)
Returns all the commerce regions where uuid = ?.
|
static java.util.List<CommerceRegion> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the commerce regions where uuid = ?.
|
static java.util.List<CommerceRegion> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
Returns an ordered range of all the commerce regions where uuid = ?.
|
static java.util.List<CommerceRegion> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce regions where uuid = ?.
|
static java.util.List<CommerceRegion> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceRegion> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceRegion> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator) |
static CommerceRegionPersistence |
getPersistence() |
static CommerceRegion |
remove(long commerceRegionId)
Removes the commerce region with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce regions from the database.
|
static void |
removeByC_A(long commerceCountryId,
boolean active)
Removes all the commerce regions where commerceCountryId = ? and active = ? from the database.
|
static CommerceRegion |
removeByC_C(long commerceCountryId,
java.lang.String code)
Removes the commerce region where commerceCountryId = ? and code = ? from the database.
|
static void |
removeByCommerceCountryId(long commerceCountryId)
Removes all the commerce regions where commerceCountryId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the commerce regions where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the commerce regions where uuid = ? from the database.
|
static CommerceRegion |
update(CommerceRegion commerceRegion) |
static CommerceRegion |
update(CommerceRegion commerceRegion,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceRegion |
updateImpl(CommerceRegion commerceRegion) |
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(CommerceRegion commerceRegion)
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,CommerceRegion> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)public static java.util.List<CommerceRegion> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)public static java.util.List<CommerceRegion> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)public static java.util.List<CommerceRegion> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)public static CommerceRegion update(CommerceRegion commerceRegion)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)public static CommerceRegion update(CommerceRegion commerceRegion, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)public static java.util.List<CommerceRegion> findByUuid(java.lang.String uuid)
uuid - the uuidpublic static java.util.List<CommerceRegion> findByUuid(java.lang.String uuid, 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 CommerceRegionModelImpl.
uuid - the uuidstart - the lower bound of the range of commerce regionsend - the upper bound of the range of commerce regions (not inclusive)public static java.util.List<CommerceRegion> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> 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 CommerceRegionModelImpl.
uuid - the uuidstart - the lower bound of the range of commerce regionsend - the upper bound of the range of commerce regions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceRegion> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> 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 CommerceRegionModelImpl.
uuid - the uuidstart - the lower bound of the range of commerce regionsend - the upper bound of the range of commerce regions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachepublic static CommerceRegion findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator) throws NoSuchRegionException
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)NoSuchRegionException - if a matching commerce region could not be foundpublic static CommerceRegion fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce region could not be foundpublic static CommerceRegion findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator) throws NoSuchRegionException
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)NoSuchRegionException - if a matching commerce region could not be foundpublic static CommerceRegion fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce region could not be foundpublic static CommerceRegion[] findByUuid_PrevAndNext(long commerceRegionId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator) throws NoSuchRegionException
commerceRegionId - the primary key of the current commerce regionuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)NoSuchRegionException - if a commerce region with the primary key could not be foundpublic static void removeByUuid(java.lang.String uuid)
uuid - the uuidpublic static int countByUuid(java.lang.String uuid)
uuid - the uuidpublic static java.util.List<CommerceRegion> findByUuid_C(java.lang.String uuid, long companyId)
uuid - the uuidcompanyId - the company IDpublic static java.util.List<CommerceRegion> findByUuid_C(java.lang.String uuid, long companyId, 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 CommerceRegionModelImpl.
uuid - the uuidcompanyId - the company IDstart - the lower bound of the range of commerce regionsend - the upper bound of the range of commerce regions (not inclusive)public static java.util.List<CommerceRegion> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> 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 CommerceRegionModelImpl.
uuid - the uuidcompanyId - the company IDstart - the lower bound of the range of commerce regionsend - the upper bound of the range of commerce regions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceRegion> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> 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 CommerceRegionModelImpl.
uuid - the uuidcompanyId - the company IDstart - the lower bound of the range of commerce regionsend - the upper bound of the range of commerce regions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachepublic static CommerceRegion findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator) throws NoSuchRegionException
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchRegionException - if a matching commerce region could not be foundpublic static CommerceRegion fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce region could not be foundpublic static CommerceRegion findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator) throws NoSuchRegionException
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchRegionException - if a matching commerce region could not be foundpublic static CommerceRegion fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce region could not be foundpublic static CommerceRegion[] findByUuid_C_PrevAndNext(long commerceRegionId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator) throws NoSuchRegionException
commerceRegionId - the primary key of the current commerce regionuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchRegionException - if a commerce region with the primary key could not be foundpublic static void removeByUuid_C(java.lang.String uuid,
long companyId)
uuid - the uuidcompanyId - the company IDpublic static int countByUuid_C(java.lang.String uuid,
long companyId)
uuid - the uuidcompanyId - the company IDpublic static java.util.List<CommerceRegion> findByCommerceCountryId(long commerceCountryId)
commerceCountryId - the commerce country IDpublic static java.util.List<CommerceRegion> 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 CommerceRegionModelImpl.
commerceCountryId - the commerce country IDstart - the lower bound of the range of commerce regionsend - the upper bound of the range of commerce regions (not inclusive)public static java.util.List<CommerceRegion> findByCommerceCountryId(long commerceCountryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> 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 CommerceRegionModelImpl.
commerceCountryId - the commerce country IDstart - the lower bound of the range of commerce regionsend - the upper bound of the range of commerce regions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceRegion> findByCommerceCountryId(long commerceCountryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> 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 CommerceRegionModelImpl.
commerceCountryId - the commerce country IDstart - the lower bound of the range of commerce regionsend - the upper bound of the range of commerce regions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachepublic static CommerceRegion findByCommerceCountryId_First(long commerceCountryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator) throws NoSuchRegionException
commerceCountryId - the commerce country IDorderByComparator - the comparator to order the set by (optionally null)NoSuchRegionException - if a matching commerce region could not be foundpublic static CommerceRegion fetchByCommerceCountryId_First(long commerceCountryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
commerceCountryId - the commerce country IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce region could not be foundpublic static CommerceRegion findByCommerceCountryId_Last(long commerceCountryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator) throws NoSuchRegionException
commerceCountryId - the commerce country IDorderByComparator - the comparator to order the set by (optionally null)NoSuchRegionException - if a matching commerce region could not be foundpublic static CommerceRegion fetchByCommerceCountryId_Last(long commerceCountryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
commerceCountryId - the commerce country IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce region could not be foundpublic static CommerceRegion[] findByCommerceCountryId_PrevAndNext(long commerceRegionId, long commerceCountryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator) throws NoSuchRegionException
commerceRegionId - the primary key of the current commerce regioncommerceCountryId - the commerce country IDorderByComparator - the comparator to order the set by (optionally null)NoSuchRegionException - if a commerce region 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 CommerceRegion findByC_C(long commerceCountryId, java.lang.String code) throws NoSuchRegionException
NoSuchRegionException if it could not be found.commerceCountryId - the commerce country IDcode - the codeNoSuchRegionException - if a matching commerce region could not be foundpublic static CommerceRegion fetchByC_C(long commerceCountryId, java.lang.String code)
null if it could not be found. Uses the finder cache.commerceCountryId - the commerce country IDcode - the codenull if a matching commerce region could not be foundpublic static CommerceRegion fetchByC_C(long commerceCountryId, java.lang.String code, boolean useFinderCache)
null if it could not be found, optionally using the finder cache.commerceCountryId - the commerce country IDcode - the codeuseFinderCache - whether to use the finder cachenull if a matching commerce region could not be foundpublic static CommerceRegion removeByC_C(long commerceCountryId, java.lang.String code) throws NoSuchRegionException
commerceCountryId - the commerce country IDcode - the codeNoSuchRegionExceptionpublic static int countByC_C(long commerceCountryId,
java.lang.String code)
commerceCountryId - the commerce country IDcode - the codepublic static java.util.List<CommerceRegion> findByC_A(long commerceCountryId, boolean active)
commerceCountryId - the commerce country IDactive - the activepublic static java.util.List<CommerceRegion> findByC_A(long commerceCountryId, 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 CommerceRegionModelImpl.
commerceCountryId - the commerce country IDactive - the activestart - the lower bound of the range of commerce regionsend - the upper bound of the range of commerce regions (not inclusive)public static java.util.List<CommerceRegion> findByC_A(long commerceCountryId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> 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 CommerceRegionModelImpl.
commerceCountryId - the commerce country IDactive - the activestart - the lower bound of the range of commerce regionsend - the upper bound of the range of commerce regions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceRegion> findByC_A(long commerceCountryId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> 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 CommerceRegionModelImpl.
commerceCountryId - the commerce country IDactive - the activestart - the lower bound of the range of commerce regionsend - the upper bound of the range of commerce regions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachepublic static CommerceRegion findByC_A_First(long commerceCountryId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator) throws NoSuchRegionException
commerceCountryId - the commerce country IDactive - the activeorderByComparator - the comparator to order the set by (optionally null)NoSuchRegionException - if a matching commerce region could not be foundpublic static CommerceRegion fetchByC_A_First(long commerceCountryId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
commerceCountryId - the commerce country IDactive - the activeorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce region could not be foundpublic static CommerceRegion findByC_A_Last(long commerceCountryId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator) throws NoSuchRegionException
commerceCountryId - the commerce country IDactive - the activeorderByComparator - the comparator to order the set by (optionally null)NoSuchRegionException - if a matching commerce region could not be foundpublic static CommerceRegion fetchByC_A_Last(long commerceCountryId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
commerceCountryId - the commerce country IDactive - the activeorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce region could not be foundpublic static CommerceRegion[] findByC_A_PrevAndNext(long commerceRegionId, long commerceCountryId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator) throws NoSuchRegionException
commerceRegionId - the primary key of the current commerce regioncommerceCountryId - the commerce country IDactive - the activeorderByComparator - the comparator to order the set by (optionally null)NoSuchRegionException - if a commerce region with the primary key could not be foundpublic static void removeByC_A(long commerceCountryId,
boolean active)
commerceCountryId - the commerce country IDactive - the activepublic static int countByC_A(long commerceCountryId,
boolean active)
commerceCountryId - the commerce country IDactive - the activepublic static void cacheResult(CommerceRegion commerceRegion)
commerceRegion - the commerce regionpublic static void cacheResult(java.util.List<CommerceRegion> commerceRegions)
commerceRegions - the commerce regionspublic static CommerceRegion create(long commerceRegionId)
commerceRegionId - the primary key for the new commerce regionpublic static CommerceRegion remove(long commerceRegionId) throws NoSuchRegionException
commerceRegionId - the primary key of the commerce regionNoSuchRegionException - if a commerce region with the primary key could not be foundpublic static CommerceRegion updateImpl(CommerceRegion commerceRegion)
public static CommerceRegion findByPrimaryKey(long commerceRegionId) throws NoSuchRegionException
NoSuchRegionException if it could not be found.commerceRegionId - the primary key of the commerce regionNoSuchRegionException - if a commerce region with the primary key could not be foundpublic static CommerceRegion fetchByPrimaryKey(long commerceRegionId)
null if it could not be found.commerceRegionId - the primary key of the commerce regionnull if a commerce region with the primary key could not be foundpublic static java.util.List<CommerceRegion> findAll()
public static java.util.List<CommerceRegion> 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 CommerceRegionModelImpl.
start - the lower bound of the range of commerce regionsend - the upper bound of the range of commerce regions (not inclusive)public static java.util.List<CommerceRegion> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> 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 CommerceRegionModelImpl.
start - the lower bound of the range of commerce regionsend - the upper bound of the range of commerce regions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceRegion> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> 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 CommerceRegionModelImpl.
start - the lower bound of the range of commerce regionsend - the upper bound of the range of commerce regions (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 CommerceRegionPersistence getPersistence()