Class CountryLocalServiceWrapper
- All Implemented Interfaces:
BaseLocalService,CTService<Country>,CountryLocalService,PersistedModelLocalService,ServiceWrapper<CountryLocalService>
CountryLocalService.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCountry(Country country) Adds the country to the database.addCountry(String a2, String a3, boolean active, boolean billingAllowed, String idd, String name, String number, double position, boolean shippingAllowed, boolean subjectToVAT, boolean zipRequired, ServiceContext serviceContext) createCountry(long countryId) Creates a new country with the primary key.createPersistedModel(Serializable primaryKeyObj) voiddeleteCompanyCountries(long companyId) deleteCountry(long countryId) Deletes the country with the primary key from the database.deleteCountry(Country country) Deletes the country from the database.deletePersistedModel(PersistedModel persistedModel) <T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) intdslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) <T> List<T>dynamicQuery(DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<T> List<T>dynamicQuery(DynamicQuery dynamicQuery, int start, int end) Performs a dynamic query on the database and returns a range of the matching rows.<T> List<T>dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator) Performs a dynamic query on the database and returns an ordered range of the matching rows.longdynamicQueryCount(DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.longdynamicQueryCount(DynamicQuery dynamicQuery, Projection projection) Returns the number of rows matching the dynamic query.fetchCountry(long countryId) fetchCountryByA2(long companyId, String a2) fetchCountryByA3(long companyId, String a3) fetchCountryByName(long companyId, String name) fetchCountryByNumber(long companyId, String number) fetchCountryByUuidAndCompanyId(String uuid, long companyId) Returns the country with the matching UUID and company.fetchCountryLocalization(long countryId, String languageId) getCompanyCountries(long companyId) getCompanyCountries(long companyId, boolean active) getCompanyCountries(long companyId, boolean active, int start, int end, OrderByComparator<Country> orderByComparator) getCompanyCountries(long companyId, int start, int end, OrderByComparator<Country> orderByComparator) intgetCompanyCountriesCount(long companyId) intgetCompanyCountriesCount(long companyId, boolean active) getCountries(int start, int end) Returns a range of all the countries.intReturns the number of countries.getCountry(long countryId) Returns the country with the primary key.getCountryByA2(long companyId, String a2) getCountryByA3(long companyId, String a3) getCountryByName(long companyId, String name) getCountryByNumber(long companyId, String number) getCountryByUuidAndCompanyId(String uuid, long companyId) Returns the country with the matching UUID and company.getCountryLocalization(long countryId, String languageId) getCountryLocalizations(long countryId) getExportActionableDynamicQuery(PortletDataContext portletDataContext) Returns the OSGi service identifier.getPersistedModel(Serializable primaryKeyObj) searchCountries(long companyId, Boolean active, String keywords, int start, int end, OrderByComparator<Country> orderByComparator) voidsetWrappedService(CountryLocalService countryLocalService) updateActive(long countryId, boolean active) updateCountry(long countryId, String a2, String a3, boolean active, boolean billingAllowed, String idd, String name, String number, double position, boolean shippingAllowed, boolean subjectToVAT) updateCountry(Country country) Updates the country in the database or adds it if it does not yet exist.updateCountryLocalization(Country country, String languageId, String title) updateCountryLocalizations(Country country, Map<String, String> titleMap) updateGroupFilterEnabled(long countryId, boolean groupFilterEnabled) <R,E extends Throwable>
RupdateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<Country>, R, E> updateUnsafeFunction) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
CountryLocalServiceWrapper
public CountryLocalServiceWrapper() -
CountryLocalServiceWrapper
-
-
Method Details
-
addCountry
Adds the country to the database. Also notifies the appropriate model listeners.Important: Inspect CountryLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
addCountryin interfaceCountryLocalService- Parameters:
country- the country- Returns:
- the country that was added
-
addCountry
public Country addCountry(String a2, String a3, boolean active, boolean billingAllowed, String idd, String name, String number, double position, boolean shippingAllowed, boolean subjectToVAT, boolean zipRequired, ServiceContext serviceContext) throws PortalException - Specified by:
addCountryin interfaceCountryLocalService- Throws:
PortalException
-
createCountry
Creates a new country with the primary key. Does not add the country to the database.- Specified by:
createCountryin interfaceCountryLocalService- Parameters:
countryId- the primary key for the new country- Returns:
- the new country
-
createPersistedModel
- Specified by:
createPersistedModelin interfaceCountryLocalService- Specified by:
createPersistedModelin interfacePersistedModelLocalService- Throws:
PortalExceptionPortalException
-
deleteCompanyCountries
- Specified by:
deleteCompanyCountriesin interfaceCountryLocalService- Throws:
PortalException
-
deleteCountry
Deletes the country from the database. Also notifies the appropriate model listeners.Important: Inspect CountryLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
deleteCountryin interfaceCountryLocalService- Parameters:
country- the country- Returns:
- the country that was removed
- Throws:
PortalExceptionPortalException
-
deleteCountry
Deletes the country with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect CountryLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
deleteCountryin interfaceCountryLocalService- Parameters:
countryId- the primary key of the country- Returns:
- the country that was removed
- Throws:
PortalException- if a country with the primary key could not be foundPortalException
-
deletePersistedModel
- Specified by:
deletePersistedModelin interfaceCountryLocalService- Specified by:
deletePersistedModelin interfacePersistedModelLocalService- Throws:
PortalExceptionPortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryin interfaceCountryLocalService- Specified by:
dslQueryin interfacePersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfaceCountryLocalService- Specified by:
dslQueryCountin interfacePersistedModelLocalService
-
dynamicQuery
- Specified by:
dynamicQueryin interfaceCountryLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQueryin interfaceCountryLocalService- Parameters:
dynamicQuery- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
Performs a dynamic query on the database and returns a range of the matching rows.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.CountryModelImpl.- Specified by:
dynamicQueryin interfaceCountryLocalService- Parameters:
dynamicQuery- the dynamic querystart- the lower bound of the range of model instancesend- the upper bound of the range of model instances (not inclusive)- Returns:
- the range of matching rows
-
dynamicQuery
public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator) Performs a dynamic query on the database and returns an ordered range of the matching rows.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.CountryModelImpl.- Specified by:
dynamicQueryin interfaceCountryLocalService- Parameters:
dynamicQuery- the dynamic querystart- the lower bound of the range of model instancesend- the upper bound of the range of model instances (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching rows
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCountin interfaceCountryLocalService- Parameters:
dynamicQuery- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCountin interfaceCountryLocalService- Parameters:
dynamicQuery- the dynamic queryprojection- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchCountry
- Specified by:
fetchCountryin interfaceCountryLocalService
-
fetchCountryByA2
- Specified by:
fetchCountryByA2in interfaceCountryLocalService
-
fetchCountryByA3
- Specified by:
fetchCountryByA3in interfaceCountryLocalService
-
fetchCountryByName
- Specified by:
fetchCountryByNamein interfaceCountryLocalService
-
fetchCountryByNumber
- Specified by:
fetchCountryByNumberin interfaceCountryLocalService
-
fetchCountryByUuidAndCompanyId
Returns the country with the matching UUID and company.- Specified by:
fetchCountryByUuidAndCompanyIdin interfaceCountryLocalService- Parameters:
uuid- the country's UUIDcompanyId- the primary key of the company- Returns:
- the matching country, or
nullif a matching country could not be found
-
fetchCountryLocalization
- Specified by:
fetchCountryLocalizationin interfaceCountryLocalService
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQueryin interfaceCountryLocalService
-
getCompanyCountries
- Specified by:
getCompanyCountriesin interfaceCountryLocalService
-
getCompanyCountries
- Specified by:
getCompanyCountriesin interfaceCountryLocalService
-
getCompanyCountries
public List<Country> getCompanyCountries(long companyId, boolean active, int start, int end, OrderByComparator<Country> orderByComparator) - Specified by:
getCompanyCountriesin interfaceCountryLocalService
-
getCompanyCountries
public List<Country> getCompanyCountries(long companyId, int start, int end, OrderByComparator<Country> orderByComparator) - Specified by:
getCompanyCountriesin interfaceCountryLocalService
-
getCompanyCountriesCount
public int getCompanyCountriesCount(long companyId) - Specified by:
getCompanyCountriesCountin interfaceCountryLocalService
-
getCompanyCountriesCount
public int getCompanyCountriesCount(long companyId, boolean active) - Specified by:
getCompanyCountriesCountin interfaceCountryLocalService
-
getCountries
Returns a range of all the countries.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.CountryModelImpl.- Specified by:
getCountriesin interfaceCountryLocalService- 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
-
getCountriesCount
public int getCountriesCount()Returns the number of countries.- Specified by:
getCountriesCountin interfaceCountryLocalService- Returns:
- the number of countries
-
getCountry
Returns the country with the primary key.- Specified by:
getCountryin interfaceCountryLocalService- Parameters:
countryId- the primary key of the country- Returns:
- the country
- Throws:
PortalException- if a country with the primary key could not be foundPortalException
-
getCountryByA2
- Specified by:
getCountryByA2in interfaceCountryLocalService- Throws:
PortalException
-
getCountryByA3
- Specified by:
getCountryByA3in interfaceCountryLocalService- Throws:
PortalException
-
getCountryByName
- Specified by:
getCountryByNamein interfaceCountryLocalService- Throws:
PortalException
-
getCountryByNumber
- Specified by:
getCountryByNumberin interfaceCountryLocalService- Throws:
PortalException
-
getCountryByUuidAndCompanyId
Returns the country with the matching UUID and company.- Specified by:
getCountryByUuidAndCompanyIdin interfaceCountryLocalService- Parameters:
uuid- the country's UUIDcompanyId- the primary key of the company- Returns:
- the matching country
- Throws:
PortalException- if a matching country could not be foundPortalException
-
getCountryLocalization
public CountryLocalization getCountryLocalization(long countryId, String languageId) throws PortalException - Specified by:
getCountryLocalizationin interfaceCountryLocalService- Throws:
PortalException
-
getCountryLocalizations
- Specified by:
getCountryLocalizationsin interfaceCountryLocalService
-
getExportActionableDynamicQuery
public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQueryin interfaceCountryLocalService
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQueryin interfaceCountryLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifierin interfaceCountryLocalService- Returns:
- the OSGi service identifier
-
getPersistedModel
- Specified by:
getPersistedModelin interfaceCountryLocalService- Specified by:
getPersistedModelin interfacePersistedModelLocalService- Throws:
PortalExceptionPortalException
-
searchCountries
public BaseModelSearchResult<Country> searchCountries(long companyId, Boolean active, String keywords, int start, int end, OrderByComparator<Country> orderByComparator) throws PortalException - Specified by:
searchCountriesin interfaceCountryLocalService- Throws:
PortalException
-
updateActive
- Specified by:
updateActivein interfaceCountryLocalService- Throws:
PortalException
-
updateCountry
Updates the country in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect CountryLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
updateCountryin interfaceCountryLocalService- Parameters:
country- the country- Returns:
- the country that was updated
-
updateCountry
public Country updateCountry(long countryId, String a2, String a3, boolean active, boolean billingAllowed, String idd, String name, String number, double position, boolean shippingAllowed, boolean subjectToVAT) throws PortalException - Specified by:
updateCountryin interfaceCountryLocalService- Throws:
PortalException
-
updateCountryLocalization
public CountryLocalization updateCountryLocalization(Country country, String languageId, String title) throws PortalException - Specified by:
updateCountryLocalizationin interfaceCountryLocalService- Throws:
PortalException
-
updateCountryLocalizations
public List<CountryLocalization> updateCountryLocalizations(Country country, Map<String, String> titleMap) throws PortalException- Specified by:
updateCountryLocalizationsin interfaceCountryLocalService- Throws:
PortalException
-
updateGroupFilterEnabled
public Country updateGroupFilterEnabled(long countryId, boolean groupFilterEnabled) throws PortalException - Specified by:
updateGroupFilterEnabledin interfaceCountryLocalService- Throws:
PortalException
-
getBasePersistence
- Specified by:
getBasePersistencein interfacePersistedModelLocalService
-
getCTPersistence
- Specified by:
getCTPersistencein interfaceCountryLocalService- Specified by:
getCTPersistencein interfaceCTService<Country>
-
getModelClass
- Specified by:
getModelClassin interfaceCountryLocalService- Specified by:
getModelClassin interfaceCTService<Country>
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<Country>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunctionin interfaceCountryLocalService- Specified by:
updateWithUnsafeFunctionin interfaceCTService<Country>- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedServicein interfaceServiceWrapper<CountryLocalService>
-
setWrappedService
- Specified by:
setWrappedServicein interfaceServiceWrapper<CountryLocalService>
-