Class CountryUtil
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
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(Country country) Caches the country in the entity cache if it is enabled.static void
cacheResult
(List<Country> countries) Caches the countries in the entity cache if it is enabled.static void
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, String a2) Returns the number of countries where companyId = ? and a2 = ?.static int
countByC_A3
(long companyId, 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, String name) Returns the number of countries where companyId = ? and name = ?.static int
countByC_Number
(long companyId, 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
(String uuid) Returns the number of countries where uuid = ?.static int
countByUuid_C
(String uuid, long companyId) Returns the number of countries where uuid = ? and companyId = ?.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, String a2) Returns the country where companyId = ? and a2 = ? or returnsnull
if it could not be found.static Country
fetchByC_A2
(long companyId, String a2, boolean useFinderCache) Returns the country where companyId = ? and a2 = ? or returnsnull
if it could not be found, optionally using the finder cache.static Country
fetchByC_A3
(long companyId, String a3) Returns the country where companyId = ? and a3 = ? or returnsnull
if it could not be found.static Country
fetchByC_A3
(long companyId, String a3, boolean useFinderCache) Returns the country where companyId = ? and a3 = ? or returnsnull
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, String name) Returns the country where companyId = ? and name = ? or returnsnull
if it could not be found.static Country
fetchByC_Name
(long companyId, String name, boolean useFinderCache) Returns the country where companyId = ? and name = ? or returnsnull
if it could not be found, optionally using the finder cache.static Country
fetchByC_Number
(long companyId, String number) Returns the country where companyId = ? and number = ? or returnsnull
if it could not be found.static Country
fetchByC_Number
(long companyId, String number, boolean useFinderCache) Returns the country where companyId = ? and number = ? or returnsnull
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 returnsnull
if it could not be found.static Map<Serializable,
Country> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static Country
fetchByUuid_C_First
(String uuid, long companyId, OrderByComparator<Country> orderByComparator) Returns the first country in the ordered set where uuid = ? and companyId = ?.static Country
fetchByUuid_C_Last
(String uuid, long companyId, OrderByComparator<Country> orderByComparator) Returns the last country in the ordered set where uuid = ? and companyId = ?.static Country
fetchByUuid_First
(String uuid, OrderByComparator<Country> orderByComparator) Returns the first country in the ordered set where uuid = ?.static Country
fetchByUuid_Last
(String uuid, OrderByComparator<Country> orderByComparator) Returns the last country in the ordered set where uuid = ?.findAll()
Returns all the countries.findAll
(int start, int end) Returns a range of all the countries.findAll
(int start, int end, OrderByComparator<Country> orderByComparator) Returns an ordered range of all the countries.findAll
(int start, int end, OrderByComparator<Country> orderByComparator, boolean useFinderCache) Returns an ordered range of all the countries.findByActive
(boolean active) Returns all the countries where active = ?.findByActive
(boolean active, int start, int end) Returns a range of all the countries where active = ?.findByActive
(boolean active, int start, int end, OrderByComparator<Country> orderByComparator) Returns an ordered range of all the countries where active = ?.findByActive
(boolean active, int start, int end, OrderByComparator<Country> orderByComparator, boolean useFinderCache) Returns an ordered range of all the countries where active = ?.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 = ?.findByC_A_B
(long companyId, boolean active, boolean billingAllowed) Returns all the countries where companyId = ? and active = ? and billingAllowed = ?.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 = ?.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 = ?.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_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 = ?.findByC_A_S
(long companyId, boolean active, boolean shippingAllowed) Returns all the countries where companyId = ? and active = ? and shippingAllowed = ?.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 = ?.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 = ?.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_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 Country
findByC_A2
(long companyId, String a2) Returns the country where companyId = ? and a2 = ? or throws aNoSuchCountryException
if it could not be found.static Country
findByC_A3
(long companyId, String a3) Returns the country where companyId = ? and a3 = ? or throws aNoSuchCountryException
if it could not be found.findByC_Active
(long companyId, boolean active) Returns all the countries where companyId = ? and active = ?.findByC_Active
(long companyId, boolean active, int start, int end) Returns a range of all the countries where companyId = ? and active = ?.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 = ?.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_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 Country
findByC_Name
(long companyId, String name) Returns the country where companyId = ? and name = ? or throws aNoSuchCountryException
if it could not be found.static Country
findByC_Number
(long companyId, String number) Returns the country where companyId = ? and number = ? or throws aNoSuchCountryException
if it could not be found.findByCompanyId
(long companyId) Returns all the countries where companyId = ?.findByCompanyId
(long companyId, int start, int end) Returns a range of all the countries where companyId = ?.findByCompanyId
(long companyId, int start, int end, OrderByComparator<Country> orderByComparator) Returns an ordered range of all the countries where companyId = ?.findByCompanyId
(long companyId, int start, int end, OrderByComparator<Country> orderByComparator, boolean useFinderCache) Returns an ordered range of all the countries where companyId = ?.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 Country
findByPrimaryKey
(long countryId) Returns the country with the primary key or throws aNoSuchCountryException
if it could not be found.findByUuid
(String uuid) Returns all the countries where uuid = ?.findByUuid
(String uuid, int start, int end) Returns a range of all the countries where uuid = ?.findByUuid
(String uuid, int start, int end, OrderByComparator<Country> orderByComparator) Returns an ordered range of all the countries where uuid = ?.findByUuid
(String uuid, int start, int end, OrderByComparator<Country> orderByComparator, boolean useFinderCache) Returns an ordered range of all the countries where uuid = ?.findByUuid_C
(String uuid, long companyId) Returns all the countries where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the countries where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end, OrderByComparator<Country> orderByComparator) Returns an ordered range of all the countries where uuid = ? and companyId = ?.findByUuid_C
(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_C_First
(String uuid, long companyId, OrderByComparator<Country> orderByComparator) Returns the first country in the ordered set where uuid = ? and companyId = ?.static Country
findByUuid_C_Last
(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, 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 Country
findByUuid_First
(String uuid, OrderByComparator<Country> orderByComparator) Returns the first country in the ordered set where uuid = ?.static Country
findByUuid_Last
(String uuid, OrderByComparator<Country> orderByComparator) Returns the last country in the ordered set where uuid = ?.static Country[]
findByUuid_PrevAndNext
(long countryId, String uuid, OrderByComparator<Country> orderByComparator) Returns the countries before and after the current country in the ordered set where uuid = ?.findWithDynamicQuery
(DynamicQuery dynamicQuery) findWithDynamicQuery
(DynamicQuery dynamicQuery, int start, int end) findWithDynamicQuery
(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<Country> orderByComparator) static CountryPersistence
static Country
remove
(long countryId) Removes the country with the primary key from the database.static void
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, String a2) Removes the country where companyId = ? and a2 = ? from the database.static Country
removeByC_A3
(long companyId, 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, String name) Removes the country where companyId = ? and name = ? from the database.static Country
removeByC_Number
(long companyId, 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
(String uuid) Removes all the countries where uuid = ? from the database.static void
removeByUuid_C
(String uuid, long companyId) Removes all the countries where uuid = ? and companyId = ? from the database.static void
setPersistence
(CountryPersistence persistence) static Country
static Country
update
(Country country, ServiceContext serviceContext) static Country
updateImpl
(Country country)
-
Constructor Details
-
CountryUtil
public CountryUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
clearCache
-
countWithDynamicQuery
-
fetchByPrimaryKeys
- See Also:
-
findWithDynamicQuery
-
findWithDynamicQuery
-
findWithDynamicQuery
public static List<Country> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<Country> orderByComparator) -
update
-
update
-
findByUuid
Returns all the countries where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching countries
-
findByUuid
Returns a range of all the countries where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCountryModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of countriesend
- the upper bound of the range of countries (not inclusive)- Returns:
- the range of matching countries
-
findByUuid
public static List<Country> findByUuid(String uuid, int start, int end, OrderByComparator<Country> orderByComparator) Returns an ordered range of all the countries where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCountryModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching countries
-
findByUuid
public static List<Country> findByUuid(String uuid, int start, int end, OrderByComparator<Country> orderByComparator, boolean useFinderCache) Returns an ordered range of all the countries where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCountryModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching countries
-
findByUuid_First
public static Country findByUuid_First(String uuid, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException Returns the first country in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching country
- Throws:
NoSuchCountryException
- if a matching country could not be foundNoSuchCountryException
-
fetchByUuid_First
Returns the first country in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching country, or
null
if a matching country could not be found
-
findByUuid_Last
public static Country findByUuid_Last(String uuid, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException Returns the last country in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching country
- Throws:
NoSuchCountryException
- if a matching country could not be foundNoSuchCountryException
-
fetchByUuid_Last
Returns the last country in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching country, or
null
if a matching country could not be found
-
findByUuid_PrevAndNext
public static Country[] findByUuid_PrevAndNext(long countryId, String uuid, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException Returns the countries before and after the current country in the ordered set where uuid = ?.- Parameters:
countryId
- the primary key of the current countryuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next country
- Throws:
NoSuchCountryException
- if a country with the primary key could not be foundNoSuchCountryException
-
removeByUuid
Removes all the countries where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of countries where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching countries
-
findByUuid_C
Returns all the countries where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching countries
-
findByUuid_C
Returns a range of all the countries where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCountryModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of countriesend
- the upper bound of the range of countries (not inclusive)- Returns:
- the range of matching countries
-
findByUuid_C
public static List<Country> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<Country> orderByComparator) Returns an ordered range of all the countries where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCountryModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching countries
-
findByUuid_C
public static List<Country> findByUuid_C(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCountryModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching countries
-
findByUuid_C_First
public static Country findByUuid_C_First(String uuid, long companyId, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException Returns the first country in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching country
- Throws:
NoSuchCountryException
- if a matching country could not be foundNoSuchCountryException
-
fetchByUuid_C_First
public static Country fetchByUuid_C_First(String uuid, long companyId, OrderByComparator<Country> orderByComparator) Returns the first country in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching country, or
null
if a matching country could not be found
-
findByUuid_C_Last
public static Country findByUuid_C_Last(String uuid, long companyId, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException Returns the last country in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching country
- Throws:
NoSuchCountryException
- if a matching country could not be foundNoSuchCountryException
-
fetchByUuid_C_Last
public static Country fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator<Country> orderByComparator) Returns the last country in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching country, or
null
if a matching country could not be found
-
findByUuid_C_PrevAndNext
public static Country[] findByUuid_C_PrevAndNext(long countryId, String uuid, long companyId, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException Returns the countries before and after the current country in the ordered set where uuid = ? and companyId = ?.- Parameters:
countryId
- the primary key of the current countryuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next country
- Throws:
NoSuchCountryException
- if a country with the primary key could not be foundNoSuchCountryException
-
removeByUuid_C
Removes all the countries where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of countries where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching countries
-
findByCompanyId
Returns all the countries where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching countries
-
findByCompanyId
Returns a range of all the countries where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCountryModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of countriesend
- the upper bound of the range of countries (not inclusive)- Returns:
- the range of matching countries
-
findByCompanyId
public static List<Country> findByCompanyId(long companyId, int start, int end, OrderByComparator<Country> orderByComparator) Returns an ordered range of all the countries where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCountryModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching countries
-
findByCompanyId
public static List<Country> findByCompanyId(long companyId, int start, int end, OrderByComparator<Country> orderByComparator, boolean useFinderCache) Returns an ordered range of all the countries where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCountryModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching countries
-
findByCompanyId_First
public static Country findByCompanyId_First(long companyId, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException Returns the first country in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching country
- Throws:
NoSuchCountryException
- if a matching country could not be foundNoSuchCountryException
-
fetchByCompanyId_First
public static Country fetchByCompanyId_First(long companyId, OrderByComparator<Country> orderByComparator) Returns the first country in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching country, or
null
if a matching country could not be found
-
findByCompanyId_Last
public static Country findByCompanyId_Last(long companyId, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException Returns the last country in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching country
- Throws:
NoSuchCountryException
- if a matching country could not be foundNoSuchCountryException
-
fetchByCompanyId_Last
public static Country fetchByCompanyId_Last(long companyId, OrderByComparator<Country> orderByComparator) Returns the last country in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching country, or
null
if a matching country could not be found
-
findByCompanyId_PrevAndNext
public static Country[] findByCompanyId_PrevAndNext(long countryId, long companyId, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException Returns the countries before and after the current country in the ordered set where companyId = ?.- Parameters:
countryId
- the primary key of the current countrycompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next country
- Throws:
NoSuchCountryException
- if a country with the primary key could not be foundNoSuchCountryException
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the countries where companyId = ? from the database.- Parameters:
companyId
- the company ID
-
countByCompanyId
public static int countByCompanyId(long companyId) Returns the number of countries where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the number of matching countries
-
findByActive
Returns all the countries where active = ?.- Parameters:
active
- the active- Returns:
- the matching countries
-
findByActive
Returns a range of all the countries where active = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCountryModelImpl
.- Parameters:
active
- the activestart
- the lower bound of the range of countriesend
- the upper bound of the range of countries (not inclusive)- Returns:
- the range of matching countries
-
findByActive
public static List<Country> findByActive(boolean active, int start, int end, OrderByComparator<Country> orderByComparator) Returns an ordered range of all the countries where active = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCountryModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching countries
-
findByActive
public static List<Country> findByActive(boolean active, int start, int end, OrderByComparator<Country> orderByComparator, boolean useFinderCache) Returns an ordered range of all the countries where active = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCountryModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching countries
-
findByActive_First
public static Country findByActive_First(boolean active, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException Returns the first country in the ordered set where active = ?.- Parameters:
active
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching country
- Throws:
NoSuchCountryException
- if a matching country could not be foundNoSuchCountryException
-
fetchByActive_First
public static Country fetchByActive_First(boolean active, OrderByComparator<Country> orderByComparator) Returns the first country in the ordered set where active = ?.- Parameters:
active
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching country, or
null
if a matching country could not be found
-
findByActive_Last
public static Country findByActive_Last(boolean active, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException Returns the last country in the ordered set where active = ?.- Parameters:
active
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching country
- Throws:
NoSuchCountryException
- if a matching country could not be foundNoSuchCountryException
-
fetchByActive_Last
public static Country fetchByActive_Last(boolean active, OrderByComparator<Country> orderByComparator) Returns the last country in the ordered set where active = ?.- Parameters:
active
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching country, or
null
if a matching country could not be found
-
findByActive_PrevAndNext
public static Country[] findByActive_PrevAndNext(long countryId, boolean active, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException Returns the countries before and after the current country in the ordered set where active = ?.- Parameters:
countryId
- the primary key of the current countryactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next country
- Throws:
NoSuchCountryException
- if a country with the primary key could not be foundNoSuchCountryException
-
removeByActive
public static void removeByActive(boolean active) Removes all the countries where active = ? from the database.- Parameters:
active
- the active
-
countByActive
public static int countByActive(boolean active) Returns the number of countries where active = ?.- Parameters:
active
- the active- Returns:
- the number of matching countries
-
findByC_A2
Returns the country where companyId = ? and a2 = ? or throws aNoSuchCountryException
if it could not be found.- Parameters:
companyId
- the company IDa2
- the a2- Returns:
- the matching country
- Throws:
NoSuchCountryException
- if a matching country could not be foundNoSuchCountryException
-
fetchByC_A2
Returns the country where companyId = ? and a2 = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
companyId
- the company IDa2
- the a2- Returns:
- the matching country, or
null
if a matching country could not be found
-
fetchByC_A2
Returns the country where companyId = ? and a2 = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
companyId
- the company IDa2
- the a2useFinderCache
- whether to use the finder cache- Returns:
- the matching country, or
null
if a matching country could not be found
-
removeByC_A2
Removes the country where companyId = ? and a2 = ? from the database.- Parameters:
companyId
- the company IDa2
- the a2- Returns:
- the country that was removed
- Throws:
NoSuchCountryException
-
countByC_A2
Returns the number of countries where companyId = ? and a2 = ?.- Parameters:
companyId
- the company IDa2
- the a2- Returns:
- the number of matching countries
-
findByC_A3
Returns the country where companyId = ? and a3 = ? or throws aNoSuchCountryException
if it could not be found.- Parameters:
companyId
- the company IDa3
- the a3- Returns:
- the matching country
- Throws:
NoSuchCountryException
- if a matching country could not be foundNoSuchCountryException
-
fetchByC_A3
Returns the country where companyId = ? and a3 = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
companyId
- the company IDa3
- the a3- Returns:
- the matching country, or
null
if a matching country could not be found
-
fetchByC_A3
Returns the country where companyId = ? and a3 = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
companyId
- the company IDa3
- the a3useFinderCache
- whether to use the finder cache- Returns:
- the matching country, or
null
if a matching country could not be found
-
removeByC_A3
Removes the country where companyId = ? and a3 = ? from the database.- Parameters:
companyId
- the company IDa3
- the a3- Returns:
- the country that was removed
- Throws:
NoSuchCountryException
-
countByC_A3
Returns the number of countries where companyId = ? and a3 = ?.- Parameters:
companyId
- the company IDa3
- the a3- Returns:
- the number of matching countries
-
findByC_Active
Returns all the countries where companyId = ? and active = ?.- Parameters:
companyId
- the company IDactive
- the active- Returns:
- the matching countries
-
findByC_Active
Returns a range of all the countries where companyId = ? and active = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCountryModelImpl
.- Parameters:
companyId
- the company IDactive
- the activestart
- the lower bound of the range of countriesend
- the upper bound of the range of countries (not inclusive)- Returns:
- the range of matching countries
-
findByC_Active
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCountryModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching countries
-
findByC_Active
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCountryModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching countries
-
findByC_Active_First
public static Country findByC_Active_First(long companyId, boolean active, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException Returns the first country in the ordered set where companyId = ? and active = ?.- Parameters:
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching country
- Throws:
NoSuchCountryException
- if a matching country could not be foundNoSuchCountryException
-
fetchByC_Active_First
public static Country fetchByC_Active_First(long companyId, boolean active, OrderByComparator<Country> orderByComparator) Returns the first country in the ordered set where companyId = ? and active = ?.- Parameters:
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching country, or
null
if a matching country could not be found
-
findByC_Active_Last
public static Country findByC_Active_Last(long companyId, boolean active, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException Returns the last country in the ordered set where companyId = ? and active = ?.- Parameters:
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching country
- Throws:
NoSuchCountryException
- if a matching country could not be foundNoSuchCountryException
-
fetchByC_Active_Last
public static Country fetchByC_Active_Last(long companyId, boolean active, OrderByComparator<Country> orderByComparator) Returns the last country in the ordered set where companyId = ? and active = ?.- Parameters:
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching country, or
null
if a matching country could not be found
-
findByC_Active_PrevAndNext
public static Country[] findByC_Active_PrevAndNext(long countryId, long companyId, boolean active, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException Returns the countries before and after the current country in the ordered set where companyId = ? and active = ?.- Parameters:
countryId
- the primary key of the current countrycompanyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next country
- Throws:
NoSuchCountryException
- if a country with the primary key could not be foundNoSuchCountryException
-
removeByC_Active
public static void removeByC_Active(long companyId, boolean active) Removes all the countries where companyId = ? and active = ? from the database.- Parameters:
companyId
- the company IDactive
- the active
-
countByC_Active
public static int countByC_Active(long companyId, boolean active) Returns the number of countries where companyId = ? and active = ?.- Parameters:
companyId
- the company IDactive
- the active- Returns:
- the number of matching countries
-
findByC_Name
Returns the country where companyId = ? and name = ? or throws aNoSuchCountryException
if it could not be found.- Parameters:
companyId
- the company IDname
- the name- Returns:
- the matching country
- Throws:
NoSuchCountryException
- if a matching country could not be foundNoSuchCountryException
-
fetchByC_Name
Returns the country where companyId = ? and name = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
companyId
- the company IDname
- the name- Returns:
- the matching country, or
null
if a matching country could not be found
-
fetchByC_Name
Returns the country where companyId = ? and name = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
companyId
- the company IDname
- the nameuseFinderCache
- whether to use the finder cache- Returns:
- the matching country, or
null
if a matching country could not be found
-
removeByC_Name
Removes the country where companyId = ? and name = ? from the database.- Parameters:
companyId
- the company IDname
- the name- Returns:
- the country that was removed
- Throws:
NoSuchCountryException
-
countByC_Name
Returns the number of countries where companyId = ? and name = ?.- Parameters:
companyId
- the company IDname
- the name- Returns:
- the number of matching countries
-
findByC_Number
Returns the country where companyId = ? and number = ? or throws aNoSuchCountryException
if it could not be found.- Parameters:
companyId
- the company IDnumber
- the number- Returns:
- the matching country
- Throws:
NoSuchCountryException
- if a matching country could not be foundNoSuchCountryException
-
fetchByC_Number
Returns the country where companyId = ? and number = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
companyId
- the company IDnumber
- the number- Returns:
- the matching country, or
null
if a matching country could not be found
-
fetchByC_Number
Returns the country where companyId = ? and number = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
companyId
- the company IDnumber
- the numberuseFinderCache
- whether to use the finder cache- Returns:
- the matching country, or
null
if a matching country could not be found
-
removeByC_Number
Removes the country where companyId = ? and number = ? from the database.- Parameters:
companyId
- the company IDnumber
- the number- Returns:
- the country that was removed
- Throws:
NoSuchCountryException
-
countByC_Number
Returns the number of countries where companyId = ? and number = ?.- Parameters:
companyId
- the company IDnumber
- the number- Returns:
- the number of matching countries
-
findByC_A_B
Returns all the countries where companyId = ? and active = ? and billingAllowed = ?.- Parameters:
companyId
- the company IDactive
- the activebillingAllowed
- the billing allowed- Returns:
- the matching countries
-
findByC_A_B
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCountryModelImpl
.- Parameters:
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)- Returns:
- the range of matching countries
-
findByC_A_B
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCountryModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching countries
-
findByC_A_B
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCountryModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching countries
-
findByC_A_B_First
public static Country findByC_A_B_First(long companyId, boolean active, boolean billingAllowed, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException Returns the first country in the ordered set where companyId = ? and active = ? and billingAllowed = ?.- Parameters:
companyId
- the company IDactive
- the activebillingAllowed
- the billing allowedorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching country
- Throws:
NoSuchCountryException
- if a matching country could not be foundNoSuchCountryException
-
fetchByC_A_B_First
public 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 = ?.- Parameters:
companyId
- the company IDactive
- the activebillingAllowed
- the billing allowedorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching country, or
null
if a matching country could not be found
-
findByC_A_B_Last
public static Country findByC_A_B_Last(long companyId, boolean active, boolean billingAllowed, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException Returns the last country in the ordered set where companyId = ? and active = ? and billingAllowed = ?.- Parameters:
companyId
- the company IDactive
- the activebillingAllowed
- the billing allowedorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching country
- Throws:
NoSuchCountryException
- if a matching country could not be foundNoSuchCountryException
-
fetchByC_A_B_Last
public 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 = ?.- Parameters:
companyId
- the company IDactive
- the activebillingAllowed
- the billing allowedorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching country, or
null
if a matching country could not be found
-
findByC_A_B_PrevAndNext
public static Country[] findByC_A_B_PrevAndNext(long countryId, long companyId, boolean active, boolean billingAllowed, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException Returns the countries before and after the current country in the ordered set where companyId = ? and active = ? and billingAllowed = ?.- Parameters:
countryId
- the primary key of the current countrycompanyId
- the company IDactive
- the activebillingAllowed
- the billing allowedorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next country
- Throws:
NoSuchCountryException
- if a country with the primary key could not be foundNoSuchCountryException
-
removeByC_A_B
public static void removeByC_A_B(long companyId, boolean active, boolean billingAllowed) Removes all the countries where companyId = ? and active = ? and billingAllowed = ? from the database.- Parameters:
companyId
- the company IDactive
- the activebillingAllowed
- the billing allowed
-
countByC_A_B
public static int countByC_A_B(long companyId, boolean active, boolean billingAllowed) Returns the number of countries where companyId = ? and active = ? and billingAllowed = ?.- Parameters:
companyId
- the company IDactive
- the activebillingAllowed
- the billing allowed- Returns:
- the number of matching countries
-
findByC_A_S
Returns all the countries where companyId = ? and active = ? and shippingAllowed = ?.- Parameters:
companyId
- the company IDactive
- the activeshippingAllowed
- the shipping allowed- Returns:
- the matching countries
-
findByC_A_S
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCountryModelImpl
.- Parameters:
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)- Returns:
- the range of matching countries
-
findByC_A_S
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCountryModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching countries
-
findByC_A_S
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCountryModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching countries
-
findByC_A_S_First
public static Country findByC_A_S_First(long companyId, boolean active, boolean shippingAllowed, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException Returns the first country in the ordered set where companyId = ? and active = ? and shippingAllowed = ?.- Parameters:
companyId
- the company IDactive
- the activeshippingAllowed
- the shipping allowedorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching country
- Throws:
NoSuchCountryException
- if a matching country could not be foundNoSuchCountryException
-
fetchByC_A_S_First
public 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 = ?.- Parameters:
companyId
- the company IDactive
- the activeshippingAllowed
- the shipping allowedorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching country, or
null
if a matching country could not be found
-
findByC_A_S_Last
public static Country findByC_A_S_Last(long companyId, boolean active, boolean shippingAllowed, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException Returns the last country in the ordered set where companyId = ? and active = ? and shippingAllowed = ?.- Parameters:
companyId
- the company IDactive
- the activeshippingAllowed
- the shipping allowedorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching country
- Throws:
NoSuchCountryException
- if a matching country could not be foundNoSuchCountryException
-
fetchByC_A_S_Last
public 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 = ?.- Parameters:
companyId
- the company IDactive
- the activeshippingAllowed
- the shipping allowedorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching country, or
null
if a matching country could not be found
-
findByC_A_S_PrevAndNext
public static Country[] findByC_A_S_PrevAndNext(long countryId, long companyId, boolean active, boolean shippingAllowed, OrderByComparator<Country> orderByComparator) throws NoSuchCountryException Returns the countries before and after the current country in the ordered set where companyId = ? and active = ? and shippingAllowed = ?.- Parameters:
countryId
- the primary key of the current countrycompanyId
- the company IDactive
- the activeshippingAllowed
- the shipping allowedorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next country
- Throws:
NoSuchCountryException
- if a country with the primary key could not be foundNoSuchCountryException
-
removeByC_A_S
public static void removeByC_A_S(long companyId, boolean active, boolean shippingAllowed) Removes all the countries where companyId = ? and active = ? and shippingAllowed = ? from the database.- Parameters:
companyId
- the company IDactive
- the activeshippingAllowed
- the shipping allowed
-
countByC_A_S
public static int countByC_A_S(long companyId, boolean active, boolean shippingAllowed) Returns the number of countries where companyId = ? and active = ? and shippingAllowed = ?.- Parameters:
companyId
- the company IDactive
- the activeshippingAllowed
- the shipping allowed- Returns:
- the number of matching countries
-
cacheResult
Caches the country in the entity cache if it is enabled.- Parameters:
country
- the country
-
cacheResult
Caches the countries in the entity cache if it is enabled.- Parameters:
countries
- the countries
-
create
Creates a new country with the primary key. Does not add the country to the database.- Parameters:
countryId
- the primary key for the new country- Returns:
- the new country
-
remove
Removes the country with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
countryId
- the primary key of the country- Returns:
- the country that was removed
- Throws:
NoSuchCountryException
- if a country with the primary key could not be foundNoSuchCountryException
-
updateImpl
-
findByPrimaryKey
Returns the country with the primary key or throws aNoSuchCountryException
if it could not be found.- Parameters:
countryId
- the primary key of the country- Returns:
- the country
- Throws:
NoSuchCountryException
- if a country with the primary key could not be foundNoSuchCountryException
-
fetchByPrimaryKey
Returns the country with the primary key or returnsnull
if it could not be found.- Parameters:
countryId
- the primary key of the country- Returns:
- the country, or
null
if a country with the primary key could not be found
-
findAll
Returns all the countries.- Returns:
- the countries
-
findAll
Returns a range of all the countries.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCountryModelImpl
.- Parameters:
start
- the lower bound of the range of countriesend
- the upper bound of the range of countries (not inclusive)- Returns:
- the range of countries
-
findAll
public static List<Country> findAll(int start, int end, OrderByComparator<Country> orderByComparator) Returns an ordered range of all the countries.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCountryModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of countries
-
findAll
public static List<Country> findAll(int start, int end, OrderByComparator<Country> orderByComparator, boolean useFinderCache) Returns an ordered range of all the countries.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCountryModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of countries
-
removeAll
public static void removeAll()Removes all the countries from the database. -
countAll
public static int countAll()Returns the number of countries.- Returns:
- the number of countries
-
getPersistence
-
setPersistence
-