@ProviderType
public class CommerceCountryUtil
extends java.lang.Object
com.liferay.commerce.service.persistence.impl.CommerceCountryPersistenceImpl 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
CommerceCountryPersistence,
com.liferay.commerce.service.persistence.impl.CommerceCountryPersistenceImpl| Constructor and Description |
|---|
CommerceCountryUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cacheResult(CommerceCountry commerceCountry)
Caches the commerce country in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceCountry> commerceCountries)
Caches the commerce countries in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceCountry commerceCountry) |
static int |
countAll()
Returns the number of commerce countries.
|
static int |
countByG_A(long groupId,
boolean active)
Returns the number of commerce countries where groupId = ? and active = ?.
|
static int |
countByG_B_A(long groupId,
boolean billingAllowed,
boolean active)
Returns the number of commerce countries where groupId = ? and billingAllowed = ? and active = ?.
|
static int |
countByG_N(long groupId,
int numericISOCode)
Returns the number of commerce countries where groupId = ? and numericISOCode = ?.
|
static int |
countByG_S_A(long groupId,
boolean shippingAllowed,
boolean active)
Returns the number of commerce countries where groupId = ? and shippingAllowed = ? and active = ?.
|
static int |
countByGroupId(long groupId)
Returns the number of commerce countries where groupId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of commerce countries where uuid = ? and companyId = ?.
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of commerce countries where uuid = ? and groupId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of commerce countries where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceCountry |
create(long commerceCountryId)
Creates a new commerce country with the primary key.
|
static CommerceCountry |
fetchByG_A_First(long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the first commerce country in the ordered set where groupId = ? and active = ?.
|
static CommerceCountry |
fetchByG_A_Last(long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the last commerce country in the ordered set where groupId = ? and active = ?.
|
static CommerceCountry |
fetchByG_B_A_First(long groupId,
boolean billingAllowed,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the first commerce country in the ordered set where groupId = ? and billingAllowed = ? and active = ?.
|
static CommerceCountry |
fetchByG_B_A_Last(long groupId,
boolean billingAllowed,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the last commerce country in the ordered set where groupId = ? and billingAllowed = ? and active = ?.
|
static CommerceCountry |
fetchByG_N(long groupId,
int numericISOCode)
Returns the commerce country where groupId = ? and numericISOCode = ? or returns
null if it could not be found. |
static CommerceCountry |
fetchByG_N(long groupId,
int numericISOCode,
boolean retrieveFromCache)
Returns the commerce country where groupId = ? and numericISOCode = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommerceCountry |
fetchByG_S_A_First(long groupId,
boolean shippingAllowed,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the first commerce country in the ordered set where groupId = ? and shippingAllowed = ? and active = ?.
|
static CommerceCountry |
fetchByG_S_A_Last(long groupId,
boolean shippingAllowed,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the last commerce country in the ordered set where groupId = ? and shippingAllowed = ? and active = ?.
|
static CommerceCountry |
fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the first commerce country in the ordered set where groupId = ?.
|
static CommerceCountry |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the last commerce country in the ordered set where groupId = ?.
|
static CommerceCountry |
fetchByPrimaryKey(long commerceCountryId)
Returns the commerce country with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceCountry> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static CommerceCountry |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the first commerce country in the ordered set where uuid = ? and companyId = ?.
|
static CommerceCountry |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the last commerce country in the ordered set where uuid = ? and companyId = ?.
|
static CommerceCountry |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the first commerce country in the ordered set where uuid = ?.
|
static CommerceCountry |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the commerce country where uuid = ? and groupId = ? or returns
null if it could not be found. |
static CommerceCountry |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean retrieveFromCache)
Returns the commerce country where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommerceCountry |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the last commerce country in the ordered set where uuid = ?.
|
static java.util.List<CommerceCountry> |
findAll()
Returns all the commerce countries.
|
static java.util.List<CommerceCountry> |
findAll(int start,
int end)
Returns a range of all the commerce countries.
|
static java.util.List<CommerceCountry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns an ordered range of all the commerce countries.
|
static java.util.List<CommerceCountry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce countries.
|
static CommerceCountry |
findByG_A_First(long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the first commerce country in the ordered set where groupId = ? and active = ?.
|
static CommerceCountry |
findByG_A_Last(long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the last commerce country in the ordered set where groupId = ? and active = ?.
|
static CommerceCountry[] |
findByG_A_PrevAndNext(long commerceCountryId,
long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the commerce countries before and after the current commerce country in the ordered set where groupId = ? and active = ?.
|
static java.util.List<CommerceCountry> |
findByG_A(long groupId,
boolean active)
Returns all the commerce countries where groupId = ? and active = ?.
|
static java.util.List<CommerceCountry> |
findByG_A(long groupId,
boolean active,
int start,
int end)
Returns a range of all the commerce countries where groupId = ? and active = ?.
|
static java.util.List<CommerceCountry> |
findByG_A(long groupId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns an ordered range of all the commerce countries where groupId = ? and active = ?.
|
static java.util.List<CommerceCountry> |
findByG_A(long groupId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce countries where groupId = ? and active = ?.
|
static CommerceCountry |
findByG_B_A_First(long groupId,
boolean billingAllowed,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the first commerce country in the ordered set where groupId = ? and billingAllowed = ? and active = ?.
|
static CommerceCountry |
findByG_B_A_Last(long groupId,
boolean billingAllowed,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the last commerce country in the ordered set where groupId = ? and billingAllowed = ? and active = ?.
|
static CommerceCountry[] |
findByG_B_A_PrevAndNext(long commerceCountryId,
long groupId,
boolean billingAllowed,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the commerce countries before and after the current commerce country in the ordered set where groupId = ? and billingAllowed = ? and active = ?.
|
static java.util.List<CommerceCountry> |
findByG_B_A(long groupId,
boolean billingAllowed,
boolean active)
Returns all the commerce countries where groupId = ? and billingAllowed = ? and active = ?.
|
static java.util.List<CommerceCountry> |
findByG_B_A(long groupId,
boolean billingAllowed,
boolean active,
int start,
int end)
Returns a range of all the commerce countries where groupId = ? and billingAllowed = ? and active = ?.
|
static java.util.List<CommerceCountry> |
findByG_B_A(long groupId,
boolean billingAllowed,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns an ordered range of all the commerce countries where groupId = ? and billingAllowed = ? and active = ?.
|
static java.util.List<CommerceCountry> |
findByG_B_A(long groupId,
boolean billingAllowed,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce countries where groupId = ? and billingAllowed = ? and active = ?.
|
static CommerceCountry |
findByG_N(long groupId,
int numericISOCode)
Returns the commerce country where groupId = ? and numericISOCode = ? or throws a
NoSuchCountryException if it could not be found. |
static CommerceCountry |
findByG_S_A_First(long groupId,
boolean shippingAllowed,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the first commerce country in the ordered set where groupId = ? and shippingAllowed = ? and active = ?.
|
static CommerceCountry |
findByG_S_A_Last(long groupId,
boolean shippingAllowed,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the last commerce country in the ordered set where groupId = ? and shippingAllowed = ? and active = ?.
|
static CommerceCountry[] |
findByG_S_A_PrevAndNext(long commerceCountryId,
long groupId,
boolean shippingAllowed,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the commerce countries before and after the current commerce country in the ordered set where groupId = ? and shippingAllowed = ? and active = ?.
|
static java.util.List<CommerceCountry> |
findByG_S_A(long groupId,
boolean shippingAllowed,
boolean active)
Returns all the commerce countries where groupId = ? and shippingAllowed = ? and active = ?.
|
static java.util.List<CommerceCountry> |
findByG_S_A(long groupId,
boolean shippingAllowed,
boolean active,
int start,
int end)
Returns a range of all the commerce countries where groupId = ? and shippingAllowed = ? and active = ?.
|
static java.util.List<CommerceCountry> |
findByG_S_A(long groupId,
boolean shippingAllowed,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns an ordered range of all the commerce countries where groupId = ? and shippingAllowed = ? and active = ?.
|
static java.util.List<CommerceCountry> |
findByG_S_A(long groupId,
boolean shippingAllowed,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce countries where groupId = ? and shippingAllowed = ? and active = ?.
|
static CommerceCountry |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the first commerce country in the ordered set where groupId = ?.
|
static CommerceCountry |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the last commerce country in the ordered set where groupId = ?.
|
static CommerceCountry[] |
findByGroupId_PrevAndNext(long commerceCountryId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the commerce countries before and after the current commerce country in the ordered set where groupId = ?.
|
static java.util.List<CommerceCountry> |
findByGroupId(long groupId)
Returns all the commerce countries where groupId = ?.
|
static java.util.List<CommerceCountry> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the commerce countries where groupId = ?.
|
static java.util.List<CommerceCountry> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns an ordered range of all the commerce countries where groupId = ?.
|
static java.util.List<CommerceCountry> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce countries where groupId = ?.
|
static CommerceCountry |
findByPrimaryKey(long commerceCountryId)
Returns the commerce country with the primary key or throws a
NoSuchCountryException if it could not be found. |
static CommerceCountry |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the first commerce country in the ordered set where uuid = ? and companyId = ?.
|
static CommerceCountry |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the last commerce country in the ordered set where uuid = ? and companyId = ?.
|
static CommerceCountry[] |
findByUuid_C_PrevAndNext(long commerceCountryId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the commerce countries before and after the current commerce country in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<CommerceCountry> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the commerce countries where uuid = ? and companyId = ?.
|
static java.util.List<CommerceCountry> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the commerce countries where uuid = ? and companyId = ?.
|
static java.util.List<CommerceCountry> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns an ordered range of all the commerce countries where uuid = ? and companyId = ?.
|
static java.util.List<CommerceCountry> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce countries where uuid = ? and companyId = ?.
|
static CommerceCountry |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the first commerce country in the ordered set where uuid = ?.
|
static CommerceCountry |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the commerce country where uuid = ? and groupId = ? or throws a
NoSuchCountryException if it could not be found. |
static CommerceCountry |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the last commerce country in the ordered set where uuid = ?.
|
static CommerceCountry[] |
findByUuid_PrevAndNext(long commerceCountryId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the commerce countries before and after the current commerce country in the ordered set where uuid = ?.
|
static java.util.List<CommerceCountry> |
findByUuid(java.lang.String uuid)
Returns all the commerce countries where uuid = ?.
|
static java.util.List<CommerceCountry> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the commerce countries where uuid = ?.
|
static java.util.List<CommerceCountry> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns an ordered range of all the commerce countries where uuid = ?.
|
static java.util.List<CommerceCountry> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce countries where uuid = ?.
|
static java.util.List<CommerceCountry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceCountry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceCountry> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator) |
static java.util.Set<java.lang.String> |
getBadColumnNames() |
static CommerceCountryPersistence |
getPersistence() |
static CommerceCountry |
remove(long commerceCountryId)
Removes the commerce country with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce countries from the database.
|
static void |
removeByG_A(long groupId,
boolean active)
Removes all the commerce countries where groupId = ? and active = ? from the database.
|
static void |
removeByG_B_A(long groupId,
boolean billingAllowed,
boolean active)
Removes all the commerce countries where groupId = ? and billingAllowed = ? and active = ? from the database.
|
static CommerceCountry |
removeByG_N(long groupId,
int numericISOCode)
Removes the commerce country where groupId = ? and numericISOCode = ? from the database.
|
static void |
removeByG_S_A(long groupId,
boolean shippingAllowed,
boolean active)
Removes all the commerce countries where groupId = ? and shippingAllowed = ? and active = ? from the database.
|
static void |
removeByGroupId(long groupId)
Removes all the commerce countries where groupId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the commerce countries where uuid = ? and companyId = ? from the database.
|
static CommerceCountry |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the commerce country where uuid = ? and groupId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the commerce countries where uuid = ? from the database.
|
static CommerceCountry |
update(CommerceCountry commerceCountry) |
static CommerceCountry |
update(CommerceCountry commerceCountry,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceCountry |
updateImpl(CommerceCountry commerceCountry) |
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(CommerceCountry commerceCountry)
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.List<CommerceCountry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)public static java.util.List<CommerceCountry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)public static java.util.List<CommerceCountry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)public static CommerceCountry update(CommerceCountry commerceCountry)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)public static CommerceCountry update(CommerceCountry commerceCountry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)public static java.util.List<CommerceCountry> findByUuid(java.lang.String uuid)
uuid - the uuidpublic static java.util.List<CommerceCountry> 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceCountryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid - the uuidstart - the lower bound of the range of commerce countriesend - the upper bound of the range of commerce countries (not inclusive)public static java.util.List<CommerceCountry> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceCountryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid - the uuidstart - the lower bound of the range of commerce countriesend - the upper bound of the range of commerce countries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceCountry> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceCountryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid - the uuidstart - the lower bound of the range of commerce countriesend - the upper bound of the range of commerce countries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static CommerceCountry findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator) throws NoSuchCountryException
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)NoSuchCountryException - if a matching commerce country could not be foundpublic static CommerceCountry fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce country could not be foundpublic static CommerceCountry findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator) throws NoSuchCountryException
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)NoSuchCountryException - if a matching commerce country could not be foundpublic static CommerceCountry fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce country could not be foundpublic static CommerceCountry[] findByUuid_PrevAndNext(long commerceCountryId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator) throws NoSuchCountryException
commerceCountryId - the primary key of the current commerce countryuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)NoSuchCountryException - if a commerce country 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 CommerceCountry findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchCountryException
NoSuchCountryException if it could not be found.uuid - the uuidgroupId - the group IDNoSuchCountryException - if a matching commerce country could not be foundpublic static CommerceCountry fetchByUUID_G(java.lang.String uuid, long groupId)
null if it could not be found. Uses the finder cache.uuid - the uuidgroupId - the group IDnull if a matching commerce country could not be foundpublic static CommerceCountry fetchByUUID_G(java.lang.String uuid, long groupId, boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.uuid - the uuidgroupId - the group IDretrieveFromCache - whether to retrieve from the finder cachenull if a matching commerce country could not be foundpublic static CommerceCountry removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchCountryException
uuid - the uuidgroupId - the group IDNoSuchCountryExceptionpublic static int countByUUID_G(java.lang.String uuid,
long groupId)
uuid - the uuidgroupId - the group IDpublic static java.util.List<CommerceCountry> findByUuid_C(java.lang.String uuid, long companyId)
uuid - the uuidcompanyId - the company IDpublic static java.util.List<CommerceCountry> 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceCountryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid - the uuidcompanyId - the company IDstart - the lower bound of the range of commerce countriesend - the upper bound of the range of commerce countries (not inclusive)public static java.util.List<CommerceCountry> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceCountryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid - the uuidcompanyId - the company IDstart - the lower bound of the range of commerce countriesend - the upper bound of the range of commerce countries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceCountry> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceCountryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid - the uuidcompanyId - the company IDstart - the lower bound of the range of commerce countriesend - the upper bound of the range of commerce countries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static CommerceCountry findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator) throws NoSuchCountryException
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchCountryException - if a matching commerce country could not be foundpublic static CommerceCountry fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce country could not be foundpublic static CommerceCountry findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator) throws NoSuchCountryException
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchCountryException - if a matching commerce country could not be foundpublic static CommerceCountry fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce country could not be foundpublic static CommerceCountry[] findByUuid_C_PrevAndNext(long commerceCountryId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator) throws NoSuchCountryException
commerceCountryId - the primary key of the current commerce countryuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchCountryException - if a commerce country 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<CommerceCountry> findByGroupId(long groupId)
groupId - the group IDpublic static java.util.List<CommerceCountry> findByGroupId(long groupId, int start, int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceCountryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstart - the lower bound of the range of commerce countriesend - the upper bound of the range of commerce countries (not inclusive)public static java.util.List<CommerceCountry> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceCountryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstart - the lower bound of the range of commerce countriesend - the upper bound of the range of commerce countries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceCountry> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceCountryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstart - the lower bound of the range of commerce countriesend - the upper bound of the range of commerce countries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static CommerceCountry findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator) throws NoSuchCountryException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchCountryException - if a matching commerce country could not be foundpublic static CommerceCountry fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce country could not be foundpublic static CommerceCountry findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator) throws NoSuchCountryException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchCountryException - if a matching commerce country could not be foundpublic static CommerceCountry fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce country could not be foundpublic static CommerceCountry[] findByGroupId_PrevAndNext(long commerceCountryId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator) throws NoSuchCountryException
commerceCountryId - the primary key of the current commerce countrygroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchCountryException - if a commerce country with the primary key could not be foundpublic static void removeByGroupId(long groupId)
groupId - the group IDpublic static int countByGroupId(long groupId)
groupId - the group IDpublic static CommerceCountry findByG_N(long groupId, int numericISOCode) throws NoSuchCountryException
NoSuchCountryException if it could not be found.groupId - the group IDnumericISOCode - the numeric iso codeNoSuchCountryException - if a matching commerce country could not be foundpublic static CommerceCountry fetchByG_N(long groupId, int numericISOCode)
null if it could not be found. Uses the finder cache.groupId - the group IDnumericISOCode - the numeric iso codenull if a matching commerce country could not be foundpublic static CommerceCountry fetchByG_N(long groupId, int numericISOCode, boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.groupId - the group IDnumericISOCode - the numeric iso coderetrieveFromCache - whether to retrieve from the finder cachenull if a matching commerce country could not be foundpublic static CommerceCountry removeByG_N(long groupId, int numericISOCode) throws NoSuchCountryException
groupId - the group IDnumericISOCode - the numeric iso codeNoSuchCountryExceptionpublic static int countByG_N(long groupId,
int numericISOCode)
groupId - the group IDnumericISOCode - the numeric iso codepublic static java.util.List<CommerceCountry> findByG_A(long groupId, boolean active)
groupId - the group IDactive - the activepublic static java.util.List<CommerceCountry> findByG_A(long groupId, boolean active, int start, int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceCountryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDactive - the activestart - the lower bound of the range of commerce countriesend - the upper bound of the range of commerce countries (not inclusive)public static java.util.List<CommerceCountry> findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceCountryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDactive - the activestart - the lower bound of the range of commerce countriesend - the upper bound of the range of commerce countries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceCountry> findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceCountryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDactive - the activestart - the lower bound of the range of commerce countriesend - the upper bound of the range of commerce countries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static CommerceCountry findByG_A_First(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator) throws NoSuchCountryException
groupId - the group IDactive - the activeorderByComparator - the comparator to order the set by (optionally null)NoSuchCountryException - if a matching commerce country could not be foundpublic static CommerceCountry fetchByG_A_First(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
groupId - the group IDactive - the activeorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce country could not be foundpublic static CommerceCountry findByG_A_Last(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator) throws NoSuchCountryException
groupId - the group IDactive - the activeorderByComparator - the comparator to order the set by (optionally null)NoSuchCountryException - if a matching commerce country could not be foundpublic static CommerceCountry fetchByG_A_Last(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
groupId - the group IDactive - the activeorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce country could not be foundpublic static CommerceCountry[] findByG_A_PrevAndNext(long commerceCountryId, long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator) throws NoSuchCountryException
commerceCountryId - the primary key of the current commerce countrygroupId - the group IDactive - the activeorderByComparator - the comparator to order the set by (optionally null)NoSuchCountryException - if a commerce country with the primary key could not be foundpublic static void removeByG_A(long groupId,
boolean active)
groupId - the group IDactive - the activepublic static int countByG_A(long groupId,
boolean active)
groupId - the group IDactive - the activepublic static java.util.List<CommerceCountry> findByG_B_A(long groupId, boolean billingAllowed, boolean active)
groupId - the group IDbillingAllowed - the billing allowedactive - the activepublic static java.util.List<CommerceCountry> findByG_B_A(long groupId, boolean billingAllowed, boolean active, int start, int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceCountryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDbillingAllowed - the billing allowedactive - the activestart - the lower bound of the range of commerce countriesend - the upper bound of the range of commerce countries (not inclusive)public static java.util.List<CommerceCountry> findByG_B_A(long groupId, boolean billingAllowed, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceCountryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDbillingAllowed - the billing allowedactive - the activestart - the lower bound of the range of commerce countriesend - the upper bound of the range of commerce countries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceCountry> findByG_B_A(long groupId, boolean billingAllowed, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceCountryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDbillingAllowed - the billing allowedactive - the activestart - the lower bound of the range of commerce countriesend - the upper bound of the range of commerce countries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static CommerceCountry findByG_B_A_First(long groupId, boolean billingAllowed, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator) throws NoSuchCountryException
groupId - the group IDbillingAllowed - the billing allowedactive - the activeorderByComparator - the comparator to order the set by (optionally null)NoSuchCountryException - if a matching commerce country could not be foundpublic static CommerceCountry fetchByG_B_A_First(long groupId, boolean billingAllowed, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
groupId - the group IDbillingAllowed - the billing allowedactive - the activeorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce country could not be foundpublic static CommerceCountry findByG_B_A_Last(long groupId, boolean billingAllowed, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator) throws NoSuchCountryException
groupId - the group IDbillingAllowed - the billing allowedactive - the activeorderByComparator - the comparator to order the set by (optionally null)NoSuchCountryException - if a matching commerce country could not be foundpublic static CommerceCountry fetchByG_B_A_Last(long groupId, boolean billingAllowed, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
groupId - the group IDbillingAllowed - the billing allowedactive - the activeorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce country could not be foundpublic static CommerceCountry[] findByG_B_A_PrevAndNext(long commerceCountryId, long groupId, boolean billingAllowed, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator) throws NoSuchCountryException
commerceCountryId - the primary key of the current commerce countrygroupId - the group IDbillingAllowed - the billing allowedactive - the activeorderByComparator - the comparator to order the set by (optionally null)NoSuchCountryException - if a commerce country with the primary key could not be foundpublic static void removeByG_B_A(long groupId,
boolean billingAllowed,
boolean active)
groupId - the group IDbillingAllowed - the billing allowedactive - the activepublic static int countByG_B_A(long groupId,
boolean billingAllowed,
boolean active)
groupId - the group IDbillingAllowed - the billing allowedactive - the activepublic static java.util.List<CommerceCountry> findByG_S_A(long groupId, boolean shippingAllowed, boolean active)
groupId - the group IDshippingAllowed - the shipping allowedactive - the activepublic static java.util.List<CommerceCountry> findByG_S_A(long groupId, boolean shippingAllowed, boolean active, int start, int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceCountryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDshippingAllowed - the shipping allowedactive - the activestart - the lower bound of the range of commerce countriesend - the upper bound of the range of commerce countries (not inclusive)public static java.util.List<CommerceCountry> findByG_S_A(long groupId, boolean shippingAllowed, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceCountryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDshippingAllowed - the shipping allowedactive - the activestart - the lower bound of the range of commerce countriesend - the upper bound of the range of commerce countries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceCountry> findByG_S_A(long groupId, boolean shippingAllowed, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceCountryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDshippingAllowed - the shipping allowedactive - the activestart - the lower bound of the range of commerce countriesend - the upper bound of the range of commerce countries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static CommerceCountry findByG_S_A_First(long groupId, boolean shippingAllowed, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator) throws NoSuchCountryException
groupId - the group IDshippingAllowed - the shipping allowedactive - the activeorderByComparator - the comparator to order the set by (optionally null)NoSuchCountryException - if a matching commerce country could not be foundpublic static CommerceCountry fetchByG_S_A_First(long groupId, boolean shippingAllowed, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
groupId - the group IDshippingAllowed - the shipping allowedactive - the activeorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce country could not be foundpublic static CommerceCountry findByG_S_A_Last(long groupId, boolean shippingAllowed, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator) throws NoSuchCountryException
groupId - the group IDshippingAllowed - the shipping allowedactive - the activeorderByComparator - the comparator to order the set by (optionally null)NoSuchCountryException - if a matching commerce country could not be foundpublic static CommerceCountry fetchByG_S_A_Last(long groupId, boolean shippingAllowed, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
groupId - the group IDshippingAllowed - the shipping allowedactive - the activeorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce country could not be foundpublic static CommerceCountry[] findByG_S_A_PrevAndNext(long commerceCountryId, long groupId, boolean shippingAllowed, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator) throws NoSuchCountryException
commerceCountryId - the primary key of the current commerce countrygroupId - the group IDshippingAllowed - the shipping allowedactive - the activeorderByComparator - the comparator to order the set by (optionally null)NoSuchCountryException - if a commerce country with the primary key could not be foundpublic static void removeByG_S_A(long groupId,
boolean shippingAllowed,
boolean active)
groupId - the group IDshippingAllowed - the shipping allowedactive - the activepublic static int countByG_S_A(long groupId,
boolean shippingAllowed,
boolean active)
groupId - the group IDshippingAllowed - the shipping allowedactive - the activepublic static void cacheResult(CommerceCountry commerceCountry)
commerceCountry - the commerce countrypublic static void cacheResult(java.util.List<CommerceCountry> commerceCountries)
commerceCountries - the commerce countriespublic static CommerceCountry create(long commerceCountryId)
commerceCountryId - the primary key for the new commerce countrypublic static CommerceCountry remove(long commerceCountryId) throws NoSuchCountryException
commerceCountryId - the primary key of the commerce countryNoSuchCountryException - if a commerce country with the primary key could not be foundpublic static CommerceCountry updateImpl(CommerceCountry commerceCountry)
public static CommerceCountry findByPrimaryKey(long commerceCountryId) throws NoSuchCountryException
NoSuchCountryException if it could not be found.commerceCountryId - the primary key of the commerce countryNoSuchCountryException - if a commerce country with the primary key could not be foundpublic static CommerceCountry fetchByPrimaryKey(long commerceCountryId)
null if it could not be found.commerceCountryId - the primary key of the commerce countrynull if a commerce country with the primary key could not be foundpublic static java.util.Map<java.io.Serializable,CommerceCountry> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
public static java.util.List<CommerceCountry> findAll()
public static java.util.List<CommerceCountry> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceCountryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of commerce countriesend - the upper bound of the range of commerce countries (not inclusive)public static java.util.List<CommerceCountry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceCountryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of commerce countriesend - the upper bound of the range of commerce countries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceCountry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceCountryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of commerce countriesend - the upper bound of the range of commerce countries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static void removeAll()
public static int countAll()
public static java.util.Set<java.lang.String> getBadColumnNames()
public static CommerceCountryPersistence getPersistence()