Interface ReadingTimeEntryLocalService
- All Superinterfaces:
com.liferay.portal.kernel.service.BaseLocalService,com.liferay.portal.kernel.service.change.tracking.CTService<ReadingTimeEntry>,com.liferay.portal.kernel.service.PersistedModelLocalService
- All Known Implementing Classes:
ReadingTimeEntryLocalServiceWrapper
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionaddReadingTimeEntry(long groupId, long classNameId, long classPK, Duration readingTimeDuration) addReadingTimeEntry(com.liferay.portal.kernel.model.GroupedModel groupedModel, Duration readingTimeDuration) addReadingTimeEntry(ReadingTimeEntry readingTimeEntry) Adds the reading time entry to the database.com.liferay.portal.kernel.model.PersistedModelcreatePersistedModel(Serializable primaryKeyObj) createReadingTimeEntry(long readingTimeEntryId) Creates a new reading time entry with the primary key.com.liferay.portal.kernel.model.PersistedModeldeletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) deleteReadingTimeEntry(long readingTimeEntryId) Deletes the reading time entry with the primary key from the database.deleteReadingTimeEntry(long groupId, long classNameId, long classPK) deleteReadingTimeEntry(com.liferay.portal.kernel.model.GroupedModel groupedModel) deleteReadingTimeEntry(ReadingTimeEntry readingTimeEntry) Deletes the reading time entry from the database.<T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) intdslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) com.liferay.portal.kernel.dao.orm.DynamicQuery<T> List<T>dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<T> List<T>dynamicQuery(com.liferay.portal.kernel.dao.orm.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(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) Performs a dynamic query on the database and returns an ordered range of the matching rows.longdynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.longdynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection) Returns the number of rows matching the dynamic query.fetchOrAddReadingTimeEntry(com.liferay.portal.kernel.model.GroupedModel groupedModel) fetchReadingTimeEntry(long readingTimeEntryId) fetchReadingTimeEntry(long groupId, long classNameId, long classPK) fetchReadingTimeEntry(com.liferay.portal.kernel.model.GroupedModel groupedModel) fetchReadingTimeEntryByUuidAndGroupId(String uuid, long groupId) Returns the reading time entry matching the UUID and group.com.liferay.portal.kernel.dao.orm.ActionableDynamicQuerycom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<ReadingTimeEntry>com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuerygetExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQueryReturns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModelgetPersistedModel(Serializable primaryKeyObj) getReadingTimeEntries(int start, int end) Returns a range of all the reading time entries.getReadingTimeEntriesByUuidAndCompanyId(String uuid, long companyId) Returns all the reading time entries matching the UUID and company.getReadingTimeEntriesByUuidAndCompanyId(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> orderByComparator) Returns a range of reading time entries matching the UUID and company.intReturns the number of reading time entries.getReadingTimeEntry(long readingTimeEntryId) Returns the reading time entry with the primary key.getReadingTimeEntryByUuidAndGroupId(String uuid, long groupId) Returns the reading time entry matching the UUID and group.updateReadingTimeEntry(long groupId, long classNameId, long classPK, Duration readingTimeDuration) updateReadingTimeEntry(com.liferay.portal.kernel.model.GroupedModel groupedModel) updateReadingTimeEntry(ReadingTimeEntry readingTimeEntry) Updates the reading time entry in the database or adds it if it does not yet exist.<R,E extends Throwable>
RupdateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<ReadingTimeEntry>, R, E> updateUnsafeFunction) Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel, getBasePersistence
-
Method Details
-
addReadingTimeEntry
ReadingTimeEntry addReadingTimeEntry(com.liferay.portal.kernel.model.GroupedModel groupedModel, Duration readingTimeDuration) -
addReadingTimeEntry
ReadingTimeEntry addReadingTimeEntry(long groupId, long classNameId, long classPK, Duration readingTimeDuration) -
addReadingTimeEntry
Adds the reading time entry to the database. Also notifies the appropriate model listeners.Important: Inspect ReadingTimeEntryLocalServiceImpl 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:
readingTimeEntry- the reading time entry- Returns:
- the reading time entry that was added
-
createPersistedModel
com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
createPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
createReadingTimeEntry
Creates a new reading time entry with the primary key. Does not add the reading time entry to the database.- Parameters:
readingTimeEntryId- the primary key for the new reading time entry- Returns:
- the new reading time entry
-
deletePersistedModel
com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deletePersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteReadingTimeEntry
-
deleteReadingTimeEntry
@Indexable(type=DELETE) ReadingTimeEntry deleteReadingTimeEntry(long readingTimeEntryId) throws com.liferay.portal.kernel.exception.PortalException Deletes the reading time entry with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect ReadingTimeEntryLocalServiceImpl 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:
readingTimeEntryId- the primary key of the reading time entry- Returns:
- the reading time entry that was removed
- Throws:
com.liferay.portal.kernel.exception.PortalException- if a reading time entry with the primary key could not be found
-
deleteReadingTimeEntry
-
deleteReadingTimeEntry
Deletes the reading time entry from the database. Also notifies the appropriate model listeners.Important: Inspect ReadingTimeEntryLocalServiceImpl 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:
readingTimeEntry- the reading time entry- Returns:
- the reading time entry that was removed
-
dslQuery
@Transactional(propagation=SUPPORTS, readOnly=true) <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dslQueryCount
@Transactional(propagation=SUPPORTS, readOnly=true) int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() -
dynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.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(com.liferay.portal.kernel.dao.orm.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.reading.time.model.impl.ReadingTimeEntryModelImpl.- 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(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.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.reading.time.model.impl.ReadingTimeEntryModelImpl.- 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(com.liferay.portal.kernel.dao.orm.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(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.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
-
fetchOrAddReadingTimeEntry
@Transactional(propagation=SUPPORTS, readOnly=true) ReadingTimeEntry fetchOrAddReadingTimeEntry(com.liferay.portal.kernel.model.GroupedModel groupedModel) -
fetchReadingTimeEntry
@Transactional(propagation=SUPPORTS, readOnly=true) ReadingTimeEntry fetchReadingTimeEntry(com.liferay.portal.kernel.model.GroupedModel groupedModel) -
fetchReadingTimeEntry
@Transactional(propagation=SUPPORTS, readOnly=true) ReadingTimeEntry fetchReadingTimeEntry(long readingTimeEntryId) -
fetchReadingTimeEntry
@Transactional(propagation=SUPPORTS, readOnly=true) ReadingTimeEntry fetchReadingTimeEntry(long groupId, long classNameId, long classPK) -
fetchReadingTimeEntryByUuidAndGroupId
@Transactional(propagation=SUPPORTS, readOnly=true) ReadingTimeEntry fetchReadingTimeEntryByUuidAndGroupId(String uuid, long groupId) Returns the reading time entry matching the UUID and group.- Parameters:
uuid- the reading time entry's UUIDgroupId- the primary key of the group- Returns:
- the matching reading time entry, or
nullif a matching reading time entry could not be found
-
getActionableDynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() -
getExportActionableDynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) -
getIndexableActionableDynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() -
getOSGiServiceIdentifier
String getOSGiServiceIdentifier()Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getPersistedModel
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getReadingTimeEntries
@Transactional(propagation=SUPPORTS, readOnly=true) List<ReadingTimeEntry> getReadingTimeEntries(int start, int end) Returns a range of all the reading time entries.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.reading.time.model.impl.ReadingTimeEntryModelImpl.- Parameters:
start- the lower bound of the range of reading time entriesend- the upper bound of the range of reading time entries (not inclusive)- Returns:
- the range of reading time entries
-
getReadingTimeEntriesByUuidAndCompanyId
@Transactional(propagation=SUPPORTS, readOnly=true) List<ReadingTimeEntry> getReadingTimeEntriesByUuidAndCompanyId(String uuid, long companyId) Returns all the reading time entries matching the UUID and company.- Parameters:
uuid- the UUID of the reading time entriescompanyId- the primary key of the company- Returns:
- the matching reading time entries, or an empty list if no matches were found
-
getReadingTimeEntriesByUuidAndCompanyId
@Transactional(propagation=SUPPORTS, readOnly=true) List<ReadingTimeEntry> getReadingTimeEntriesByUuidAndCompanyId(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ReadingTimeEntry> orderByComparator) Returns a range of reading time entries matching the UUID and company.- Parameters:
uuid- the UUID of the reading time entriescompanyId- the primary key of the companystart- the lower bound of the range of reading time entriesend- the upper bound of the range of reading time entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the range of matching reading time entries, or an empty list if no matches were found
-
getReadingTimeEntriesCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getReadingTimeEntriesCount()Returns the number of reading time entries.- Returns:
- the number of reading time entries
-
getReadingTimeEntry
@Transactional(propagation=SUPPORTS, readOnly=true) ReadingTimeEntry getReadingTimeEntry(long readingTimeEntryId) throws com.liferay.portal.kernel.exception.PortalException Returns the reading time entry with the primary key.- Parameters:
readingTimeEntryId- the primary key of the reading time entry- Returns:
- the reading time entry
- Throws:
com.liferay.portal.kernel.exception.PortalException- if a reading time entry with the primary key could not be found
-
getReadingTimeEntryByUuidAndGroupId
@Transactional(propagation=SUPPORTS, readOnly=true) ReadingTimeEntry getReadingTimeEntryByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException Returns the reading time entry matching the UUID and group.- Parameters:
uuid- the reading time entry's UUIDgroupId- the primary key of the group- Returns:
- the matching reading time entry
- Throws:
com.liferay.portal.kernel.exception.PortalException- if a matching reading time entry could not be found
-
updateReadingTimeEntry
-
updateReadingTimeEntry
ReadingTimeEntry updateReadingTimeEntry(long groupId, long classNameId, long classPK, Duration readingTimeDuration) -
updateReadingTimeEntry
Updates the reading time entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect ReadingTimeEntryLocalServiceImpl 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:
readingTimeEntry- the reading time entry- Returns:
- the reading time entry that was updated
-
getCTPersistence
@Transactional(enabled=false) com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<ReadingTimeEntry> getCTPersistence()- Specified by:
getCTPersistencein interfacecom.liferay.portal.kernel.service.change.tracking.CTService<ReadingTimeEntry>
-
getModelClass
- Specified by:
getModelClassin interfacecom.liferay.portal.kernel.service.change.tracking.CTService<ReadingTimeEntry>
-
updateWithUnsafeFunction
@Transactional(rollbackFor=java.lang.Throwable.class) <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<ReadingTimeEntry>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunctionin interfacecom.liferay.portal.kernel.service.change.tracking.CTService<ReadingTimeEntry>- Throws:
E extends Throwable
-