@ProviderType public class EmailAddressLocalServiceWrapper extends Object implements EmailAddressLocalService, ServiceWrapper<EmailAddressLocalService>
EmailAddressLocalService
.EmailAddressLocalService
Constructor and Description |
---|
EmailAddressLocalServiceWrapper(EmailAddressLocalService emailAddressLocalService) |
Modifier and Type | Method and Description |
---|---|
EmailAddress |
addEmailAddress(EmailAddress emailAddress)
Adds the email address to the database.
|
EmailAddress |
addEmailAddress(long userId,
String className,
long classPK,
String address,
long typeId,
boolean primary,
ServiceContext serviceContext) |
EmailAddress |
createEmailAddress(long emailAddressId)
Creates a new email address with the primary key.
|
EmailAddress |
deleteEmailAddress(EmailAddress emailAddress)
Deletes the email address from the database.
|
EmailAddress |
deleteEmailAddress(long emailAddressId)
Deletes the email address with the primary key from the database.
|
void |
deleteEmailAddresses(long companyId,
String className,
long classPK) |
PersistedModel |
deletePersistedModel(PersistedModel persistedModel) |
DynamicQuery |
dynamicQuery() |
<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.
|
EmailAddress |
fetchEmailAddress(long emailAddressId) |
EmailAddress |
fetchEmailAddressByUuidAndCompanyId(String uuid,
long companyId)
Returns the email address with the matching UUID and company.
|
ActionableDynamicQuery |
getActionableDynamicQuery() |
EmailAddress |
getEmailAddress(long emailAddressId)
Returns the email address with the primary key.
|
EmailAddress |
getEmailAddressByUuidAndCompanyId(String uuid,
long companyId)
Returns the email address with the matching UUID and company.
|
List<EmailAddress> |
getEmailAddresses() |
List<EmailAddress> |
getEmailAddresses(int start,
int end)
Returns a range of all the email addresses.
|
List<EmailAddress> |
getEmailAddresses(long companyId,
String className,
long classPK) |
int |
getEmailAddressesCount()
Returns the number of email addresses.
|
ExportActionableDynamicQuery |
getExportActionableDynamicQuery(PortletDataContext portletDataContext) |
IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
PersistedModel |
getPersistedModel(Serializable primaryKeyObj) |
EmailAddressLocalService |
getWrappedService() |
void |
setWrappedService(EmailAddressLocalService emailAddressLocalService) |
EmailAddress |
updateEmailAddress(EmailAddress emailAddress)
Updates the email address in the database or adds it if it does not yet exist.
|
EmailAddress |
updateEmailAddress(long emailAddressId,
String address,
long typeId,
boolean primary) |
public EmailAddressLocalServiceWrapper(EmailAddressLocalService emailAddressLocalService)
public EmailAddress addEmailAddress(EmailAddress emailAddress)
addEmailAddress
in interface EmailAddressLocalService
emailAddress
- the email addresspublic EmailAddress addEmailAddress(long userId, String className, long classPK, String address, long typeId, boolean primary, ServiceContext serviceContext) throws PortalException
addEmailAddress
in interface EmailAddressLocalService
PortalException
public EmailAddress createEmailAddress(long emailAddressId)
createEmailAddress
in interface EmailAddressLocalService
emailAddressId
- the primary key for the new email addresspublic EmailAddress deleteEmailAddress(EmailAddress emailAddress)
deleteEmailAddress
in interface EmailAddressLocalService
emailAddress
- the email addresspublic EmailAddress deleteEmailAddress(long emailAddressId) throws PortalException
deleteEmailAddress
in interface EmailAddressLocalService
emailAddressId
- the primary key of the email addressPortalException
- if a email address with the primary key could not be foundpublic void deleteEmailAddresses(long companyId, String className, long classPK)
deleteEmailAddresses
in interface EmailAddressLocalService
public PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
deletePersistedModel
in interface EmailAddressLocalService
deletePersistedModel
in interface PersistedModelLocalService
PortalException
public DynamicQuery dynamicQuery()
dynamicQuery
in interface EmailAddressLocalService
public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery
in interface EmailAddressLocalService
dynamicQuery
- the dynamic querypublic <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from EmailAddressModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery
in interface EmailAddressLocalService
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from EmailAddressModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery
in interface EmailAddressLocalService
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 (optionally null
)public long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQueryCount
in interface EmailAddressLocalService
dynamicQuery
- the dynamic querypublic long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQueryCount
in interface EmailAddressLocalService
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic EmailAddress fetchEmailAddress(long emailAddressId)
fetchEmailAddress
in interface EmailAddressLocalService
public EmailAddress fetchEmailAddressByUuidAndCompanyId(String uuid, long companyId)
fetchEmailAddressByUuidAndCompanyId
in interface EmailAddressLocalService
uuid
- the email address's UUIDcompanyId
- the primary key of the companynull
if a matching email address could not be foundpublic ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery
in interface EmailAddressLocalService
public EmailAddress getEmailAddress(long emailAddressId) throws PortalException
getEmailAddress
in interface EmailAddressLocalService
emailAddressId
- the primary key of the email addressPortalException
- if a email address with the primary key could not be foundpublic EmailAddress getEmailAddressByUuidAndCompanyId(String uuid, long companyId) throws PortalException
getEmailAddressByUuidAndCompanyId
in interface EmailAddressLocalService
uuid
- the email address's UUIDcompanyId
- the primary key of the companyPortalException
- if a matching email address could not be foundpublic List<EmailAddress> getEmailAddresses()
getEmailAddresses
in interface EmailAddressLocalService
public List<EmailAddress> getEmailAddresses(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from EmailAddressModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
getEmailAddresses
in interface EmailAddressLocalService
start
- the lower bound of the range of email addressesend
- the upper bound of the range of email addresses (not inclusive)public List<EmailAddress> getEmailAddresses(long companyId, String className, long classPK)
getEmailAddresses
in interface EmailAddressLocalService
public int getEmailAddressesCount()
getEmailAddressesCount
in interface EmailAddressLocalService
public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
getExportActionableDynamicQuery
in interface EmailAddressLocalService
public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery
in interface EmailAddressLocalService
public String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface EmailAddressLocalService
public PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException
getPersistedModel
in interface EmailAddressLocalService
getPersistedModel
in interface PersistedModelLocalService
PortalException
public EmailAddress updateEmailAddress(EmailAddress emailAddress)
updateEmailAddress
in interface EmailAddressLocalService
emailAddress
- the email addresspublic EmailAddress updateEmailAddress(long emailAddressId, String address, long typeId, boolean primary) throws PortalException
updateEmailAddress
in interface EmailAddressLocalService
PortalException
public EmailAddressLocalService getWrappedService()
getWrappedService
in interface ServiceWrapper<EmailAddressLocalService>
public void setWrappedService(EmailAddressLocalService emailAddressLocalService)
setWrappedService
in interface ServiceWrapper<EmailAddressLocalService>