@ProviderType public interface CommerceRegionPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceRegion>
Caching information and settings can be found in portal.properties
CommerceRegionUtil| Modifier and Type | Method and Description |
|---|---|
void |
cacheResult(CommerceRegion commerceRegion)
Caches the commerce region in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CommerceRegion> commerceRegions)
Caches the commerce regions in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of commerce regions.
|
int |
countByC_A(long commerceCountryId,
boolean active)
Returns the number of commerce regions where commerceCountryId = ? and active = ?.
|
int |
countByC_C(long commerceCountryId,
java.lang.String code)
Returns the number of commerce regions where commerceCountryId = ? and code = ?.
|
int |
countByCommerceCountryId(long commerceCountryId)
Returns the number of commerce regions where commerceCountryId = ?.
|
int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of commerce regions where uuid = ? and companyId = ?.
|
int |
countByUuid(java.lang.String uuid)
Returns the number of commerce regions where uuid = ?.
|
CommerceRegion |
create(long commerceRegionId)
Creates a new commerce region with the primary key.
|
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 = ?.
|
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 = ?.
|
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. |
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. |
CommerceRegion |
fetchByCommerceCountryId_First(long commerceCountryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
Returns the first commerce region in the ordered set where commerceCountryId = ?.
|
CommerceRegion |
fetchByCommerceCountryId_Last(long commerceCountryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
Returns the last commerce region in the ordered set where commerceCountryId = ?.
|
CommerceRegion |
fetchByPrimaryKey(long commerceRegionId)
Returns the commerce region with the primary key or returns
null if it could not be found. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CommerceRegion> |
findAll()
Returns all the commerce regions.
|
java.util.List<CommerceRegion> |
findAll(int start,
int end)
Returns a range of all the commerce regions.
|
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.
|
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.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CommerceRegion> |
findByC_A(long commerceCountryId,
boolean active)
Returns all the commerce regions where commerceCountryId = ? and active = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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. |
CommerceRegion |
findByCommerceCountryId_First(long commerceCountryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
Returns the first commerce region in the ordered set where commerceCountryId = ?.
|
CommerceRegion |
findByCommerceCountryId_Last(long commerceCountryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceRegion> orderByComparator)
Returns the last commerce region in the ordered set where commerceCountryId = ?.
|
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 = ?.
|
java.util.List<CommerceRegion> |
findByCommerceCountryId(long commerceCountryId)
Returns all the commerce regions where commerceCountryId = ?.
|
java.util.List<CommerceRegion> |
findByCommerceCountryId(long commerceCountryId,
int start,
int end)
Returns a range of all the commerce regions where commerceCountryId = ?.
|
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 = ?.
|
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 = ?.
|
CommerceRegion |
findByPrimaryKey(long commerceRegionId)
Returns the commerce region with the primary key or throws a
NoSuchRegionException if it could not be found. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CommerceRegion> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the commerce regions where uuid = ? and companyId = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CommerceRegion> |
findByUuid(java.lang.String uuid)
Returns all the commerce regions where uuid = ?.
|
java.util.List<CommerceRegion> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the commerce regions where uuid = ?.
|
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 = ?.
|
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 = ?.
|
CommerceRegion |
remove(long commerceRegionId)
Removes the commerce region with the primary key from the database.
|
void |
removeAll()
Removes all the commerce regions from the database.
|
void |
removeByC_A(long commerceCountryId,
boolean active)
Removes all the commerce regions where commerceCountryId = ? and active = ? from the database.
|
CommerceRegion |
removeByC_C(long commerceCountryId,
java.lang.String code)
Removes the commerce region where commerceCountryId = ? and code = ? from the database.
|
void |
removeByCommerceCountryId(long commerceCountryId)
Removes all the commerce regions where commerceCountryId = ? from the database.
|
void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the commerce regions where uuid = ? and companyId = ? from the database.
|
void |
removeByUuid(java.lang.String uuid)
Removes all the commerce regions where uuid = ? from the database.
|
CommerceRegion |
updateImpl(CommerceRegion commerceRegion) |
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, updatejava.util.List<CommerceRegion> findByUuid(java.lang.String uuid)
uuid - the uuidjava.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)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)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 cacheCommerceRegion 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 foundCommerceRegion 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 foundCommerceRegion 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 foundCommerceRegion 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 foundCommerceRegion[] 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 foundvoid removeByUuid(java.lang.String uuid)
uuid - the uuidint countByUuid(java.lang.String uuid)
uuid - the uuidjava.util.List<CommerceRegion> findByUuid_C(java.lang.String uuid, long companyId)
uuid - the uuidcompanyId - the company IDjava.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)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)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 cacheCommerceRegion 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 foundCommerceRegion 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 foundCommerceRegion 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 foundCommerceRegion 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 foundCommerceRegion[] 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 foundvoid removeByUuid_C(java.lang.String uuid,
long companyId)
uuid - the uuidcompanyId - the company IDint countByUuid_C(java.lang.String uuid,
long companyId)
uuid - the uuidcompanyId - the company IDjava.util.List<CommerceRegion> findByCommerceCountryId(long commerceCountryId)
commerceCountryId - the commerce country IDjava.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)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)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 cacheCommerceRegion 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 foundCommerceRegion 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 foundCommerceRegion 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 foundCommerceRegion 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 foundCommerceRegion[] 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 foundvoid removeByCommerceCountryId(long commerceCountryId)
commerceCountryId - the commerce country IDint countByCommerceCountryId(long commerceCountryId)
commerceCountryId - the commerce country IDCommerceRegion 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 foundCommerceRegion 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 foundCommerceRegion 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 foundCommerceRegion removeByC_C(long commerceCountryId, java.lang.String code) throws NoSuchRegionException
commerceCountryId - the commerce country IDcode - the codeNoSuchRegionExceptionint countByC_C(long commerceCountryId,
java.lang.String code)
commerceCountryId - the commerce country IDcode - the codejava.util.List<CommerceRegion> findByC_A(long commerceCountryId, boolean active)
commerceCountryId - the commerce country IDactive - the activejava.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)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)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 cacheCommerceRegion 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 foundCommerceRegion 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 foundCommerceRegion 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 foundCommerceRegion 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 foundCommerceRegion[] 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 foundvoid removeByC_A(long commerceCountryId,
boolean active)
commerceCountryId - the commerce country IDactive - the activeint countByC_A(long commerceCountryId,
boolean active)
commerceCountryId - the commerce country IDactive - the activevoid cacheResult(CommerceRegion commerceRegion)
commerceRegion - the commerce regionvoid cacheResult(java.util.List<CommerceRegion> commerceRegions)
commerceRegions - the commerce regionsCommerceRegion create(long commerceRegionId)
commerceRegionId - the primary key for the new commerce regionCommerceRegion remove(long commerceRegionId) throws NoSuchRegionException
commerceRegionId - the primary key of the commerce regionNoSuchRegionException - if a commerce region with the primary key could not be foundCommerceRegion updateImpl(CommerceRegion commerceRegion)
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 foundCommerceRegion 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 foundjava.util.List<CommerceRegion> findAll()
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)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)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 cachevoid removeAll()
int countAll()