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| 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 |
countByC_A(long companyId,
boolean active)
Returns the number of commerce countries where companyId = ? and active = ?.
|
static int |
countByC_B_A(long companyId,
boolean billingAllowed,
boolean active)
Returns the number of commerce countries where companyId = ? and billingAllowed = ? and active = ?.
|
static int |
countByC_N(long companyId,
int numericISOCode)
Returns the number of commerce countries where companyId = ? and numericISOCode = ?.
|
static int |
countByC_S_A(long companyId,
boolean shippingAllowed,
boolean active)
Returns the number of commerce countries where companyId = ? and shippingAllowed = ? and active = ?.
|
static int |
countByC_Tw(long companyId,
java.lang.String twoLettersISOCode)
Returns the number of commerce countries where companyId = ? and twoLettersISOCode = ?.
|
static int |
countByCompanyId(long companyId)
Returns the number of commerce countries where companyId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of commerce countries where uuid = ? and companyId = ?.
|
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 |
fetchByC_A_First(long companyId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the first commerce country in the ordered set where companyId = ? and active = ?.
|
static CommerceCountry |
fetchByC_A_Last(long companyId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the last commerce country in the ordered set where companyId = ? and active = ?.
|
static CommerceCountry |
fetchByC_B_A_First(long companyId,
boolean billingAllowed,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the first commerce country in the ordered set where companyId = ? and billingAllowed = ? and active = ?.
|
static CommerceCountry |
fetchByC_B_A_Last(long companyId,
boolean billingAllowed,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the last commerce country in the ordered set where companyId = ? and billingAllowed = ? and active = ?.
|
static CommerceCountry |
fetchByC_N(long companyId,
int numericISOCode)
Returns the commerce country where companyId = ? and numericISOCode = ? or returns
null if it could not be found. |
static CommerceCountry |
fetchByC_N(long companyId,
int numericISOCode,
boolean useFinderCache)
Returns the commerce country where companyId = ? and numericISOCode = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommerceCountry |
fetchByC_S_A_First(long companyId,
boolean shippingAllowed,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the first commerce country in the ordered set where companyId = ? and shippingAllowed = ? and active = ?.
|
static CommerceCountry |
fetchByC_S_A_Last(long companyId,
boolean shippingAllowed,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the last commerce country in the ordered set where companyId = ? and shippingAllowed = ? and active = ?.
|
static CommerceCountry |
fetchByC_Tw(long companyId,
java.lang.String twoLettersISOCode)
Returns the commerce country where companyId = ? and twoLettersISOCode = ? or returns
null if it could not be found. |
static CommerceCountry |
fetchByC_Tw(long companyId,
java.lang.String twoLettersISOCode,
boolean useFinderCache)
Returns the commerce country where companyId = ? and twoLettersISOCode = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommerceCountry |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the first commerce country in the ordered set where companyId = ?.
|
static CommerceCountry |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the last commerce country in the ordered set where companyId = ?.
|
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_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 useFinderCache)
Returns an ordered range of all the commerce countries.
|
static CommerceCountry |
findByC_A_First(long companyId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the first commerce country in the ordered set where companyId = ? and active = ?.
|
static CommerceCountry |
findByC_A_Last(long companyId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the last commerce country in the ordered set where companyId = ? and active = ?.
|
static CommerceCountry[] |
findByC_A_PrevAndNext(long commerceCountryId,
long companyId,
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 companyId = ? and active = ?.
|
static java.util.List<CommerceCountry> |
findByC_A(long companyId,
boolean active)
Returns all the commerce countries where companyId = ? and active = ?.
|
static java.util.List<CommerceCountry> |
findByC_A(long companyId,
boolean active,
int start,
int end)
Returns a range of all the commerce countries where companyId = ? and active = ?.
|
static java.util.List<CommerceCountry> |
findByC_A(long companyId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns an ordered range of all the commerce countries where companyId = ? and active = ?.
|
static java.util.List<CommerceCountry> |
findByC_A(long companyId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce countries where companyId = ? and active = ?.
|
static CommerceCountry |
findByC_B_A_First(long companyId,
boolean billingAllowed,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the first commerce country in the ordered set where companyId = ? and billingAllowed = ? and active = ?.
|
static CommerceCountry |
findByC_B_A_Last(long companyId,
boolean billingAllowed,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the last commerce country in the ordered set where companyId = ? and billingAllowed = ? and active = ?.
|
static CommerceCountry[] |
findByC_B_A_PrevAndNext(long commerceCountryId,
long companyId,
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 companyId = ? and billingAllowed = ? and active = ?.
|
static java.util.List<CommerceCountry> |
findByC_B_A(long companyId,
boolean billingAllowed,
boolean active)
Returns all the commerce countries where companyId = ? and billingAllowed = ? and active = ?.
|
static java.util.List<CommerceCountry> |
findByC_B_A(long companyId,
boolean billingAllowed,
boolean active,
int start,
int end)
Returns a range of all the commerce countries where companyId = ? and billingAllowed = ? and active = ?.
|
static java.util.List<CommerceCountry> |
findByC_B_A(long companyId,
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 companyId = ? and billingAllowed = ? and active = ?.
|
static java.util.List<CommerceCountry> |
findByC_B_A(long companyId,
boolean billingAllowed,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce countries where companyId = ? and billingAllowed = ? and active = ?.
|
static CommerceCountry |
findByC_N(long companyId,
int numericISOCode)
Returns the commerce country where companyId = ? and numericISOCode = ? or throws a
NoSuchCountryException if it could not be found. |
static CommerceCountry |
findByC_S_A_First(long companyId,
boolean shippingAllowed,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the first commerce country in the ordered set where companyId = ? and shippingAllowed = ? and active = ?.
|
static CommerceCountry |
findByC_S_A_Last(long companyId,
boolean shippingAllowed,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the last commerce country in the ordered set where companyId = ? and shippingAllowed = ? and active = ?.
|
static CommerceCountry[] |
findByC_S_A_PrevAndNext(long commerceCountryId,
long companyId,
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 companyId = ? and shippingAllowed = ? and active = ?.
|
static java.util.List<CommerceCountry> |
findByC_S_A(long companyId,
boolean shippingAllowed,
boolean active)
Returns all the commerce countries where companyId = ? and shippingAllowed = ? and active = ?.
|
static java.util.List<CommerceCountry> |
findByC_S_A(long companyId,
boolean shippingAllowed,
boolean active,
int start,
int end)
Returns a range of all the commerce countries where companyId = ? and shippingAllowed = ? and active = ?.
|
static java.util.List<CommerceCountry> |
findByC_S_A(long companyId,
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 companyId = ? and shippingAllowed = ? and active = ?.
|
static java.util.List<CommerceCountry> |
findByC_S_A(long companyId,
boolean shippingAllowed,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce countries where companyId = ? and shippingAllowed = ? and active = ?.
|
static CommerceCountry |
findByC_Tw(long companyId,
java.lang.String twoLettersISOCode)
Returns the commerce country where companyId = ? and twoLettersISOCode = ? or throws a
NoSuchCountryException if it could not be found. |
static CommerceCountry |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the first commerce country in the ordered set where companyId = ?.
|
static CommerceCountry |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns the last commerce country in the ordered set where companyId = ?.
|
static CommerceCountry[] |
findByCompanyId_PrevAndNext(long commerceCountryId,
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 companyId = ?.
|
static java.util.List<CommerceCountry> |
findByCompanyId(long companyId)
Returns all the commerce countries where companyId = ?.
|
static java.util.List<CommerceCountry> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the commerce countries where companyId = ?.
|
static java.util.List<CommerceCountry> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
Returns an ordered range of all the commerce countries where companyId = ?.
|
static java.util.List<CommerceCountry> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce countries where companyId = ?.
|
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 useFinderCache)
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_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 useFinderCache)
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 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 |
removeByC_A(long companyId,
boolean active)
Removes all the commerce countries where companyId = ? and active = ? from the database.
|
static void |
removeByC_B_A(long companyId,
boolean billingAllowed,
boolean active)
Removes all the commerce countries where companyId = ? and billingAllowed = ? and active = ? from the database.
|
static CommerceCountry |
removeByC_N(long companyId,
int numericISOCode)
Removes the commerce country where companyId = ? and numericISOCode = ? from the database.
|
static void |
removeByC_S_A(long companyId,
boolean shippingAllowed,
boolean active)
Removes all the commerce countries where companyId = ? and shippingAllowed = ? and active = ? from the database.
|
static CommerceCountry |
removeByC_Tw(long companyId,
java.lang.String twoLettersISOCode)
Removes the commerce country where companyId = ? and twoLettersISOCode = ? from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the commerce countries where companyId = ? 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 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.Map<java.io.Serializable,CommerceCountry> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)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, then the query will include the default ORDER BY logic from CommerceCountryModelImpl.
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, then the query will include the default ORDER BY logic from CommerceCountryModelImpl.
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 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 CommerceCountryModelImpl.
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)useFinderCache - whether to use 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 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, then the query will include the default ORDER BY logic from CommerceCountryModelImpl.
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, then the query will include the default ORDER BY logic from CommerceCountryModelImpl.
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 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 CommerceCountryModelImpl.
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)useFinderCache - whether to use 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> findByCompanyId(long companyId)
companyId - the company IDpublic static java.util.List<CommerceCountry> findByCompanyId(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 CommerceCountryModelImpl.
companyId - 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> findByCompanyId(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, then the query will include the default ORDER BY logic from CommerceCountryModelImpl.
companyId - 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> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> 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 CommerceCountryModelImpl.
companyId - 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)useFinderCache - whether to use the finder cachepublic static CommerceCountry findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator) throws NoSuchCountryException
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchCountryException - if a matching commerce country could not be foundpublic static CommerceCountry fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce country could not be foundpublic static CommerceCountry findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator) throws NoSuchCountryException
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchCountryException - if a matching commerce country could not be foundpublic static CommerceCountry fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce country could not be foundpublic static CommerceCountry[] findByCompanyId_PrevAndNext(long commerceCountryId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator) throws NoSuchCountryException
commerceCountryId - the primary key of the current commerce countrycompanyId - 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 removeByCompanyId(long companyId)
companyId - the company IDpublic static int countByCompanyId(long companyId)
companyId - the company IDpublic static CommerceCountry findByC_Tw(long companyId, java.lang.String twoLettersISOCode) throws NoSuchCountryException
NoSuchCountryException if it could not be found.companyId - the company IDtwoLettersISOCode - the two letters iso codeNoSuchCountryException - if a matching commerce country could not be foundpublic static CommerceCountry fetchByC_Tw(long companyId, java.lang.String twoLettersISOCode)
null if it could not be found. Uses the finder cache.companyId - the company IDtwoLettersISOCode - the two letters iso codenull if a matching commerce country could not be foundpublic static CommerceCountry fetchByC_Tw(long companyId, java.lang.String twoLettersISOCode, boolean useFinderCache)
null if it could not be found, optionally using the finder cache.companyId - the company IDtwoLettersISOCode - the two letters iso codeuseFinderCache - whether to use the finder cachenull if a matching commerce country could not be foundpublic static CommerceCountry removeByC_Tw(long companyId, java.lang.String twoLettersISOCode) throws NoSuchCountryException
companyId - the company IDtwoLettersISOCode - the two letters iso codeNoSuchCountryExceptionpublic static int countByC_Tw(long companyId,
java.lang.String twoLettersISOCode)
companyId - the company IDtwoLettersISOCode - the two letters iso codepublic static CommerceCountry findByC_N(long companyId, int numericISOCode) throws NoSuchCountryException
NoSuchCountryException if it could not be found.companyId - the company IDnumericISOCode - the numeric iso codeNoSuchCountryException - if a matching commerce country could not be foundpublic static CommerceCountry fetchByC_N(long companyId, int numericISOCode)
null if it could not be found. Uses the finder cache.companyId - the company IDnumericISOCode - the numeric iso codenull if a matching commerce country could not be foundpublic static CommerceCountry fetchByC_N(long companyId, int numericISOCode, boolean useFinderCache)
null if it could not be found, optionally using the finder cache.companyId - the company IDnumericISOCode - the numeric iso codeuseFinderCache - whether to use the finder cachenull if a matching commerce country could not be foundpublic static CommerceCountry removeByC_N(long companyId, int numericISOCode) throws NoSuchCountryException
companyId - the company IDnumericISOCode - the numeric iso codeNoSuchCountryExceptionpublic static int countByC_N(long companyId,
int numericISOCode)
companyId - the company IDnumericISOCode - the numeric iso codepublic static java.util.List<CommerceCountry> findByC_A(long companyId, boolean active)
companyId - the company IDactive - the activepublic static java.util.List<CommerceCountry> findByC_A(long companyId, 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 CommerceCountryModelImpl.
companyId - the company 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> findByC_A(long companyId, 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, then the query will include the default ORDER BY logic from CommerceCountryModelImpl.
companyId - the company 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> findByC_A(long companyId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> 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 CommerceCountryModelImpl.
companyId - the company 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)useFinderCache - whether to use the finder cachepublic static CommerceCountry findByC_A_First(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator) throws NoSuchCountryException
companyId - the company IDactive - the activeorderByComparator - the comparator to order the set by (optionally null)NoSuchCountryException - if a matching commerce country could not be foundpublic static CommerceCountry fetchByC_A_First(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
companyId - the company IDactive - the activeorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce country could not be foundpublic static CommerceCountry findByC_A_Last(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator) throws NoSuchCountryException
companyId - the company IDactive - the activeorderByComparator - the comparator to order the set by (optionally null)NoSuchCountryException - if a matching commerce country could not be foundpublic static CommerceCountry fetchByC_A_Last(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
companyId - the company IDactive - the activeorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce country could not be foundpublic static CommerceCountry[] findByC_A_PrevAndNext(long commerceCountryId, long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator) throws NoSuchCountryException
commerceCountryId - the primary key of the current commerce countrycompanyId - the company 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 removeByC_A(long companyId,
boolean active)
companyId - the company IDactive - the activepublic static int countByC_A(long companyId,
boolean active)
companyId - the company IDactive - the activepublic static java.util.List<CommerceCountry> findByC_B_A(long companyId, boolean billingAllowed, boolean active)
companyId - the company IDbillingAllowed - the billing allowedactive - the activepublic static java.util.List<CommerceCountry> findByC_B_A(long companyId, 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, then the query will include the default ORDER BY logic from CommerceCountryModelImpl.
companyId - the company 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> findByC_B_A(long companyId, 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, then the query will include the default ORDER BY logic from CommerceCountryModelImpl.
companyId - the company 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> findByC_B_A(long companyId, boolean billingAllowed, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> 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 CommerceCountryModelImpl.
companyId - the company 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)useFinderCache - whether to use the finder cachepublic static CommerceCountry findByC_B_A_First(long companyId, boolean billingAllowed, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator) throws NoSuchCountryException
companyId - the company 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 fetchByC_B_A_First(long companyId, boolean billingAllowed, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
companyId - the company 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 findByC_B_A_Last(long companyId, boolean billingAllowed, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator) throws NoSuchCountryException
companyId - the company 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 fetchByC_B_A_Last(long companyId, boolean billingAllowed, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
companyId - the company 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[] findByC_B_A_PrevAndNext(long commerceCountryId, long companyId, boolean billingAllowed, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator) throws NoSuchCountryException
commerceCountryId - the primary key of the current commerce countrycompanyId - the company 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 removeByC_B_A(long companyId,
boolean billingAllowed,
boolean active)
companyId - the company IDbillingAllowed - the billing allowedactive - the activepublic static int countByC_B_A(long companyId,
boolean billingAllowed,
boolean active)
companyId - the company IDbillingAllowed - the billing allowedactive - the activepublic static java.util.List<CommerceCountry> findByC_S_A(long companyId, boolean shippingAllowed, boolean active)
companyId - the company IDshippingAllowed - the shipping allowedactive - the activepublic static java.util.List<CommerceCountry> findByC_S_A(long companyId, 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, then the query will include the default ORDER BY logic from CommerceCountryModelImpl.
companyId - the company 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> findByC_S_A(long companyId, 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, then the query will include the default ORDER BY logic from CommerceCountryModelImpl.
companyId - the company 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> findByC_S_A(long companyId, boolean shippingAllowed, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> 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 CommerceCountryModelImpl.
companyId - the company 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)useFinderCache - whether to use the finder cachepublic static CommerceCountry findByC_S_A_First(long companyId, boolean shippingAllowed, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator) throws NoSuchCountryException
companyId - the company 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 fetchByC_S_A_First(long companyId, boolean shippingAllowed, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
companyId - the company 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 findByC_S_A_Last(long companyId, boolean shippingAllowed, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator) throws NoSuchCountryException
companyId - the company 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 fetchByC_S_A_Last(long companyId, boolean shippingAllowed, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator)
companyId - the company 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[] findByC_S_A_PrevAndNext(long commerceCountryId, long companyId, boolean shippingAllowed, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceCountry> orderByComparator) throws NoSuchCountryException
commerceCountryId - the primary key of the current commerce countrycompanyId - the company 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 removeByC_S_A(long companyId,
boolean shippingAllowed,
boolean active)
companyId - the company IDshippingAllowed - the shipping allowedactive - the activepublic static int countByC_S_A(long companyId,
boolean shippingAllowed,
boolean active)
companyId - the company 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.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, then the query will include the default ORDER BY logic from CommerceCountryModelImpl.
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, then the query will include the default ORDER BY logic from CommerceCountryModelImpl.
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 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 CommerceCountryModelImpl.
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)useFinderCache - whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static CommerceCountryPersistence getPersistence()