Class ReadingTimeEntryLocalServiceWrapper

java.lang.Object
com.liferay.reading.time.service.ReadingTimeEntryLocalServiceWrapper
All Implemented Interfaces:
com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.change.tracking.CTService<ReadingTimeEntry>, com.liferay.portal.kernel.service.PersistedModelLocalService, com.liferay.portal.kernel.service.ServiceWrapper<ReadingTimeEntryLocalService>, ReadingTimeEntryLocalService

public class ReadingTimeEntryLocalServiceWrapper extends Object implements ReadingTimeEntryLocalService, com.liferay.portal.kernel.service.ServiceWrapper<ReadingTimeEntryLocalService>
Provides a wrapper for ReadingTimeEntryLocalService.
See Also:
Generated:
  • Constructor Details

    • ReadingTimeEntryLocalServiceWrapper

      public ReadingTimeEntryLocalServiceWrapper()
    • ReadingTimeEntryLocalServiceWrapper

      public ReadingTimeEntryLocalServiceWrapper(ReadingTimeEntryLocalService readingTimeEntryLocalService)
  • Method Details

    • addReadingTimeEntry

      public ReadingTimeEntry addReadingTimeEntry(com.liferay.portal.kernel.model.GroupedModel groupedModel, Duration readingTimeDuration)
      Specified by:
      addReadingTimeEntry in interface ReadingTimeEntryLocalService
    • addReadingTimeEntry

      public ReadingTimeEntry addReadingTimeEntry(long groupId, long classNameId, long classPK, Duration readingTimeDuration)
      Specified by:
      addReadingTimeEntry in interface ReadingTimeEntryLocalService
    • addReadingTimeEntry

      public ReadingTimeEntry addReadingTimeEntry(ReadingTimeEntry readingTimeEntry)
      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.

      Specified by:
      addReadingTimeEntry in interface ReadingTimeEntryLocalService
      Parameters:
      readingTimeEntry - the reading time entry
      Returns:
      the reading time entry that was added
    • createPersistedModel

      public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      createPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Specified by:
      createPersistedModel in interface ReadingTimeEntryLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • createReadingTimeEntry

      public ReadingTimeEntry createReadingTimeEntry(long readingTimeEntryId)
      Creates a new reading time entry with the primary key. Does not add the reading time entry to the database.
      Specified by:
      createReadingTimeEntry in interface ReadingTimeEntryLocalService
      Parameters:
      readingTimeEntryId - the primary key for the new reading time entry
      Returns:
      the new reading time entry
    • deletePersistedModel

      public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Specified by:
      deletePersistedModel in interface ReadingTimeEntryLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • deleteReadingTimeEntry

      public ReadingTimeEntry deleteReadingTimeEntry(com.liferay.portal.kernel.model.GroupedModel groupedModel)
      Specified by:
      deleteReadingTimeEntry in interface ReadingTimeEntryLocalService
    • deleteReadingTimeEntry

      public 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.

      Specified by:
      deleteReadingTimeEntry in interface ReadingTimeEntryLocalService
      Parameters:
      readingTimeEntryId - the primary key of the reading time entry
      Returns:
      the reading time entry that was removed
      Throws:
      PortalException - if a reading time entry with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • deleteReadingTimeEntry

      public ReadingTimeEntry deleteReadingTimeEntry(long groupId, long classNameId, long classPK)
      Specified by:
      deleteReadingTimeEntry in interface ReadingTimeEntryLocalService
    • deleteReadingTimeEntry

      public ReadingTimeEntry deleteReadingTimeEntry(ReadingTimeEntry readingTimeEntry)
      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.

      Specified by:
      deleteReadingTimeEntry in interface ReadingTimeEntryLocalService
      Parameters:
      readingTimeEntry - the reading time entry
      Returns:
      the reading time entry that was removed
    • dslQuery

      public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQuery in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Specified by:
      dslQuery in interface ReadingTimeEntryLocalService
    • dslQueryCount

      public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQueryCount in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Specified by:
      dslQueryCount in interface ReadingTimeEntryLocalService
    • dynamicQuery

      public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
      Specified by:
      dynamicQuery in interface ReadingTimeEntryLocalService
    • dynamicQuery

      public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Performs a dynamic query on the database and returns the matching rows.
      Specified by:
      dynamicQuery in interface ReadingTimeEntryLocalService
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the matching rows
    • dynamicQuery

      public <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 - 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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.reading.time.model.impl.ReadingTimeEntryModelImpl.

      Specified by:
      dynamicQuery in interface ReadingTimeEntryLocalService
      Parameters:
      dynamicQuery - the dynamic query
      start - the lower bound of the range of model instances
      end - the upper bound of the range of model instances (not inclusive)
      Returns:
      the range of matching rows
    • dynamicQuery

      public <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 - 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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.reading.time.model.impl.ReadingTimeEntryModelImpl.

      Specified by:
      dynamicQuery in interface ReadingTimeEntryLocalService
      Parameters:
      dynamicQuery - the dynamic query
      start - the lower bound of the range of model instances
      end - the upper bound of the range of model instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching rows
    • dynamicQueryCount

      public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Returns the number of rows matching the dynamic query.
      Specified by:
      dynamicQueryCount in interface ReadingTimeEntryLocalService
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the number of rows matching the dynamic query
    • dynamicQueryCount

      public 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.
      Specified by:
      dynamicQueryCount in interface ReadingTimeEntryLocalService
      Parameters:
      dynamicQuery - the dynamic query
      projection - the projection to apply to the query
      Returns:
      the number of rows matching the dynamic query
    • fetchOrAddReadingTimeEntry

      public ReadingTimeEntry fetchOrAddReadingTimeEntry(com.liferay.portal.kernel.model.GroupedModel groupedModel)
      Specified by:
      fetchOrAddReadingTimeEntry in interface ReadingTimeEntryLocalService
    • fetchReadingTimeEntry

      public ReadingTimeEntry fetchReadingTimeEntry(com.liferay.portal.kernel.model.GroupedModel groupedModel)
      Specified by:
      fetchReadingTimeEntry in interface ReadingTimeEntryLocalService
    • fetchReadingTimeEntry

      public ReadingTimeEntry fetchReadingTimeEntry(long readingTimeEntryId)
      Specified by:
      fetchReadingTimeEntry in interface ReadingTimeEntryLocalService
    • fetchReadingTimeEntry

      public ReadingTimeEntry fetchReadingTimeEntry(long groupId, long classNameId, long classPK)
      Specified by:
      fetchReadingTimeEntry in interface ReadingTimeEntryLocalService
    • fetchReadingTimeEntryByUuidAndGroupId

      public ReadingTimeEntry fetchReadingTimeEntryByUuidAndGroupId(String uuid, long groupId)
      Returns the reading time entry matching the UUID and group.
      Specified by:
      fetchReadingTimeEntryByUuidAndGroupId in interface ReadingTimeEntryLocalService
      Parameters:
      uuid - the reading time entry's UUID
      groupId - the primary key of the group
      Returns:
      the matching reading time entry, or null if a matching reading time entry could not be found
    • getActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
      Specified by:
      getActionableDynamicQuery in interface ReadingTimeEntryLocalService
    • getExportActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
      Specified by:
      getExportActionableDynamicQuery in interface ReadingTimeEntryLocalService
    • getIndexableActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
      Specified by:
      getIndexableActionableDynamicQuery in interface ReadingTimeEntryLocalService
    • getOSGiServiceIdentifier

      public String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Specified by:
      getOSGiServiceIdentifier in interface ReadingTimeEntryLocalService
      Returns:
      the OSGi service identifier
    • getPersistedModel

      public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Specified by:
      getPersistedModel in interface ReadingTimeEntryLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • getReadingTimeEntries

      public 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 - 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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.reading.time.model.impl.ReadingTimeEntryModelImpl.

      Specified by:
      getReadingTimeEntries in interface ReadingTimeEntryLocalService
      Parameters:
      start - the lower bound of the range of reading time entries
      end - the upper bound of the range of reading time entries (not inclusive)
      Returns:
      the range of reading time entries
    • getReadingTimeEntriesByUuidAndCompanyId

      public List<ReadingTimeEntry> getReadingTimeEntriesByUuidAndCompanyId(String uuid, long companyId)
      Returns all the reading time entries matching the UUID and company.
      Specified by:
      getReadingTimeEntriesByUuidAndCompanyId in interface ReadingTimeEntryLocalService
      Parameters:
      uuid - the UUID of the reading time entries
      companyId - the primary key of the company
      Returns:
      the matching reading time entries, or an empty list if no matches were found
    • getReadingTimeEntriesByUuidAndCompanyId

      public 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.
      Specified by:
      getReadingTimeEntriesByUuidAndCompanyId in interface ReadingTimeEntryLocalService
      Parameters:
      uuid - the UUID of the reading time entries
      companyId - the primary key of the company
      start - the lower bound of the range of reading time entries
      end - the upper bound of the range of reading time entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the range of matching reading time entries, or an empty list if no matches were found
    • getReadingTimeEntriesCount

      public int getReadingTimeEntriesCount()
      Returns the number of reading time entries.
      Specified by:
      getReadingTimeEntriesCount in interface ReadingTimeEntryLocalService
      Returns:
      the number of reading time entries
    • getReadingTimeEntry

      public ReadingTimeEntry getReadingTimeEntry(long readingTimeEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the reading time entry with the primary key.
      Specified by:
      getReadingTimeEntry in interface ReadingTimeEntryLocalService
      Parameters:
      readingTimeEntryId - the primary key of the reading time entry
      Returns:
      the reading time entry
      Throws:
      PortalException - if a reading time entry with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getReadingTimeEntryByUuidAndGroupId

      public ReadingTimeEntry getReadingTimeEntryByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the reading time entry matching the UUID and group.
      Specified by:
      getReadingTimeEntryByUuidAndGroupId in interface ReadingTimeEntryLocalService
      Parameters:
      uuid - the reading time entry's UUID
      groupId - the primary key of the group
      Returns:
      the matching reading time entry
      Throws:
      PortalException - if a matching reading time entry could not be found
      com.liferay.portal.kernel.exception.PortalException
    • updateReadingTimeEntry

      public ReadingTimeEntry updateReadingTimeEntry(com.liferay.portal.kernel.model.GroupedModel groupedModel)
      Specified by:
      updateReadingTimeEntry in interface ReadingTimeEntryLocalService
    • updateReadingTimeEntry

      public ReadingTimeEntry updateReadingTimeEntry(long groupId, long classNameId, long classPK, Duration readingTimeDuration)
      Specified by:
      updateReadingTimeEntry in interface ReadingTimeEntryLocalService
    • updateReadingTimeEntry

      public ReadingTimeEntry updateReadingTimeEntry(ReadingTimeEntry readingTimeEntry)
      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.

      Specified by:
      updateReadingTimeEntry in interface ReadingTimeEntryLocalService
      Parameters:
      readingTimeEntry - the reading time entry
      Returns:
      the reading time entry that was updated
    • getBasePersistence

      public com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()
      Specified by:
      getBasePersistence in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • getCTPersistence

      public com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<ReadingTimeEntry> getCTPersistence()
      Specified by:
      getCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<ReadingTimeEntry>
      Specified by:
      getCTPersistence in interface ReadingTimeEntryLocalService
    • getModelClass

      public Class<ReadingTimeEntry> getModelClass()
      Specified by:
      getModelClass in interface com.liferay.portal.kernel.service.change.tracking.CTService<ReadingTimeEntry>
      Specified by:
      getModelClass in interface ReadingTimeEntryLocalService
    • updateWithUnsafeFunction

      public <R, E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<ReadingTimeEntry>,R,E> updateUnsafeFunction) throws E
      Specified by:
      updateWithUnsafeFunction in interface com.liferay.portal.kernel.service.change.tracking.CTService<ReadingTimeEntry>
      Specified by:
      updateWithUnsafeFunction in interface ReadingTimeEntryLocalService
      Throws:
      E extends Throwable
    • getWrappedService

      public ReadingTimeEntryLocalService getWrappedService()
      Specified by:
      getWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<ReadingTimeEntryLocalService>
    • setWrappedService

      public void setWrappedService(ReadingTimeEntryLocalService readingTimeEntryLocalService)
      Specified by:
      setWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<ReadingTimeEntryLocalService>