Class EmailAddressLocalServiceWrapper
- All Implemented Interfaces:
BaseLocalService,CTService<EmailAddress>,EmailAddressLocalService,PersistedModelLocalService,ServiceWrapper<EmailAddressLocalService>
EmailAddressLocalService.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
ConstructorsConstructorDescriptionEmailAddressLocalServiceWrapper(EmailAddressLocalService emailAddressLocalService) -
Method Summary
Modifier and TypeMethodDescriptionaddEmailAddress(EmailAddress emailAddress) Adds the email address to the database.addEmailAddress(String externalReferenceCode, long userId, String className, long classPK, String address, long listTypeId, boolean primary, ServiceContext serviceContext) createEmailAddress(long emailAddressId) Creates a new email address with the primary key.createPersistedModel(Serializable primaryKeyObj) deleteEmailAddress(long emailAddressId) Deletes the email address with the primary key from the database.deleteEmailAddress(EmailAddress emailAddress) Deletes the email address from the database.voiddeleteEmailAddresses(long companyId, String className, long classPK) 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.fetchEmailAddress(long emailAddressId) fetchEmailAddressByExternalReferenceCode(String externalReferenceCode, long companyId) fetchEmailAddressByUuidAndCompanyId(String uuid, long companyId) Returns the email address with the matching UUID and company.getEmailAddress(long emailAddressId) Returns the email address with the primary key.getEmailAddressByExternalReferenceCode(String externalReferenceCode, long companyId) getEmailAddressByUuidAndCompanyId(String uuid, long companyId) Returns the email address with the matching UUID and company.getEmailAddresses(int start, int end) Returns a range of all the email addresses.getEmailAddresses(long companyId, String className, long classPK) intReturns the number of email addresses.getExportActionableDynamicQuery(PortletDataContext portletDataContext) Returns the OSGi service identifier.getPersistedModel(Serializable primaryKeyObj) voidsetWrappedService(EmailAddressLocalService emailAddressLocalService) updateEmailAddress(EmailAddress emailAddress) Updates the email address in the database or adds it if it does not yet exist.updateEmailAddress(String externalReferenceCode, long emailAddressId, String address, long listTypeId, boolean primary) <R,E extends Throwable>
RupdateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<EmailAddress>, 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
-
EmailAddressLocalServiceWrapper
public EmailAddressLocalServiceWrapper() -
EmailAddressLocalServiceWrapper
-
-
Method Details
-
addEmailAddress
Adds the email address to the database. Also notifies the appropriate model listeners.Important: Inspect EmailAddressLocalServiceImpl 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:
addEmailAddressin interfaceEmailAddressLocalService- Parameters:
emailAddress- the email address- Returns:
- the email address that was added
-
addEmailAddress
public EmailAddress addEmailAddress(String externalReferenceCode, long userId, String className, long classPK, String address, long listTypeId, boolean primary, ServiceContext serviceContext) throws PortalException - Specified by:
addEmailAddressin interfaceEmailAddressLocalService- Throws:
PortalException
-
createEmailAddress
Creates a new email address with the primary key. Does not add the email address to the database.- Specified by:
createEmailAddressin interfaceEmailAddressLocalService- Parameters:
emailAddressId- the primary key for the new email address- Returns:
- the new email address
-
createPersistedModel
- Specified by:
createPersistedModelin interfaceEmailAddressLocalService- Specified by:
createPersistedModelin interfacePersistedModelLocalService- Throws:
PortalExceptionPortalException
-
deleteEmailAddress
Deletes the email address from the database. Also notifies the appropriate model listeners.Important: Inspect EmailAddressLocalServiceImpl 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:
deleteEmailAddressin interfaceEmailAddressLocalService- Parameters:
emailAddress- the email address- Returns:
- the email address that was removed
-
deleteEmailAddress
Deletes the email address with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect EmailAddressLocalServiceImpl 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:
deleteEmailAddressin interfaceEmailAddressLocalService- Parameters:
emailAddressId- the primary key of the email address- Returns:
- the email address that was removed
- Throws:
PortalException- if a email address with the primary key could not be foundPortalException
-
deleteEmailAddresses
- Specified by:
deleteEmailAddressesin interfaceEmailAddressLocalService
-
deletePersistedModel
- Specified by:
deletePersistedModelin interfaceEmailAddressLocalService- Specified by:
deletePersistedModelin interfacePersistedModelLocalService- Throws:
PortalExceptionPortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryin interfaceEmailAddressLocalService- Specified by:
dslQueryin interfacePersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfaceEmailAddressLocalService- Specified by:
dslQueryCountin interfacePersistedModelLocalService
-
dynamicQuery
- Specified by:
dynamicQueryin interfaceEmailAddressLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQueryin interfaceEmailAddressLocalService- 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.EmailAddressModelImpl.- Specified by:
dynamicQueryin interfaceEmailAddressLocalService- 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.EmailAddressModelImpl.- Specified by:
dynamicQueryin interfaceEmailAddressLocalService- 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 interfaceEmailAddressLocalService- 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 interfaceEmailAddressLocalService- Parameters:
dynamicQuery- the dynamic queryprojection- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchEmailAddress
- Specified by:
fetchEmailAddressin interfaceEmailAddressLocalService
-
fetchEmailAddressByExternalReferenceCode
public EmailAddress fetchEmailAddressByExternalReferenceCode(String externalReferenceCode, long companyId) - Specified by:
fetchEmailAddressByExternalReferenceCodein interfaceEmailAddressLocalService
-
fetchEmailAddressByUuidAndCompanyId
Returns the email address with the matching UUID and company.- Specified by:
fetchEmailAddressByUuidAndCompanyIdin interfaceEmailAddressLocalService- Parameters:
uuid- the email address's UUIDcompanyId- the primary key of the company- Returns:
- the matching email address, or
nullif a matching email address could not be found
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQueryin interfaceEmailAddressLocalService
-
getEmailAddress
Returns the email address with the primary key.- Specified by:
getEmailAddressin interfaceEmailAddressLocalService- Parameters:
emailAddressId- the primary key of the email address- Returns:
- the email address
- Throws:
PortalException- if a email address with the primary key could not be foundPortalException
-
getEmailAddressByExternalReferenceCode
public EmailAddress getEmailAddressByExternalReferenceCode(String externalReferenceCode, long companyId) throws PortalException - Specified by:
getEmailAddressByExternalReferenceCodein interfaceEmailAddressLocalService- Throws:
PortalException
-
getEmailAddressByUuidAndCompanyId
public EmailAddress getEmailAddressByUuidAndCompanyId(String uuid, long companyId) throws PortalException Returns the email address with the matching UUID and company.- Specified by:
getEmailAddressByUuidAndCompanyIdin interfaceEmailAddressLocalService- Parameters:
uuid- the email address's UUIDcompanyId- the primary key of the company- Returns:
- the matching email address
- Throws:
PortalException- if a matching email address could not be foundPortalException
-
getEmailAddresses
- Specified by:
getEmailAddressesin interfaceEmailAddressLocalService
-
getEmailAddresses
Returns a range of all the email addresses.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.EmailAddressModelImpl.- Specified by:
getEmailAddressesin interfaceEmailAddressLocalService- Parameters:
start- the lower bound of the range of email addressesend- the upper bound of the range of email addresses (not inclusive)- Returns:
- the range of email addresses
-
getEmailAddresses
- Specified by:
getEmailAddressesin interfaceEmailAddressLocalService
-
getEmailAddressesCount
public int getEmailAddressesCount()Returns the number of email addresses.- Specified by:
getEmailAddressesCountin interfaceEmailAddressLocalService- Returns:
- the number of email addresses
-
getExportActionableDynamicQuery
public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQueryin interfaceEmailAddressLocalService
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQueryin interfaceEmailAddressLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifierin interfaceEmailAddressLocalService- Returns:
- the OSGi service identifier
-
getPersistedModel
- Specified by:
getPersistedModelin interfaceEmailAddressLocalService- Specified by:
getPersistedModelin interfacePersistedModelLocalService- Throws:
PortalExceptionPortalException
-
updateEmailAddress
Updates the email address in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect EmailAddressLocalServiceImpl 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:
updateEmailAddressin interfaceEmailAddressLocalService- Parameters:
emailAddress- the email address- Returns:
- the email address that was updated
-
updateEmailAddress
public EmailAddress updateEmailAddress(String externalReferenceCode, long emailAddressId, String address, long listTypeId, boolean primary) throws PortalException - Specified by:
updateEmailAddressin interfaceEmailAddressLocalService- Throws:
PortalException
-
getBasePersistence
- Specified by:
getBasePersistencein interfacePersistedModelLocalService
-
getCTPersistence
- Specified by:
getCTPersistencein interfaceCTService<EmailAddress>- Specified by:
getCTPersistencein interfaceEmailAddressLocalService
-
getModelClass
- Specified by:
getModelClassin interfaceCTService<EmailAddress>- Specified by:
getModelClassin interfaceEmailAddressLocalService
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<EmailAddress>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunctionin interfaceCTService<EmailAddress>- Specified by:
updateWithUnsafeFunctionin interfaceEmailAddressLocalService- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedServicein interfaceServiceWrapper<EmailAddressLocalService>
-
setWrappedService
- Specified by:
setWrappedServicein interfaceServiceWrapper<EmailAddressLocalService>
-