Class JSONStorageEntryLocalServiceWrapper

java.lang.Object
com.liferay.json.storage.service.JSONStorageEntryLocalServiceWrapper
All Implemented Interfaces:
JSONStorageEntryLocalService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.change.tracking.CTService<JSONStorageEntry>, com.liferay.portal.kernel.service.PersistedModelLocalService, com.liferay.portal.kernel.service.ServiceWrapper<JSONStorageEntryLocalService>

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

    • JSONStorageEntryLocalServiceWrapper

      public JSONStorageEntryLocalServiceWrapper()
    • JSONStorageEntryLocalServiceWrapper

      public JSONStorageEntryLocalServiceWrapper(JSONStorageEntryLocalService jsonStorageEntryLocalService)
  • Method Details

    • addJSONStorageEntries

      public void addJSONStorageEntries(long companyId, long classNameId, long classPK, String json)
      Specified by:
      addJSONStorageEntries in interface JSONStorageEntryLocalService
    • addJSONStorageEntry

      public JSONStorageEntry addJSONStorageEntry(JSONStorageEntry jsonStorageEntry)
      Adds the json storage entry to the database. Also notifies the appropriate model listeners.

      Important: Inspect JSONStorageEntryLocalServiceImpl 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:
      addJSONStorageEntry in interface JSONStorageEntryLocalService
      Parameters:
      jsonStorageEntry - the json storage entry
      Returns:
      the json storage entry that was added
    • createJSONStorageEntry

      public JSONStorageEntry createJSONStorageEntry(long jsonStorageEntryId)
      Creates a new json storage entry with the primary key. Does not add the json storage entry to the database.
      Specified by:
      createJSONStorageEntry in interface JSONStorageEntryLocalService
      Parameters:
      jsonStorageEntryId - the primary key for the new json storage entry
      Returns:
      the new json storage entry
    • createPersistedModel

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

      public void deleteJSONStorageEntries(long classNameId, long classPK)
      Specified by:
      deleteJSONStorageEntries in interface JSONStorageEntryLocalService
    • deleteJSONStorageEntry

      public JSONStorageEntry deleteJSONStorageEntry(JSONStorageEntry jsonStorageEntry)
      Deletes the json storage entry from the database. Also notifies the appropriate model listeners.

      Important: Inspect JSONStorageEntryLocalServiceImpl 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:
      deleteJSONStorageEntry in interface JSONStorageEntryLocalService
      Parameters:
      jsonStorageEntry - the json storage entry
      Returns:
      the json storage entry that was removed
    • deleteJSONStorageEntry

      public JSONStorageEntry deleteJSONStorageEntry(long jsonStorageEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the json storage entry with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect JSONStorageEntryLocalServiceImpl 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:
      deleteJSONStorageEntry in interface JSONStorageEntryLocalService
      Parameters:
      jsonStorageEntryId - the primary key of the json storage entry
      Returns:
      the json storage entry that was removed
      Throws:
      PortalException - if a json storage 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 JSONStorageEntryLocalService
      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 JSONStorageEntryLocalService
      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 JSONStorageEntryLocalService
      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 JSONStorageEntryLocalService
    • 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 JSONStorageEntryLocalService
      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.json.storage.model.impl.JSONStorageEntryModelImpl.

      Specified by:
      dynamicQuery in interface JSONStorageEntryLocalService
      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.json.storage.model.impl.JSONStorageEntryModelImpl.

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

      public JSONStorageEntry fetchJSONStorageEntry(long jsonStorageEntryId)
      Specified by:
      fetchJSONStorageEntry in interface JSONStorageEntryLocalService
    • getActionableDynamicQuery

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

      public List<Long> getClassPKs(long companyId, long classNameId, int start, int end)
      Specified by:
      getClassPKs in interface JSONStorageEntryLocalService
    • getClassPKs

      public List<Long> getClassPKs(long companyId, long classNameId, Object[] pathParts, Object value, int start, int end)
      Specified by:
      getClassPKs in interface JSONStorageEntryLocalService
    • getClassPKsCount

      public int getClassPKsCount(long companyId, long classNameId)
      Specified by:
      getClassPKsCount in interface JSONStorageEntryLocalService
    • getClassPKsCount

      public int getClassPKsCount(long companyId, long classNameId, Object[] pathParts, Object value)
      Specified by:
      getClassPKsCount in interface JSONStorageEntryLocalService
    • getIndexableActionableDynamicQuery

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

      public String getJSON(long classNameId, long classPK)
      Specified by:
      getJSON in interface JSONStorageEntryLocalService
    • getJSONArray

      public com.liferay.portal.kernel.json.JSONArray getJSONArray(long classNameId, long classPK)
      Specified by:
      getJSONArray in interface JSONStorageEntryLocalService
    • getJSONObject

      public com.liferay.portal.kernel.json.JSONObject getJSONObject(long classNameId, long classPK)
      Specified by:
      getJSONObject in interface JSONStorageEntryLocalService
    • getJSONSerializable

      public com.liferay.portal.kernel.json.JSONSerializable getJSONSerializable(long classNameId, long classPK)
      Specified by:
      getJSONSerializable in interface JSONStorageEntryLocalService
    • getJSONStorageEntries

      public List<JSONStorageEntry> getJSONStorageEntries(int start, int end)
      Returns a range of all the json storage 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.json.storage.model.impl.JSONStorageEntryModelImpl.

      Specified by:
      getJSONStorageEntries in interface JSONStorageEntryLocalService
      Parameters:
      start - the lower bound of the range of json storage entries
      end - the upper bound of the range of json storage entries (not inclusive)
      Returns:
      the range of json storage entries
    • getJSONStorageEntriesCount

      public int getJSONStorageEntriesCount()
      Returns the number of json storage entries.
      Specified by:
      getJSONStorageEntriesCount in interface JSONStorageEntryLocalService
      Returns:
      the number of json storage entries
    • getJSONStorageEntry

      public JSONStorageEntry getJSONStorageEntry(long jsonStorageEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the json storage entry with the primary key.
      Specified by:
      getJSONStorageEntry in interface JSONStorageEntryLocalService
      Parameters:
      jsonStorageEntryId - the primary key of the json storage entry
      Returns:
      the json storage entry
      Throws:
      PortalException - if a json storage entry with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getOSGiServiceIdentifier

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

      public void updateJSONStorageEntries(long companyId, long classNameId, long classPK, String json)
      Specified by:
      updateJSONStorageEntries in interface JSONStorageEntryLocalService
    • updateJSONStorageEntry

      public JSONStorageEntry updateJSONStorageEntry(JSONStorageEntry jsonStorageEntry)
      Updates the json storage entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect JSONStorageEntryLocalServiceImpl 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:
      updateJSONStorageEntry in interface JSONStorageEntryLocalService
      Parameters:
      jsonStorageEntry - the json storage entry
      Returns:
      the json storage 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<JSONStorageEntry> getCTPersistence()
      Specified by:
      getCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<JSONStorageEntry>
      Specified by:
      getCTPersistence in interface JSONStorageEntryLocalService
    • getModelClass

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

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

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

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