Class CSDiagramEntryLocalServiceWrapper

java.lang.Object
com.liferay.commerce.shop.by.diagram.service.CSDiagramEntryLocalServiceWrapper
All Implemented Interfaces:
CSDiagramEntryLocalService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.change.tracking.CTService<CSDiagramEntry>, com.liferay.portal.kernel.service.PersistedModelLocalService, com.liferay.portal.kernel.service.ServiceWrapper<CSDiagramEntryLocalService>

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

    • CSDiagramEntryLocalServiceWrapper

      public CSDiagramEntryLocalServiceWrapper()
    • CSDiagramEntryLocalServiceWrapper

      public CSDiagramEntryLocalServiceWrapper(CSDiagramEntryLocalService csDiagramEntryLocalService)
  • Method Details

    • addCSDiagramEntry

      public CSDiagramEntry addCSDiagramEntry(CSDiagramEntry csDiagramEntry)
      Adds the cs diagram entry to the database. Also notifies the appropriate model listeners.

      Important: Inspect CSDiagramEntryLocalServiceImpl 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:
      addCSDiagramEntry in interface CSDiagramEntryLocalService
      Parameters:
      csDiagramEntry - the cs diagram entry
      Returns:
      the cs diagram entry that was added
    • addCSDiagramEntry

      public CSDiagramEntry addCSDiagramEntry(long userId, long cpDefinitionId, long cpInstanceId, long cProductId, boolean diagram, int quantity, String sequence, String sku, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addCSDiagramEntry in interface CSDiagramEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • createCSDiagramEntry

      public CSDiagramEntry createCSDiagramEntry(long CSDiagramEntryId)
      Creates a new cs diagram entry with the primary key. Does not add the cs diagram entry to the database.
      Specified by:
      createCSDiagramEntry in interface CSDiagramEntryLocalService
      Parameters:
      CSDiagramEntryId - the primary key for the new cs diagram entry
      Returns:
      the new cs diagram entry
    • createPersistedModel

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

      public void deleteCSDiagramEntries(long cpDefinitionId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteCSDiagramEntries in interface CSDiagramEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteCSDiagramEntry

      public CSDiagramEntry deleteCSDiagramEntry(CSDiagramEntry csDiagramEntry) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the cs diagram entry from the database. Also notifies the appropriate model listeners.

      Important: Inspect CSDiagramEntryLocalServiceImpl 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:
      deleteCSDiagramEntry in interface CSDiagramEntryLocalService
      Parameters:
      csDiagramEntry - the cs diagram entry
      Returns:
      the cs diagram entry that was removed
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • deleteCSDiagramEntry

      public CSDiagramEntry deleteCSDiagramEntry(long CSDiagramEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the cs diagram entry with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect CSDiagramEntryLocalServiceImpl 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:
      deleteCSDiagramEntry in interface CSDiagramEntryLocalService
      Parameters:
      CSDiagramEntryId - the primary key of the cs diagram entry
      Returns:
      the cs diagram entry that was removed
      Throws:
      PortalException - if a cs diagram entry with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • 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 CSDiagramEntryLocalService
      Specified by:
      deletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • dslQuery

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

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

      public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
      Specified by:
      dynamicQuery in interface CSDiagramEntryLocalService
    • 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 CSDiagramEntryLocalService
      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.commerce.shop.by.diagram.model.impl.CSDiagramEntryModelImpl.

      Specified by:
      dynamicQuery in interface CSDiagramEntryLocalService
      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.commerce.shop.by.diagram.model.impl.CSDiagramEntryModelImpl.

      Specified by:
      dynamicQuery in interface CSDiagramEntryLocalService
      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 CSDiagramEntryLocalService
      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 CSDiagramEntryLocalService
      Parameters:
      dynamicQuery - the dynamic query
      projection - the projection to apply to the query
      Returns:
      the number of rows matching the dynamic query
    • fetchCSDiagramEntry

      public CSDiagramEntry fetchCSDiagramEntry(long CSDiagramEntryId)
      Specified by:
      fetchCSDiagramEntry in interface CSDiagramEntryLocalService
    • fetchCSDiagramEntry

      public CSDiagramEntry fetchCSDiagramEntry(long cpDefinitionId, String sequence)
      Specified by:
      fetchCSDiagramEntry in interface CSDiagramEntryLocalService
    • getActionableDynamicQuery

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

      public List<CSDiagramEntry> getCPDefinitionRelatedCSDiagramEntries(long cpDefinitionId)
      Specified by:
      getCPDefinitionRelatedCSDiagramEntries in interface CSDiagramEntryLocalService
    • getCProductCSDiagramEntries

      public List<CSDiagramEntry> getCProductCSDiagramEntries(long cProductId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CSDiagramEntry> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCProductCSDiagramEntries in interface CSDiagramEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCSDiagramEntries

      public List<CSDiagramEntry> getCSDiagramEntries(int start, int end)
      Returns a range of all the cs diagram 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.commerce.shop.by.diagram.model.impl.CSDiagramEntryModelImpl.

      Specified by:
      getCSDiagramEntries in interface CSDiagramEntryLocalService
      Parameters:
      start - the lower bound of the range of cs diagram entries
      end - the upper bound of the range of cs diagram entries (not inclusive)
      Returns:
      the range of cs diagram entries
    • getCSDiagramEntries

      public List<CSDiagramEntry> getCSDiagramEntries(long cpDefinitionId, int start, int end)
      Specified by:
      getCSDiagramEntries in interface CSDiagramEntryLocalService
    • getCSDiagramEntriesCount

      public int getCSDiagramEntriesCount()
      Returns the number of cs diagram entries.
      Specified by:
      getCSDiagramEntriesCount in interface CSDiagramEntryLocalService
      Returns:
      the number of cs diagram entries
    • getCSDiagramEntriesCount

      public int getCSDiagramEntriesCount(long cpDefinitionId)
      Specified by:
      getCSDiagramEntriesCount in interface CSDiagramEntryLocalService
    • getCSDiagramEntry

      public CSDiagramEntry getCSDiagramEntry(long CSDiagramEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the cs diagram entry with the primary key.
      Specified by:
      getCSDiagramEntry in interface CSDiagramEntryLocalService
      Parameters:
      CSDiagramEntryId - the primary key of the cs diagram entry
      Returns:
      the cs diagram entry
      Throws:
      PortalException - if a cs diagram entry with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getCSDiagramEntry

      public CSDiagramEntry getCSDiagramEntry(long cpDefinitionId, String sequence) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCSDiagramEntry in interface CSDiagramEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getIndexableActionableDynamicQuery

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

      public String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Specified by:
      getOSGiServiceIdentifier in interface CSDiagramEntryLocalService
      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 CSDiagramEntryLocalService
      Specified by:
      getPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • updateCSDiagramEntry

      public CSDiagramEntry updateCSDiagramEntry(CSDiagramEntry csDiagramEntry)
      Updates the cs diagram entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect CSDiagramEntryLocalServiceImpl 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:
      updateCSDiagramEntry in interface CSDiagramEntryLocalService
      Parameters:
      csDiagramEntry - the cs diagram entry
      Returns:
      the cs diagram entry that was updated
    • updateCSDiagramEntry

      public CSDiagramEntry updateCSDiagramEntry(long csDiagramEntryId, long cpInstanceId, long cProductId, boolean diagram, int quantity, String sequence, String sku, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateCSDiagramEntry in interface CSDiagramEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • 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<CSDiagramEntry> getCTPersistence()
      Specified by:
      getCTPersistence in interface CSDiagramEntryLocalService
      Specified by:
      getCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<CSDiagramEntry>
    • getModelClass

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

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

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

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