public class CountryUtil
extends java.lang.Object
com.liferay.portal.service.persistence.impl.CountryPersistenceImpl
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
CountryPersistence
Constructor and Description |
---|
CountryUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(Country country)
Caches the country in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<Country> countries)
Caches the countries in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(Country country) |
static int |
countAll()
Returns the number of countries.
|
static int |
countByActive(boolean active)
Returns the number of countries where active = ?.
|
static int |
countByC_A_B(long companyId,
boolean active,
boolean billingAllowed)
Returns the number of countries where companyId = ? and active = ? and billingAllowed = ?.
|
static int |
countByC_A_S(long companyId,
boolean active,
boolean shippingAllowed)
Returns the number of countries where companyId = ? and active = ? and shippingAllowed = ?.
|
static int |
countByC_A2(long companyId,
java.lang.String a2)
Returns the number of countries where companyId = ? and a2 = ?.
|
static int |
countByC_A3(long companyId,
java.lang.String a3)
Returns the number of countries where companyId = ? and a3 = ?.
|
static int |
countByC_Active(long companyId,
boolean active)
Returns the number of countries where companyId = ? and active = ?.
|
static int |
countByC_Name(long companyId,
java.lang.String name)
Returns the number of countries where companyId = ? and name = ?.
|
static int |
countByC_Number(long companyId,
java.lang.String number)
Returns the number of countries where companyId = ? and number = ?.
|
static int |
countByCompanyId(long companyId)
Returns the number of countries where companyId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of countries where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of countries where uuid = ?.
|
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery) |
static Country |
create(long countryId)
Creates a new country with the primary key.
|
static Country |
fetchByActive_First(boolean active,
OrderByComparator<Country> orderByComparator)
Returns the first country in the ordered set where active = ?.
|
static Country |
fetchByActive_Last(boolean active,
OrderByComparator<Country> orderByComparator)
Returns the last country in the ordered set where active = ?.
|
static Country |
fetchByC_A_B_First(long companyId,
boolean active,
boolean billingAllowed,
OrderByComparator<Country> orderByComparator)
Returns the first country in the ordered set where companyId = ? and active = ? and billingAllowed = ?.
|
static Country |
fetchByC_A_B_Last(long companyId,
boolean active,
boolean billingAllowed,
OrderByComparator<Country> orderByComparator)
Returns the last country in the ordered set where companyId = ? and active = ? and billingAllowed = ?.
|
static Country |
fetchByC_A_S_First(long companyId,
boolean active,
boolean shippingAllowed,
OrderByComparator<Country> orderByComparator)
Returns the first country in the ordered set where companyId = ? and active = ? and shippingAllowed = ?.
|
static Country |
fetchByC_A_S_Last(long companyId,
boolean active,
boolean shippingAllowed,
OrderByComparator<Country> orderByComparator)
Returns the last country in the ordered set where companyId = ? and active = ? and shippingAllowed = ?.
|
static Country |
fetchByC_A2(long companyId,
java.lang.String a2)
Returns the country where companyId = ? and a2 = ? or returns
null if it could not be found. |
static Country |
fetchByC_A2(long companyId,
java.lang.String a2,
boolean useFinderCache)
Returns the country where companyId = ? and a2 = ? or returns
null if it could not be found, optionally using the finder cache. |
static Country |
fetchByC_A3(long companyId,
java.lang.String a3)
Returns the country where companyId = ? and a3 = ? or returns
null if it could not be found. |
static Country |
fetchByC_A3(long companyId,
java.lang.String a3,
boolean useFinderCache)
Returns the country where companyId = ? and a3 = ? or returns
null if it could not be found, optionally using the finder cache. |
static Country |
fetchByC_Active_First(long companyId,
boolean active,
OrderByComparator<Country> orderByComparator)
Returns the first country in the ordered set where companyId = ? and active = ?.
|
static Country |
fetchByC_Active_Last(long companyId,
boolean active,
OrderByComparator<Country> orderByComparator)
Returns the last country in the ordered set where companyId = ? and active = ?.
|
static Country |
fetchByC_Name(long companyId,
java.lang.String name)
Returns the country where companyId = ? and name = ? or returns
null if it could not be found. |
static Country |
fetchByC_Name(long companyId,
java.lang.String name,
boolean useFinderCache)
Returns the country where companyId = ? and name = ? or returns
null if it could not be found, optionally using the finder cache. |
static Country |
fetchByC_Number(long companyId,
java.lang.String number)
Returns the country where companyId = ? and number = ? or returns
null if it could not be found. |
static Country |
fetchByC_Number(long companyId,
java.lang.String number,
boolean useFinderCache)
Returns the country where companyId = ? and number = ? or returns
null if it could not be found, optionally using the finder cache. |
static Country |
fetchByCompanyId_First(long companyId,
OrderByComparator<Country> orderByComparator)
Returns the first country in the ordered set where companyId = ?.
|
static Country |
fetchByCompanyId_Last(long companyId,
OrderByComparator<Country> orderByComparator)
Returns the last country in the ordered set where companyId = ?.
|
static Country |
fetchByPrimaryKey(long countryId)
Returns the country with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,Country> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static Country |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
OrderByComparator<Country> orderByComparator)
Returns the first country in the ordered set where uuid = ? and companyId = ?.
|
static Country |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
OrderByComparator<Country> orderByComparator)
Returns the last country in the ordered set where uuid = ? and companyId = ?.
|
static Country |
fetchByUuid_First(java.lang.String uuid,
OrderByComparator<Country> orderByComparator)
Returns the first country in the ordered set where uuid = ?.
|
static Country |
fetchByUuid_Last(java.lang.String uuid,
OrderByComparator<Country> orderByComparator)
Returns the last country in the ordered set where uuid = ?.
|
static java.util.List<Country> |
findAll()
Returns all the countries.
|
static java.util.List<Country> |
findAll(int start,
int end)
Returns a range of all the countries.
|
static java.util.List<Country> |
findAll(int start,
int end,
OrderByComparator<Country> orderByComparator)
Returns an ordered range of all the countries.
|
static java.util.List<Country> |
findAll(int start,
int end,
OrderByComparator<Country> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the countries.
|
static Country |
findByActive_First(boolean active,
OrderByComparator<Country> orderByComparator)
Returns the first country in the ordered set where active = ?.
|
static Country |
findByActive_Last(boolean active,
OrderByComparator<Country> orderByComparator)
Returns the last country in the ordered set where active = ?.
|
static Country[] |
findByActive_PrevAndNext(long countryId,
boolean active,
OrderByComparator<Country> orderByComparator)
Returns the countries before and after the current country in the ordered set where active = ?.
|
static java.util.List<Country> |
findByActive(boolean active)
Returns all the countries where active = ?.
|
static java.util.List<Country> |
findByActive(boolean active,
int start,
int end)
Returns a range of all the countries where active = ?.
|
static java.util.List<Country> |
findByActive(boolean active,
int start,
int end,
OrderByComparator<Country> orderByComparator)
Returns an ordered range of all the countries where active = ?.
|
static java.util.List<Country> |
findByActive(boolean active,
int start,
int end,
OrderByComparator<Country> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the countries where active = ?.
|
static Country |
findByC_A_B_First(long companyId,
boolean active,
boolean billingAllowed,
OrderByComparator<Country> orderByComparator)
Returns the first country in the ordered set where companyId = ? and active = ? and billingAllowed = ?.
|
static Country |
findByC_A_B_Last(long companyId,
boolean active,
boolean billingAllowed,
OrderByComparator<Country> orderByComparator)
Returns the last country in the ordered set where companyId = ? and active = ? and billingAllowed = ?.
|
static Country[] |
findByC_A_B_PrevAndNext(long countryId,
long companyId,
boolean active,
boolean billingAllowed,
OrderByComparator<Country> orderByComparator)
Returns the countries before and after the current country in the ordered set where companyId = ? and active = ? and billingAllowed = ?.
|
static java.util.List<Country> |
findByC_A_B(long companyId,
boolean active,
boolean billingAllowed)
Returns all the countries where companyId = ? and active = ? and billingAllowed = ?.
|
static java.util.List<Country> |
findByC_A_B(long companyId,
boolean active,
boolean billingAllowed,
int start,
int end)
Returns a range of all the countries where companyId = ? and active = ? and billingAllowed = ?.
|
static java.util.List<Country> |
findByC_A_B(long companyId,
boolean active,
boolean billingAllowed,
int start,
int end,
OrderByComparator<Country> orderByComparator)
Returns an ordered range of all the countries where companyId = ? and active = ? and billingAllowed = ?.
|
static java.util.List<Country> |
findByC_A_B(long companyId,
boolean active,
boolean billingAllowed,
int start,
int end,
OrderByComparator<Country> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the countries where companyId = ? and active = ? and billingAllowed = ?.
|
static Country |
findByC_A_S_First(long companyId,
boolean active,
boolean shippingAllowed,
OrderByComparator<Country> orderByComparator)
Returns the first country in the ordered set where companyId = ? and active = ? and shippingAllowed = ?.
|
static Country |
findByC_A_S_Last(long companyId,
boolean active,
boolean shippingAllowed,
OrderByComparator<Country> orderByComparator)
Returns the last country in the ordered set where companyId = ? and active = ? and shippingAllowed = ?.
|
static Country[] |
findByC_A_S_PrevAndNext(long countryId,
long companyId,
boolean active,
boolean shippingAllowed,
OrderByComparator<Country> orderByComparator)
Returns the countries before and after the current country in the ordered set where companyId = ? and active = ? and shippingAllowed = ?.
|
static java.util.List<Country> |
findByC_A_S(long companyId,
boolean active,
boolean shippingAllowed)
Returns all the countries where companyId = ? and active = ? and shippingAllowed = ?.
|
static java.util.List<Country> |
findByC_A_S(long companyId,
boolean active,
boolean shippingAllowed,
int start,
int end)
Returns a range of all the countries where companyId = ? and active = ? and shippingAllowed = ?.
|
static java.util.List<Country> |
findByC_A_S(long companyId,
boolean active,
boolean shippingAllowed,
int start,
int end,
OrderByComparator<Country> orderByComparator)
Returns an ordered range of all the countries where companyId = ? and active = ? and shippingAllowed = ?.
|
static java.util.List<Country> |
findByC_A_S(long companyId,
boolean active,
boolean shippingAllowed,
int start,
int end,
OrderByComparator<Country> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the countries where companyId = ? and active = ? and shippingAllowed = ?.
|
static Country |
findByC_A2(long companyId,
java.lang.String a2)
Returns the country where companyId = ? and a2 = ? or throws a
NoSuchCountryException if it could not be found. |
static Country |
findByC_A3(long companyId,
java.lang.String a3)
Returns the country where companyId = ? and a3 = ? or throws a
NoSuchCountryException if it could not be found. |
static Country |
findByC_Active_First(long companyId,
boolean active,
OrderByComparator<Country> orderByComparator)
Returns the first country in the ordered set where companyId = ? and active = ?.
|
static Country |
findByC_Active_Last(long companyId,
boolean active,
OrderByComparator<Country> orderByComparator)
Returns the last country in the ordered set where companyId = ? and active = ?.
|
static Country[] |
findByC_Active_PrevAndNext(long countryId,
long companyId,
boolean active,
OrderByComparator<Country> orderByComparator)
Returns the countries before and after the current country in the ordered set where companyId = ? and active = ?.
|
static java.util.List<Country> |
findByC_Active(long companyId,
boolean active)
Returns all the countries where companyId = ? and active = ?.
|
static java.util.List<Country> |
findByC_Active(long companyId,
boolean active,
int start,
int end)
Returns a range of all the countries where companyId = ? and active = ?.
|
static java.util.List<Country> |
findByC_Active(long companyId,
boolean active,
int start,
int end,
OrderByComparator<Country> orderByComparator)
Returns an ordered range of all the countries where companyId = ? and active = ?.
|
static java.util.List<Country> |
findByC_Active(long companyId,
boolean active,
int start,
int end,
OrderByComparator<Country> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the countries where companyId = ? and active = ?.
|
static Country |
findByC_Name(long companyId,
java.lang.String name)
Returns the country where companyId = ? and name = ? or throws a
NoSuchCountryException if it could not be found. |
static Country |
findByC_Number(long companyId,
java.lang.String number)
Returns the country where companyId = ? and number = ? or throws a
NoSuchCountryException if it could not be found. |
static Country |
findByCompanyId_First(long companyId,
OrderByComparator<Country> orderByComparator)
Returns the first country in the ordered set where companyId = ?.
|
static Country |
findByCompanyId_Last(long companyId,
OrderByComparator<Country> orderByComparator)
Returns the last country in the ordered set where companyId = ?.
|
static Country[] |
findByCompanyId_PrevAndNext(long countryId,
long companyId,
OrderByComparator<Country> orderByComparator)
Returns the countries before and after the current country in the ordered set where companyId = ?.
|
static java.util.List<Country> |
findByCompanyId(long companyId)
Returns all the countries where companyId = ?.
|
static java.util.List<Country> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the countries where companyId = ?.
|
static java.util.List<Country> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<Country> orderByComparator)
Returns an ordered range of all the countries where companyId = ?.
|
static java.util.List<Country> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<Country> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the countries where companyId = ?.
|
static Country |
findByPrimaryKey(long countryId)
Returns the country with the primary key or throws a
NoSuchCountryException if it could not be found. |
static Country |
findByUuid_C_First(java.lang.String uuid,
long companyId,
OrderByComparator<Country> orderByComparator)
Returns the first country in the ordered set where uuid = ? and companyId = ?.
|
static Country |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
OrderByComparator<Country> orderByComparator)
Returns the last country in the ordered set where uuid = ? and companyId = ?.
|
static Country[] |
findByUuid_C_PrevAndNext(long countryId,
java.lang.String uuid,
long companyId,
OrderByComparator<Country> orderByComparator)
Returns the countries before and after the current country in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<Country> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the countries where uuid = ? and companyId = ?.
|
static java.util.List<Country> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the countries where uuid = ? and companyId = ?.
|
static java.util.List<Country> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
OrderByComparator<Country> orderByComparator)
Returns an ordered range of all the countries where uuid = ? and companyId = ?.
|
static java.util.List<Country> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
OrderByComparator<Country> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the countries where uuid = ? and companyId = ?.
|
static Country |
findByUuid_First(java.lang.String uuid,
OrderByComparator<Country> orderByComparator)
Returns the first country in the ordered set where uuid = ?.
|
static Country |
findByUuid_Last(java.lang.String uuid,
OrderByComparator<Country> orderByComparator)
Returns the last country in the ordered set where uuid = ?.
|
static Country[] |
findByUuid_PrevAndNext(long countryId,
java.lang.String uuid,
OrderByComparator<Country> orderByComparator)
Returns the countries before and after the current country in the ordered set where uuid = ?.
|
static java.util.List<Country> |
findByUuid(java.lang.String uuid)
Returns all the countries where uuid = ?.
|
static java.util.List<Country> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the countries where uuid = ?.
|
static java.util.List<Country> |
findByUuid(java.lang.String uuid,
int start,
int end,
OrderByComparator<Country> orderByComparator)
Returns an ordered range of all the countries where uuid = ?.
|
static java.util.List<Country> |
findByUuid(java.lang.String uuid,
int start,
int end,
OrderByComparator<Country> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the countries where uuid = ?.
|
static java.util.List<Country> |
findWithDynamicQuery(DynamicQuery dynamicQuery) |
static java.util.List<Country> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<Country> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<Country> orderByComparator) |
static CountryPersistence |
getPersistence() |
static Country |
remove(long countryId)
Removes the country with the primary key from the database.
|
static void |
removeAll()
Removes all the countries from the database.
|
static void |
removeByActive(boolean active)
Removes all the countries where active = ? from the database.
|
static void |
removeByC_A_B(long companyId,
boolean active,
boolean billingAllowed)
Removes all the countries where companyId = ? and active = ? and billingAllowed = ? from the database.
|
static void |
removeByC_A_S(long companyId,
boolean active,
boolean shippingAllowed)
Removes all the countries where companyId = ? and active = ? and shippingAllowed = ? from the database.
|
static Country |
removeByC_A2(long companyId,
java.lang.String a2)
Removes the country where companyId = ? and a2 = ? from the database.
|
static Country |
removeByC_A3(long companyId,
java.lang.String a3)
Removes the country where companyId = ? and a3 = ? from the database.
|
static void |
removeByC_Active(long companyId,
boolean active)
Removes all the countries where companyId = ? and active = ? from the database.
|
static Country |
removeByC_Name(long companyId,
java.lang.String name)
Removes the country where companyId = ? and name = ? from the database.
|
static Country |
removeByC_Number(long companyId,
java.lang.String number)
Removes the country where companyId = ? and number = ? from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the countries where companyId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the countries where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the countries where uuid = ? from the database.
|
static void |
setPersistence(CountryPersistence persistence) |
static Country |
update(Country country) |
static Country |
update(Country country,
ServiceContext serviceContext) |
static Country |
updateImpl(Country country) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(Country country)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
public static java.util.Map<java.io.Serializable,Country> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<Country> findWithDynamicQuery(DynamicQuery dynamicQuery)
public static java.util.List<Country> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
public static java.util.List<Country> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<Country> orderByComparator)
public static Country update(Country country, ServiceContext serviceContext)
public static java.util.List<Country> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<Country> 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 CountryModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of countriesend
- the upper bound of the range of countries (not inclusive)public static java.util.List<Country> findByUuid(java.lang.String uuid, int start, int end, OrderByComparator<Country> 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 CountryModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of countriesend
- the upper bound of the range of countries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<Country> findByUuid(java.lang.String uuid, int start, int end, OrderByComparator<Country> 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 CountryModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of countriesend
- the upper bound of the range of countries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static Country findByUuid_First(java.lang.String uuid, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCountryException
- if a matching country could not be foundpublic static Country fetchByUuid_First(java.lang.String uuid, OrderByComparator<Country> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching country could not be foundpublic static Country findByUuid_Last(java.lang.String uuid, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCountryException
- if a matching country could not be foundpublic static Country fetchByUuid_Last(java.lang.String uuid, OrderByComparator<Country> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching country could not be foundpublic static Country[] findByUuid_PrevAndNext(long countryId, java.lang.String uuid, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException
countryId
- the primary key of the current countryuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCountryException
- if a 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<Country> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<Country> 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 CountryModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of countriesend
- the upper bound of the range of countries (not inclusive)public static java.util.List<Country> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, OrderByComparator<Country> 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 CountryModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of countriesend
- the upper bound of the range of countries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<Country> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, OrderByComparator<Country> 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 CountryModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of countriesend
- the upper bound of the range of countries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static Country findByUuid_C_First(java.lang.String uuid, long companyId, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCountryException
- if a matching country could not be foundpublic static Country fetchByUuid_C_First(java.lang.String uuid, long companyId, OrderByComparator<Country> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching country could not be foundpublic static Country findByUuid_C_Last(java.lang.String uuid, long companyId, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCountryException
- if a matching country could not be foundpublic static Country fetchByUuid_C_Last(java.lang.String uuid, long companyId, OrderByComparator<Country> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching country could not be foundpublic static Country[] findByUuid_C_PrevAndNext(long countryId, java.lang.String uuid, long companyId, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException
countryId
- the primary key of the current countryuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCountryException
- if a 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<Country> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<Country> 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 CountryModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of countriesend
- the upper bound of the range of countries (not inclusive)public static java.util.List<Country> findByCompanyId(long companyId, int start, int end, OrderByComparator<Country> 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 CountryModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of countriesend
- the upper bound of the range of countries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<Country> findByCompanyId(long companyId, int start, int end, OrderByComparator<Country> 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 CountryModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of countriesend
- the upper bound of the range of countries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static Country findByCompanyId_First(long companyId, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCountryException
- if a matching country could not be foundpublic static Country fetchByCompanyId_First(long companyId, OrderByComparator<Country> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching country could not be foundpublic static Country findByCompanyId_Last(long companyId, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCountryException
- if a matching country could not be foundpublic static Country fetchByCompanyId_Last(long companyId, OrderByComparator<Country> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching country could not be foundpublic static Country[] findByCompanyId_PrevAndNext(long countryId, long companyId, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException
countryId
- the primary key of the current countrycompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCountryException
- if a 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 java.util.List<Country> findByActive(boolean active)
active
- the activepublic static java.util.List<Country> findByActive(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 CountryModelImpl
.
active
- the activestart
- the lower bound of the range of countriesend
- the upper bound of the range of countries (not inclusive)public static java.util.List<Country> findByActive(boolean active, int start, int end, OrderByComparator<Country> 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 CountryModelImpl
.
active
- the activestart
- the lower bound of the range of countriesend
- the upper bound of the range of countries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<Country> findByActive(boolean active, int start, int end, OrderByComparator<Country> 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 CountryModelImpl
.
active
- the activestart
- the lower bound of the range of countriesend
- the upper bound of the range of countries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static Country findByActive_First(boolean active, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException
active
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCountryException
- if a matching country could not be foundpublic static Country fetchByActive_First(boolean active, OrderByComparator<Country> orderByComparator)
active
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching country could not be foundpublic static Country findByActive_Last(boolean active, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException
active
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCountryException
- if a matching country could not be foundpublic static Country fetchByActive_Last(boolean active, OrderByComparator<Country> orderByComparator)
active
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching country could not be foundpublic static Country[] findByActive_PrevAndNext(long countryId, boolean active, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException
countryId
- the primary key of the current countryactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCountryException
- if a country with the primary key could not be foundpublic static void removeByActive(boolean active)
active
- the activepublic static int countByActive(boolean active)
active
- the activepublic static Country findByC_A2(long companyId, java.lang.String a2) throws NoSuchCountryException
NoSuchCountryException
if it could not be found.companyId
- the company IDa2
- the a2NoSuchCountryException
- if a matching country could not be foundpublic static Country fetchByC_A2(long companyId, java.lang.String a2)
null
if it could not be found. Uses the finder cache.companyId
- the company IDa2
- the a2null
if a matching country could not be foundpublic static Country fetchByC_A2(long companyId, java.lang.String a2, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDa2
- the a2useFinderCache
- whether to use the finder cachenull
if a matching country could not be foundpublic static Country removeByC_A2(long companyId, java.lang.String a2) throws NoSuchCountryException
companyId
- the company IDa2
- the a2NoSuchCountryException
public static int countByC_A2(long companyId, java.lang.String a2)
companyId
- the company IDa2
- the a2public static Country findByC_A3(long companyId, java.lang.String a3) throws NoSuchCountryException
NoSuchCountryException
if it could not be found.companyId
- the company IDa3
- the a3NoSuchCountryException
- if a matching country could not be foundpublic static Country fetchByC_A3(long companyId, java.lang.String a3)
null
if it could not be found. Uses the finder cache.companyId
- the company IDa3
- the a3null
if a matching country could not be foundpublic static Country fetchByC_A3(long companyId, java.lang.String a3, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDa3
- the a3useFinderCache
- whether to use the finder cachenull
if a matching country could not be foundpublic static Country removeByC_A3(long companyId, java.lang.String a3) throws NoSuchCountryException
companyId
- the company IDa3
- the a3NoSuchCountryException
public static int countByC_A3(long companyId, java.lang.String a3)
companyId
- the company IDa3
- the a3public static java.util.List<Country> findByC_Active(long companyId, boolean active)
companyId
- the company IDactive
- the activepublic static java.util.List<Country> findByC_Active(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 CountryModelImpl
.
companyId
- the company IDactive
- the activestart
- the lower bound of the range of countriesend
- the upper bound of the range of countries (not inclusive)public static java.util.List<Country> findByC_Active(long companyId, boolean active, int start, int end, OrderByComparator<Country> 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 CountryModelImpl
.
companyId
- the company IDactive
- the activestart
- the lower bound of the range of countriesend
- the upper bound of the range of countries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<Country> findByC_Active(long companyId, boolean active, int start, int end, OrderByComparator<Country> 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 CountryModelImpl
.
companyId
- the company IDactive
- the activestart
- the lower bound of the range of countriesend
- the upper bound of the range of countries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static Country findByC_Active_First(long companyId, boolean active, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCountryException
- if a matching country could not be foundpublic static Country fetchByC_Active_First(long companyId, boolean active, OrderByComparator<Country> orderByComparator)
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching country could not be foundpublic static Country findByC_Active_Last(long companyId, boolean active, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCountryException
- if a matching country could not be foundpublic static Country fetchByC_Active_Last(long companyId, boolean active, OrderByComparator<Country> orderByComparator)
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching country could not be foundpublic static Country[] findByC_Active_PrevAndNext(long countryId, long companyId, boolean active, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException
countryId
- the primary key of the current countrycompanyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCountryException
- if a country with the primary key could not be foundpublic static void removeByC_Active(long companyId, boolean active)
companyId
- the company IDactive
- the activepublic static int countByC_Active(long companyId, boolean active)
companyId
- the company IDactive
- the activepublic static Country findByC_Name(long companyId, java.lang.String name) throws NoSuchCountryException
NoSuchCountryException
if it could not be found.companyId
- the company IDname
- the nameNoSuchCountryException
- if a matching country could not be foundpublic static Country fetchByC_Name(long companyId, java.lang.String name)
null
if it could not be found. Uses the finder cache.companyId
- the company IDname
- the namenull
if a matching country could not be foundpublic static Country fetchByC_Name(long companyId, java.lang.String name, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDname
- the nameuseFinderCache
- whether to use the finder cachenull
if a matching country could not be foundpublic static Country removeByC_Name(long companyId, java.lang.String name) throws NoSuchCountryException
companyId
- the company IDname
- the nameNoSuchCountryException
public static int countByC_Name(long companyId, java.lang.String name)
companyId
- the company IDname
- the namepublic static Country findByC_Number(long companyId, java.lang.String number) throws NoSuchCountryException
NoSuchCountryException
if it could not be found.companyId
- the company IDnumber
- the numberNoSuchCountryException
- if a matching country could not be foundpublic static Country fetchByC_Number(long companyId, java.lang.String number)
null
if it could not be found. Uses the finder cache.companyId
- the company IDnumber
- the numbernull
if a matching country could not be foundpublic static Country fetchByC_Number(long companyId, java.lang.String number, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDnumber
- the numberuseFinderCache
- whether to use the finder cachenull
if a matching country could not be foundpublic static Country removeByC_Number(long companyId, java.lang.String number) throws NoSuchCountryException
companyId
- the company IDnumber
- the numberNoSuchCountryException
public static int countByC_Number(long companyId, java.lang.String number)
companyId
- the company IDnumber
- the numberpublic static java.util.List<Country> findByC_A_B(long companyId, boolean active, boolean billingAllowed)
companyId
- the company IDactive
- the activebillingAllowed
- the billing allowedpublic static java.util.List<Country> findByC_A_B(long companyId, boolean active, boolean billingAllowed, 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 CountryModelImpl
.
companyId
- the company IDactive
- the activebillingAllowed
- the billing allowedstart
- the lower bound of the range of countriesend
- the upper bound of the range of countries (not inclusive)public static java.util.List<Country> findByC_A_B(long companyId, boolean active, boolean billingAllowed, int start, int end, OrderByComparator<Country> 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 CountryModelImpl
.
companyId
- the company IDactive
- the activebillingAllowed
- the billing allowedstart
- the lower bound of the range of countriesend
- the upper bound of the range of countries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<Country> findByC_A_B(long companyId, boolean active, boolean billingAllowed, int start, int end, OrderByComparator<Country> 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 CountryModelImpl
.
companyId
- the company IDactive
- the activebillingAllowed
- the billing allowedstart
- the lower bound of the range of countriesend
- the upper bound of the range of countries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static Country findByC_A_B_First(long companyId, boolean active, boolean billingAllowed, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException
companyId
- the company IDactive
- the activebillingAllowed
- the billing allowedorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCountryException
- if a matching country could not be foundpublic static Country fetchByC_A_B_First(long companyId, boolean active, boolean billingAllowed, OrderByComparator<Country> orderByComparator)
companyId
- the company IDactive
- the activebillingAllowed
- the billing allowedorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching country could not be foundpublic static Country findByC_A_B_Last(long companyId, boolean active, boolean billingAllowed, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException
companyId
- the company IDactive
- the activebillingAllowed
- the billing allowedorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCountryException
- if a matching country could not be foundpublic static Country fetchByC_A_B_Last(long companyId, boolean active, boolean billingAllowed, OrderByComparator<Country> orderByComparator)
companyId
- the company IDactive
- the activebillingAllowed
- the billing allowedorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching country could not be foundpublic static Country[] findByC_A_B_PrevAndNext(long countryId, long companyId, boolean active, boolean billingAllowed, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException
countryId
- the primary key of the current countrycompanyId
- the company IDactive
- the activebillingAllowed
- the billing allowedorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCountryException
- if a country with the primary key could not be foundpublic static void removeByC_A_B(long companyId, boolean active, boolean billingAllowed)
companyId
- the company IDactive
- the activebillingAllowed
- the billing allowedpublic static int countByC_A_B(long companyId, boolean active, boolean billingAllowed)
companyId
- the company IDactive
- the activebillingAllowed
- the billing allowedpublic static java.util.List<Country> findByC_A_S(long companyId, boolean active, boolean shippingAllowed)
companyId
- the company IDactive
- the activeshippingAllowed
- the shipping allowedpublic static java.util.List<Country> findByC_A_S(long companyId, boolean active, boolean shippingAllowed, 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 CountryModelImpl
.
companyId
- the company IDactive
- the activeshippingAllowed
- the shipping allowedstart
- the lower bound of the range of countriesend
- the upper bound of the range of countries (not inclusive)public static java.util.List<Country> findByC_A_S(long companyId, boolean active, boolean shippingAllowed, int start, int end, OrderByComparator<Country> 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 CountryModelImpl
.
companyId
- the company IDactive
- the activeshippingAllowed
- the shipping allowedstart
- the lower bound of the range of countriesend
- the upper bound of the range of countries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<Country> findByC_A_S(long companyId, boolean active, boolean shippingAllowed, int start, int end, OrderByComparator<Country> 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 CountryModelImpl
.
companyId
- the company IDactive
- the activeshippingAllowed
- the shipping allowedstart
- the lower bound of the range of countriesend
- the upper bound of the range of countries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static Country findByC_A_S_First(long companyId, boolean active, boolean shippingAllowed, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException
companyId
- the company IDactive
- the activeshippingAllowed
- the shipping allowedorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCountryException
- if a matching country could not be foundpublic static Country fetchByC_A_S_First(long companyId, boolean active, boolean shippingAllowed, OrderByComparator<Country> orderByComparator)
companyId
- the company IDactive
- the activeshippingAllowed
- the shipping allowedorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching country could not be foundpublic static Country findByC_A_S_Last(long companyId, boolean active, boolean shippingAllowed, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException
companyId
- the company IDactive
- the activeshippingAllowed
- the shipping allowedorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCountryException
- if a matching country could not be foundpublic static Country fetchByC_A_S_Last(long companyId, boolean active, boolean shippingAllowed, OrderByComparator<Country> orderByComparator)
companyId
- the company IDactive
- the activeshippingAllowed
- the shipping allowedorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching country could not be foundpublic static Country[] findByC_A_S_PrevAndNext(long countryId, long companyId, boolean active, boolean shippingAllowed, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException
countryId
- the primary key of the current countrycompanyId
- the company IDactive
- the activeshippingAllowed
- the shipping allowedorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCountryException
- if a country with the primary key could not be foundpublic static void removeByC_A_S(long companyId, boolean active, boolean shippingAllowed)
companyId
- the company IDactive
- the activeshippingAllowed
- the shipping allowedpublic static int countByC_A_S(long companyId, boolean active, boolean shippingAllowed)
companyId
- the company IDactive
- the activeshippingAllowed
- the shipping allowedpublic static void cacheResult(Country country)
country
- the countrypublic static void cacheResult(java.util.List<Country> countries)
countries
- the countriespublic static Country create(long countryId)
countryId
- the primary key for the new countrypublic static Country remove(long countryId) throws NoSuchCountryException
countryId
- the primary key of the countryNoSuchCountryException
- if a country with the primary key could not be foundpublic static Country findByPrimaryKey(long countryId) throws NoSuchCountryException
NoSuchCountryException
if it could not be found.countryId
- the primary key of the countryNoSuchCountryException
- if a country with the primary key could not be foundpublic static Country fetchByPrimaryKey(long countryId)
null
if it could not be found.countryId
- the primary key of the countrynull
if a country with the primary key could not be foundpublic static java.util.List<Country> findAll()
public static java.util.List<Country> 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 CountryModelImpl
.
start
- the lower bound of the range of countriesend
- the upper bound of the range of countries (not inclusive)public static java.util.List<Country> findAll(int start, int end, OrderByComparator<Country> 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 CountryModelImpl
.
start
- the lower bound of the range of countriesend
- the upper bound of the range of countries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<Country> findAll(int start, int end, OrderByComparator<Country> 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 CountryModelImpl
.
start
- the lower bound of the range of countriesend
- the upper bound of the range of 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 CountryPersistence getPersistence()
public static void setPersistence(CountryPersistence persistence)