Interface AnnouncementsDeliveryLocalService
- All Superinterfaces:
BaseLocalService,CTService<AnnouncementsDelivery>,PersistedModelLocalService
- All Known Implementing Classes:
AnnouncementsDeliveryLocalServiceWrapper
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Method Summary
Modifier and TypeMethodDescriptionaddAnnouncementsDelivery(AnnouncementsDelivery announcementsDelivery) Adds the announcements delivery to the database.addUserDelivery(long userId, String type) createAnnouncementsDelivery(long deliveryId) Creates a new announcements delivery with the primary key.createPersistedModel(Serializable primaryKeyObj) deleteAnnouncementsDelivery(long deliveryId) Deletes the announcements delivery with the primary key from the database.deleteAnnouncementsDelivery(AnnouncementsDelivery announcementsDelivery) Deletes the announcements delivery from the database.voiddeleteDeliveries(long userId) voiddeleteDelivery(long deliveryId) voiddeleteDelivery(long userId, String type) voiddeleteDelivery(AnnouncementsDelivery delivery) 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.fetchAnnouncementsDelivery(long deliveryId) getAnnouncementsDeliveries(int start, int end) Returns a range of all the announcements deliveries.intReturns the number of announcements deliveries.getAnnouncementsDelivery(long deliveryId) Returns the announcements delivery with the primary key.getDelivery(long deliveryId) Returns the OSGi service identifier.getPersistedModel(Serializable primaryKeyObj) getUserDeliveries(long userId) getUserDelivery(long userId, String type) updateAnnouncementsDelivery(AnnouncementsDelivery announcementsDelivery) Updates the announcements delivery in the database or adds it if it does not yet exist.updateDelivery(long userId, String type, boolean email, boolean sms) <R,E extends Throwable>
RupdateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<AnnouncementsDelivery>, R, E> updateUnsafeFunction) Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel, getBasePersistence
-
Method Details
-
addAnnouncementsDelivery
@Indexable(type=REINDEX) AnnouncementsDelivery addAnnouncementsDelivery(AnnouncementsDelivery announcementsDelivery) Adds the announcements delivery to the database. Also notifies the appropriate model listeners.Important: Inspect AnnouncementsDeliveryLocalServiceImpl 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.
- Parameters:
announcementsDelivery- the announcements delivery- Returns:
- the announcements delivery that was added
-
addUserDelivery
- Throws:
PortalException
-
createAnnouncementsDelivery
Creates a new announcements delivery with the primary key. Does not add the announcements delivery to the database.- Parameters:
deliveryId- the primary key for the new announcements delivery- Returns:
- the new announcements delivery
-
createPersistedModel
- Specified by:
createPersistedModelin interfacePersistedModelLocalService- Throws:
PortalException
-
deleteAnnouncementsDelivery
@Indexable(type=DELETE) AnnouncementsDelivery deleteAnnouncementsDelivery(AnnouncementsDelivery announcementsDelivery) Deletes the announcements delivery from the database. Also notifies the appropriate model listeners.Important: Inspect AnnouncementsDeliveryLocalServiceImpl 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.
- Parameters:
announcementsDelivery- the announcements delivery- Returns:
- the announcements delivery that was removed
-
deleteAnnouncementsDelivery
@Indexable(type=DELETE) AnnouncementsDelivery deleteAnnouncementsDelivery(long deliveryId) throws PortalException Deletes the announcements delivery with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect AnnouncementsDeliveryLocalServiceImpl 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.
- Parameters:
deliveryId- the primary key of the announcements delivery- Returns:
- the announcements delivery that was removed
- Throws:
PortalException- if a announcements delivery with the primary key could not be found
-
deleteDeliveries
void deleteDeliveries(long userId) -
deleteDelivery
-
deleteDelivery
- Throws:
PortalException
-
deleteDelivery
-
deletePersistedModel
- Specified by:
deletePersistedModelin interfacePersistedModelLocalService- Throws:
PortalException
-
dslQuery
@Transactional(propagation=SUPPORTS, readOnly=true) <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryin interfacePersistedModelLocalService
-
dslQueryCount
@Transactional(propagation=SUPPORTS, readOnly=true) int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfacePersistedModelLocalService
-
dynamicQuery
-
dynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.- Parameters:
dynamicQuery- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) <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.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.portlet.announcements.model.impl.AnnouncementsDeliveryModelImpl.- 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
@Transactional(propagation=SUPPORTS, readOnly=true) <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.portlet.announcements.model.impl.AnnouncementsDeliveryModelImpl.- 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
@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.- Parameters:
dynamicQuery- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection) Returns the number of rows matching the dynamic query.- Parameters:
dynamicQuery- the dynamic queryprojection- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchAnnouncementsDelivery
@Transactional(propagation=SUPPORTS, readOnly=true) AnnouncementsDelivery fetchAnnouncementsDelivery(long deliveryId) -
getActionableDynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) ActionableDynamicQuery getActionableDynamicQuery() -
getAnnouncementsDeliveries
@Transactional(propagation=SUPPORTS, readOnly=true) List<AnnouncementsDelivery> getAnnouncementsDeliveries(int start, int end) Returns a range of all the announcements deliveries.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.portlet.announcements.model.impl.AnnouncementsDeliveryModelImpl.- Parameters:
start- the lower bound of the range of announcements deliveriesend- the upper bound of the range of announcements deliveries (not inclusive)- Returns:
- the range of announcements deliveries
-
getAnnouncementsDeliveriesCount
Returns the number of announcements deliveries.- Returns:
- the number of announcements deliveries
-
getAnnouncementsDelivery
@Transactional(propagation=SUPPORTS, readOnly=true) AnnouncementsDelivery getAnnouncementsDelivery(long deliveryId) throws PortalException Returns the announcements delivery with the primary key.- Parameters:
deliveryId- the primary key of the announcements delivery- Returns:
- the announcements delivery
- Throws:
PortalException- if a announcements delivery with the primary key could not be found
-
getDelivery
@Transactional(propagation=SUPPORTS, readOnly=true) AnnouncementsDelivery getDelivery(long deliveryId) throws PortalException - Throws:
PortalException
-
getIndexableActionableDynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() -
getOSGiServiceIdentifier
String getOSGiServiceIdentifier()Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getPersistedModel
@Transactional(propagation=SUPPORTS, readOnly=true) PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException - Specified by:
getPersistedModelin interfacePersistedModelLocalService- Throws:
PortalException
-
getUserDeliveries
@Transactional(propagation=SUPPORTS, readOnly=true) List<AnnouncementsDelivery> getUserDeliveries(long userId) throws PortalException - Throws:
PortalException
-
getUserDelivery
@Transactional(propagation=SUPPORTS, readOnly=true) AnnouncementsDelivery getUserDelivery(long userId, String type) throws PortalException - Throws:
PortalException
-
updateAnnouncementsDelivery
@Indexable(type=REINDEX) AnnouncementsDelivery updateAnnouncementsDelivery(AnnouncementsDelivery announcementsDelivery) Updates the announcements delivery in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect AnnouncementsDeliveryLocalServiceImpl 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.
- Parameters:
announcementsDelivery- the announcements delivery- Returns:
- the announcements delivery that was updated
-
updateDelivery
AnnouncementsDelivery updateDelivery(long userId, String type, boolean email, boolean sms) throws PortalException - Throws:
PortalException
-
getCTPersistence
- Specified by:
getCTPersistencein interfaceCTService<AnnouncementsDelivery>
-
getModelClass
- Specified by:
getModelClassin interfaceCTService<AnnouncementsDelivery>
-
updateWithUnsafeFunction
@Transactional(rollbackFor=java.lang.Throwable.class) <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<AnnouncementsDelivery>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunctionin interfaceCTService<AnnouncementsDelivery>- Throws:
E extends Throwable
-