Class PhoneLocalServiceWrapper
- All Implemented Interfaces:
BaseLocalService
,CTService<Phone>
,PersistedModelLocalService
,PhoneLocalService
,ServiceWrapper<PhoneLocalService>
PhoneLocalService
.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds the phone to the database.addPhone
(String externalReferenceCode, long userId, String className, long classPK, String number, String extension, long listTypeId, boolean primary, ServiceContext serviceContext) createPersistedModel
(Serializable primaryKeyObj) createPhone
(long phoneId) Creates a new phone with the primary key.deletePersistedModel
(PersistedModel persistedModel) deletePhone
(long phoneId) Deletes the phone with the primary key from the database.deletePhone
(Phone phone) Deletes the phone from the database.void
deletePhones
(long companyId, String className, long classPK) <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.fetchPhone
(long phoneId) fetchPhoneByExternalReferenceCode
(String externalReferenceCode, long companyId) fetchPhoneByUuidAndCompanyId
(String uuid, long companyId) Returns the phone with the matching UUID and company.getExportActionableDynamicQuery
(PortletDataContext portletDataContext) Returns the OSGi service identifier.getPersistedModel
(Serializable primaryKeyObj) getPhone
(long phoneId) Returns the phone with the primary key.getPhoneByExternalReferenceCode
(String externalReferenceCode, long companyId) getPhoneByUuidAndCompanyId
(String uuid, long companyId) Returns the phone with the matching UUID and company.getPhones
(int start, int end) Returns a range of all the phones.int
Returns the number of phones.void
setWrappedService
(PhoneLocalService phoneLocalService) updatePhone
(Phone phone) Updates the phone in the database or adds it if it does not yet exist.updatePhone
(String externalReferenceCode, long phoneId, String number, String extension, long listTypeId, boolean primary) <R,
E extends Throwable>
RupdateWithUnsafeFunction
(com.liferay.petra.function.UnsafeFunction<CTPersistence<Phone>, 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
-
PhoneLocalServiceWrapper
public PhoneLocalServiceWrapper() -
PhoneLocalServiceWrapper
-
-
Method Details
-
addPhone
Adds the phone to the database. Also notifies the appropriate model listeners.Important: Inspect PhoneLocalServiceImpl 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:
addPhone
in interfacePhoneLocalService
- Parameters:
phone
- the phone- Returns:
- the phone that was added
-
addPhone
public Phone addPhone(String externalReferenceCode, long userId, String className, long classPK, String number, String extension, long listTypeId, boolean primary, ServiceContext serviceContext) throws PortalException - Specified by:
addPhone
in interfacePhoneLocalService
- Throws:
PortalException
-
createPersistedModel
- Specified by:
createPersistedModel
in interfacePersistedModelLocalService
- Specified by:
createPersistedModel
in interfacePhoneLocalService
- Throws:
PortalException
PortalException
-
createPhone
Creates a new phone with the primary key. Does not add the phone to the database.- Specified by:
createPhone
in interfacePhoneLocalService
- Parameters:
phoneId
- the primary key for the new phone- Returns:
- the new phone
-
deletePersistedModel
- Specified by:
deletePersistedModel
in interfacePersistedModelLocalService
- Specified by:
deletePersistedModel
in interfacePhoneLocalService
- Throws:
PortalException
PortalException
-
deletePhone
Deletes the phone with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect PhoneLocalServiceImpl 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:
deletePhone
in interfacePhoneLocalService
- Parameters:
phoneId
- the primary key of the phone- Returns:
- the phone that was removed
- Throws:
PortalException
- if a phone with the primary key could not be foundPortalException
-
deletePhone
Deletes the phone from the database. Also notifies the appropriate model listeners.Important: Inspect PhoneLocalServiceImpl 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:
deletePhone
in interfacePhoneLocalService
- Parameters:
phone
- the phone- Returns:
- the phone that was removed
-
deletePhones
- Specified by:
deletePhones
in interfacePhoneLocalService
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQuery
in interfacePersistedModelLocalService
- Specified by:
dslQuery
in interfacePhoneLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfacePersistedModelLocalService
- Specified by:
dslQueryCount
in interfacePhoneLocalService
-
dynamicQuery
- Specified by:
dynamicQuery
in interfacePhoneLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in interfacePhoneLocalService
- 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.PhoneModelImpl
.- Specified by:
dynamicQuery
in interfacePhoneLocalService
- 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.PhoneModelImpl
.- Specified by:
dynamicQuery
in interfacePhoneLocalService
- 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 interfacePhoneLocalService
- 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 interfacePhoneLocalService
- Parameters:
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchPhone
- Specified by:
fetchPhone
in interfacePhoneLocalService
-
fetchPhoneByExternalReferenceCode
- Specified by:
fetchPhoneByExternalReferenceCode
in interfacePhoneLocalService
-
fetchPhoneByUuidAndCompanyId
Returns the phone with the matching UUID and company.- Specified by:
fetchPhoneByUuidAndCompanyId
in interfacePhoneLocalService
- Parameters:
uuid
- the phone's UUIDcompanyId
- the primary key of the company- Returns:
- the matching phone, or
null
if a matching phone could not be found
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQuery
in interfacePhoneLocalService
-
getExportActionableDynamicQuery
public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQuery
in interfacePhoneLocalService
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQuery
in interfacePhoneLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfacePhoneLocalService
- Returns:
- the OSGi service identifier
-
getPersistedModel
- Specified by:
getPersistedModel
in interfacePersistedModelLocalService
- Specified by:
getPersistedModel
in interfacePhoneLocalService
- Throws:
PortalException
PortalException
-
getPhone
Returns the phone with the primary key.- Specified by:
getPhone
in interfacePhoneLocalService
- Parameters:
phoneId
- the primary key of the phone- Returns:
- the phone
- Throws:
PortalException
- if a phone with the primary key could not be foundPortalException
-
getPhoneByExternalReferenceCode
public Phone getPhoneByExternalReferenceCode(String externalReferenceCode, long companyId) throws PortalException - Specified by:
getPhoneByExternalReferenceCode
in interfacePhoneLocalService
- Throws:
PortalException
-
getPhoneByUuidAndCompanyId
Returns the phone with the matching UUID and company.- Specified by:
getPhoneByUuidAndCompanyId
in interfacePhoneLocalService
- Parameters:
uuid
- the phone's UUIDcompanyId
- the primary key of the company- Returns:
- the matching phone
- Throws:
PortalException
- if a matching phone could not be foundPortalException
-
getPhones
- Specified by:
getPhones
in interfacePhoneLocalService
-
getPhones
Returns a range of all the phones.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.PhoneModelImpl
.- Specified by:
getPhones
in interfacePhoneLocalService
- Parameters:
start
- the lower bound of the range of phonesend
- the upper bound of the range of phones (not inclusive)- Returns:
- the range of phones
-
getPhones
- Specified by:
getPhones
in interfacePhoneLocalService
-
getPhonesCount
public int getPhonesCount()Returns the number of phones.- Specified by:
getPhonesCount
in interfacePhoneLocalService
- Returns:
- the number of phones
-
updatePhone
Updates the phone in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect PhoneLocalServiceImpl 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:
updatePhone
in interfacePhoneLocalService
- Parameters:
phone
- the phone- Returns:
- the phone that was updated
-
updatePhone
public Phone updatePhone(String externalReferenceCode, long phoneId, String number, String extension, long listTypeId, boolean primary) throws PortalException - Specified by:
updatePhone
in interfacePhoneLocalService
- Throws:
PortalException
-
getBasePersistence
- Specified by:
getBasePersistence
in interfacePersistedModelLocalService
-
getCTPersistence
- Specified by:
getCTPersistence
in interfaceCTService<Phone>
- Specified by:
getCTPersistence
in interfacePhoneLocalService
-
getModelClass
- Specified by:
getModelClass
in interfaceCTService<Phone>
- Specified by:
getModelClass
in interfacePhoneLocalService
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<Phone>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunction
in interfaceCTService<Phone>
- Specified by:
updateWithUnsafeFunction
in interfacePhoneLocalService
- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedService
in interfaceServiceWrapper<PhoneLocalService>
-
setWrappedService
- Specified by:
setWrappedService
in interfaceServiceWrapper<PhoneLocalService>
-