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.void
deleteEmailAddresses
(long companyId, String className, long classPK) deletePersistedModel
(PersistedModel persistedModel) <T> T
dslQuery
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) int
dslQueryCount
(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.long
dynamicQueryCount
(DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.long
dynamicQueryCount
(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) int
Returns the number of email addresses.getExportActionableDynamicQuery
(PortletDataContext portletDataContext) Returns the OSGi service identifier.getPersistedModel
(Serializable primaryKeyObj) void
setWrappedService
(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, wait
Methods 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:
addEmailAddress
in 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:
addEmailAddress
in interfaceEmailAddressLocalService
- Throws:
PortalException
-
createEmailAddress
Creates a new email address with the primary key. Does not add the email address to the database.- Specified by:
createEmailAddress
in interfaceEmailAddressLocalService
- Parameters:
emailAddressId
- the primary key for the new email address- Returns:
- the new email address
-
createPersistedModel
- Specified by:
createPersistedModel
in interfaceEmailAddressLocalService
- Specified by:
createPersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
PortalException
-
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:
deleteEmailAddress
in 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:
deleteEmailAddress
in 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:
deleteEmailAddresses
in interfaceEmailAddressLocalService
-
deletePersistedModel
- Specified by:
deletePersistedModel
in interfaceEmailAddressLocalService
- Specified by:
deletePersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
PortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQuery
in interfaceEmailAddressLocalService
- Specified by:
dslQuery
in interfacePersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfaceEmailAddressLocalService
- Specified by:
dslQueryCount
in interfacePersistedModelLocalService
-
dynamicQuery
- Specified by:
dynamicQuery
in interfaceEmailAddressLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in 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 - 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
tocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.portal.model.impl.EmailAddressModelImpl
.- Specified by:
dynamicQuery
in 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 - 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
tocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.portal.model.impl.EmailAddressModelImpl
.- Specified by:
dynamicQuery
in 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:
dynamicQueryCount
in 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:
dynamicQueryCount
in 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:
fetchEmailAddress
in interfaceEmailAddressLocalService
-
fetchEmailAddressByExternalReferenceCode
public EmailAddress fetchEmailAddressByExternalReferenceCode(String externalReferenceCode, long companyId) - Specified by:
fetchEmailAddressByExternalReferenceCode
in interfaceEmailAddressLocalService
-
fetchEmailAddressByUuidAndCompanyId
Returns the email address with the matching UUID and company.- Specified by:
fetchEmailAddressByUuidAndCompanyId
in interfaceEmailAddressLocalService
- Parameters:
uuid
- the email address's UUIDcompanyId
- the primary key of the company- Returns:
- the matching email address, or
null
if a matching email address could not be found
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQuery
in interfaceEmailAddressLocalService
-
getEmailAddress
Returns the email address with the primary key.- Specified by:
getEmailAddress
in 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:
getEmailAddressByExternalReferenceCode
in 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:
getEmailAddressByUuidAndCompanyId
in 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:
getEmailAddresses
in interfaceEmailAddressLocalService
-
getEmailAddresses
Returns a range of all the email addresses.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
tocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.portal.model.impl.EmailAddressModelImpl
.- Specified by:
getEmailAddresses
in 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:
getEmailAddresses
in interfaceEmailAddressLocalService
-
getEmailAddressesCount
public int getEmailAddressesCount()Returns the number of email addresses.- Specified by:
getEmailAddressesCount
in interfaceEmailAddressLocalService
- Returns:
- the number of email addresses
-
getExportActionableDynamicQuery
public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQuery
in interfaceEmailAddressLocalService
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQuery
in interfaceEmailAddressLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceEmailAddressLocalService
- Returns:
- the OSGi service identifier
-
getPersistedModel
- Specified by:
getPersistedModel
in interfaceEmailAddressLocalService
- Specified by:
getPersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
PortalException
-
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:
updateEmailAddress
in 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:
updateEmailAddress
in interfaceEmailAddressLocalService
- Throws:
PortalException
-
getBasePersistence
- Specified by:
getBasePersistence
in interfacePersistedModelLocalService
-
getCTPersistence
- Specified by:
getCTPersistence
in interfaceCTService<EmailAddress>
- Specified by:
getCTPersistence
in interfaceEmailAddressLocalService
-
getModelClass
- Specified by:
getModelClass
in interfaceCTService<EmailAddress>
- Specified by:
getModelClass
in interfaceEmailAddressLocalService
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<EmailAddress>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunction
in interfaceCTService<EmailAddress>
- Specified by:
updateWithUnsafeFunction
in interfaceEmailAddressLocalService
- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedService
in interfaceServiceWrapper<EmailAddressLocalService>
-
setWrappedService
- Specified by:
setWrappedService
in interfaceServiceWrapper<EmailAddressLocalService>
-