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.voiddeletePhones(long companyId, String className, long classPK) <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.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.intReturns the number of phones.voidsetWrappedService(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, waitMethods 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:
addPhonein 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:
addPhonein interfacePhoneLocalService- Throws:
PortalException
-
createPersistedModel
- Specified by:
createPersistedModelin interfacePersistedModelLocalService- Specified by:
createPersistedModelin interfacePhoneLocalService- Throws:
PortalExceptionPortalException
-
createPhone
Creates a new phone with the primary key. Does not add the phone to the database.- Specified by:
createPhonein interfacePhoneLocalService- Parameters:
phoneId- the primary key for the new phone- Returns:
- the new phone
-
deletePersistedModel
- Specified by:
deletePersistedModelin interfacePersistedModelLocalService- Specified by:
deletePersistedModelin interfacePhoneLocalService- Throws:
PortalExceptionPortalException
-
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:
deletePhonein 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:
deletePhonein interfacePhoneLocalService- Parameters:
phone- the phone- Returns:
- the phone that was removed
-
deletePhones
- Specified by:
deletePhonesin interfacePhoneLocalService
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryin interfacePersistedModelLocalService- Specified by:
dslQueryin interfacePhoneLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfacePersistedModelLocalService- Specified by:
dslQueryCountin interfacePhoneLocalService
-
dynamicQuery
- Specified by:
dynamicQueryin interfacePhoneLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQueryin 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 - 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.PhoneModelImpl.- Specified by:
dynamicQueryin 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 - 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.PhoneModelImpl.- Specified by:
dynamicQueryin 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:
dynamicQueryCountin 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:
dynamicQueryCountin 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:
fetchPhonein interfacePhoneLocalService
-
fetchPhoneByExternalReferenceCode
- Specified by:
fetchPhoneByExternalReferenceCodein interfacePhoneLocalService
-
fetchPhoneByUuidAndCompanyId
Returns the phone with the matching UUID and company.- Specified by:
fetchPhoneByUuidAndCompanyIdin interfacePhoneLocalService- Parameters:
uuid- the phone's UUIDcompanyId- the primary key of the company- Returns:
- the matching phone, or
nullif a matching phone could not be found
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQueryin interfacePhoneLocalService
-
getExportActionableDynamicQuery
public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQueryin interfacePhoneLocalService
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQueryin interfacePhoneLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifierin interfacePhoneLocalService- Returns:
- the OSGi service identifier
-
getPersistedModel
- Specified by:
getPersistedModelin interfacePersistedModelLocalService- Specified by:
getPersistedModelin interfacePhoneLocalService- Throws:
PortalExceptionPortalException
-
getPhone
Returns the phone with the primary key.- Specified by:
getPhonein 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:
getPhoneByExternalReferenceCodein interfacePhoneLocalService- Throws:
PortalException
-
getPhoneByUuidAndCompanyId
Returns the phone with the matching UUID and company.- Specified by:
getPhoneByUuidAndCompanyIdin 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:
getPhonesin interfacePhoneLocalService
-
getPhones
Returns a range of all the phones.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.PhoneModelImpl.- Specified by:
getPhonesin 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:
getPhonesin interfacePhoneLocalService
-
getPhonesCount
public int getPhonesCount()Returns the number of phones.- Specified by:
getPhonesCountin 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:
updatePhonein 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:
updatePhonein interfacePhoneLocalService- Throws:
PortalException
-
getBasePersistence
- Specified by:
getBasePersistencein interfacePersistedModelLocalService
-
getCTPersistence
- Specified by:
getCTPersistencein interfaceCTService<Phone>- Specified by:
getCTPersistencein interfacePhoneLocalService
-
getModelClass
- Specified by:
getModelClassin interfaceCTService<Phone>- Specified by:
getModelClassin interfacePhoneLocalService
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<Phone>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunctionin interfaceCTService<Phone>- Specified by:
updateWithUnsafeFunctionin interfacePhoneLocalService- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedServicein interfaceServiceWrapper<PhoneLocalService>
-
setWrappedService
- Specified by:
setWrappedServicein interfaceServiceWrapper<PhoneLocalService>
-