Class ObjectRelationshipLocalServiceWrapper

java.lang.Object
com.liferay.object.service.ObjectRelationshipLocalServiceWrapper
All Implemented Interfaces:
ObjectRelationshipLocalService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService, com.liferay.portal.kernel.service.ServiceWrapper<ObjectRelationshipLocalService>

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

    • ObjectRelationshipLocalServiceWrapper

      public ObjectRelationshipLocalServiceWrapper()
    • ObjectRelationshipLocalServiceWrapper

      public ObjectRelationshipLocalServiceWrapper(ObjectRelationshipLocalService objectRelationshipLocalService)
  • Method Details

    • addObjectRelationship

      public ObjectRelationship addObjectRelationship(ObjectRelationship objectRelationship)
      Adds the object relationship to the database. Also notifies the appropriate model listeners.

      Important: Inspect ObjectRelationshipLocalServiceImpl 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:
      addObjectRelationship in interface ObjectRelationshipLocalService
      Parameters:
      objectRelationship - the object relationship
      Returns:
      the object relationship that was added
    • addObjectRelationship

      public ObjectRelationship addObjectRelationship(String externalReferenceCode, long userId, long objectDefinitionId1, long objectDefinitionId2, long parameterObjectFieldId, String deletionType, boolean edge, Map<Locale,String> labelMap, String name, boolean system, String type, ObjectField objectField) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addObjectRelationship in interface ObjectRelationshipLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addObjectRelationship

      public ObjectRelationship addObjectRelationship(String externalReferenceCode, long userId, long objectDefinitionId1, long objectDefinitionId2, ObjectField objectField) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addObjectRelationship in interface ObjectRelationshipLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addObjectRelationshipMappingTableValues

      public void addObjectRelationshipMappingTableValues(long userId, long objectRelationshipId, long primaryKey1, long primaryKey2, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addObjectRelationshipMappingTableValues in interface ObjectRelationshipLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • createManyToManyObjectRelationshipTable

      public ObjectRelationship createManyToManyObjectRelationshipTable(long userId, ObjectRelationship objectRelationship) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      createManyToManyObjectRelationshipTable in interface ObjectRelationshipLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • createObjectRelationship

      public ObjectRelationship createObjectRelationship(long objectRelationshipId)
      Creates a new object relationship with the primary key. Does not add the object relationship to the database.
      Specified by:
      createObjectRelationship in interface ObjectRelationshipLocalService
      Parameters:
      objectRelationshipId - the primary key for the new object relationship
      Returns:
      the new object relationship
    • createPersistedModel

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

      public ObjectRelationship deleteObjectRelationship(long objectRelationshipId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the object relationship with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect ObjectRelationshipLocalServiceImpl 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:
      deleteObjectRelationship in interface ObjectRelationshipLocalService
      Parameters:
      objectRelationshipId - the primary key of the object relationship
      Returns:
      the object relationship that was removed
      Throws:
      PortalException - if a object relationship with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • deleteObjectRelationship

      public ObjectRelationship deleteObjectRelationship(ObjectRelationship objectRelationship) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the object relationship from the database. Also notifies the appropriate model listeners.

      Important: Inspect ObjectRelationshipLocalServiceImpl 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:
      deleteObjectRelationship in interface ObjectRelationshipLocalService
      Parameters:
      objectRelationship - the object relationship
      Returns:
      the object relationship that was removed
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • deleteObjectRelationshipMappingTableValues

      public void deleteObjectRelationshipMappingTableValues(long objectRelationshipId, long primaryKey1) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteObjectRelationshipMappingTableValues in interface ObjectRelationshipLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteObjectRelationshipMappingTableValues

      public void deleteObjectRelationshipMappingTableValues(long objectRelationshipId, long primaryKey1, long primaryKey2) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteObjectRelationshipMappingTableValues in interface ObjectRelationshipLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteObjectRelationships

      public void deleteObjectRelationships(long objectDefinitionId1) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteObjectRelationships in interface ObjectRelationshipLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteObjectRelationships

      public void deleteObjectRelationships(long objectDefinitionId1, boolean reverse) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteObjectRelationships in interface ObjectRelationshipLocalService
      Throws:
      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 ObjectRelationshipLocalService
      Specified by:
      deletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • disableEdge

      public void disableEdge(long objectDefinitionId2) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      disableEdge in interface ObjectRelationshipLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • dslQuery

      public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQuery in interface ObjectRelationshipLocalService
      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 ObjectRelationshipLocalService
      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 ObjectRelationshipLocalService
    • 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 ObjectRelationshipLocalService
      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.object.model.impl.ObjectRelationshipModelImpl.

      Specified by:
      dynamicQuery in interface ObjectRelationshipLocalService
      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.object.model.impl.ObjectRelationshipModelImpl.

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

      public ObjectRelationship fetchObjectRelationship(long objectRelationshipId)
      Specified by:
      fetchObjectRelationship in interface ObjectRelationshipLocalService
    • fetchObjectRelationshipByExternalReferenceCode

      public ObjectRelationship fetchObjectRelationshipByExternalReferenceCode(String externalReferenceCode, long objectDefinitionId1)
      Specified by:
      fetchObjectRelationshipByExternalReferenceCode in interface ObjectRelationshipLocalService
    • fetchObjectRelationshipByExternalReferenceCode

      public ObjectRelationship fetchObjectRelationshipByExternalReferenceCode(String externalReferenceCode, long companyId, long objectDefinitionId1)
      Specified by:
      fetchObjectRelationshipByExternalReferenceCode in interface ObjectRelationshipLocalService
    • fetchObjectRelationshipByObjectDefinitionId

      public ObjectRelationship fetchObjectRelationshipByObjectDefinitionId(long objectDefinitionId, String name)
      Specified by:
      fetchObjectRelationshipByObjectDefinitionId in interface ObjectRelationshipLocalService
    • fetchObjectRelationshipByObjectDefinitionId1

      public ObjectRelationship fetchObjectRelationshipByObjectDefinitionId1(long objectDefinitionId1, String name)
      Specified by:
      fetchObjectRelationshipByObjectDefinitionId1 in interface ObjectRelationshipLocalService
    • fetchObjectRelationshipByObjectFieldId2

      public ObjectRelationship fetchObjectRelationshipByObjectFieldId2(long objectFieldId2)
      Specified by:
      fetchObjectRelationshipByObjectFieldId2 in interface ObjectRelationshipLocalService
    • fetchObjectRelationshipByUuidAndCompanyId

      public ObjectRelationship fetchObjectRelationshipByUuidAndCompanyId(String uuid, long companyId)
      Returns the object relationship with the matching UUID and company.
      Specified by:
      fetchObjectRelationshipByUuidAndCompanyId in interface ObjectRelationshipLocalService
      Parameters:
      uuid - the object relationship's UUID
      companyId - the primary key of the company
      Returns:
      the matching object relationship, or null if a matching object relationship could not be found
    • fetchReverseObjectRelationship

      public ObjectRelationship fetchReverseObjectRelationship(ObjectRelationship objectRelationship, boolean reverse)
      Specified by:
      fetchReverseObjectRelationship in interface ObjectRelationshipLocalService
    • getActionableDynamicQuery

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

      public List<ObjectRelationship> getAllObjectRelationships(long objectDefinitionId)
      Specified by:
      getAllObjectRelationships in interface ObjectRelationshipLocalService
    • getExportActionableDynamicQuery

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

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

      public ObjectRelationship getObjectRelationship(long objectRelationshipId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the object relationship with the primary key.
      Specified by:
      getObjectRelationship in interface ObjectRelationshipLocalService
      Parameters:
      objectRelationshipId - the primary key of the object relationship
      Returns:
      the object relationship
      Throws:
      PortalException - if a object relationship with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getObjectRelationship

      public ObjectRelationship getObjectRelationship(long objectDefinitionId1, String name) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getObjectRelationship in interface ObjectRelationshipLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getObjectRelationshipByExternalReferenceCode

      public ObjectRelationship getObjectRelationshipByExternalReferenceCode(String externalReferenceCode, long companyId, long objectDefinitionId1) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getObjectRelationshipByExternalReferenceCode in interface ObjectRelationshipLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getObjectRelationshipByObjectDefinitionId

      public ObjectRelationship getObjectRelationshipByObjectDefinitionId(long objectDefinitionId, String name) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getObjectRelationshipByObjectDefinitionId in interface ObjectRelationshipLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getObjectRelationshipByUuidAndCompanyId

      public ObjectRelationship getObjectRelationshipByUuidAndCompanyId(String uuid, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the object relationship with the matching UUID and company.
      Specified by:
      getObjectRelationshipByUuidAndCompanyId in interface ObjectRelationshipLocalService
      Parameters:
      uuid - the object relationship's UUID
      companyId - the primary key of the company
      Returns:
      the matching object relationship
      Throws:
      PortalException - if a matching object relationship could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getObjectRelationships

      public List<ObjectRelationship> getObjectRelationships(int start, int end)
      Returns a range of all the object relationships.

      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.object.model.impl.ObjectRelationshipModelImpl.

      Specified by:
      getObjectRelationships in interface ObjectRelationshipLocalService
      Parameters:
      start - the lower bound of the range of object relationships
      end - the upper bound of the range of object relationships (not inclusive)
      Returns:
      the range of object relationships
    • getObjectRelationships

      public List<ObjectRelationship> getObjectRelationships(long objectDefinitionId1)
      Specified by:
      getObjectRelationships in interface ObjectRelationshipLocalService
    • getObjectRelationships

      public List<ObjectRelationship> getObjectRelationships(long objectDefinitionId1, boolean edge)
      Specified by:
      getObjectRelationships in interface ObjectRelationshipLocalService
    • getObjectRelationships

      public List<ObjectRelationship> getObjectRelationships(long objectDefinitionId1, int start, int end)
      Specified by:
      getObjectRelationships in interface ObjectRelationshipLocalService
    • getObjectRelationships

      public List<ObjectRelationship> getObjectRelationships(long objectDefinitionId1, long objectDefinition2, String type)
      Specified by:
      getObjectRelationships in interface ObjectRelationshipLocalService
    • getObjectRelationships

      public List<ObjectRelationship> getObjectRelationships(long objectDefinitionId, String type)
      Specified by:
      getObjectRelationships in interface ObjectRelationshipLocalService
    • getObjectRelationships

      public List<ObjectRelationship> getObjectRelationships(long objectDefinitionId1, String deletionType, boolean reverse)
      Specified by:
      getObjectRelationships in interface ObjectRelationshipLocalService
    • getObjectRelationshipsByObjectDefinitionId2

      public List<ObjectRelationship> getObjectRelationshipsByObjectDefinitionId2(long objectDefinitionId2)
      Specified by:
      getObjectRelationshipsByObjectDefinitionId2 in interface ObjectRelationshipLocalService
    • getObjectRelationshipsCount

      public int getObjectRelationshipsCount()
      Returns the number of object relationships.
      Specified by:
      getObjectRelationshipsCount in interface ObjectRelationshipLocalService
      Returns:
      the number of object relationships
    • getObjectRelationshipsMap

      public Map<Long,List<ObjectRelationship>> getObjectRelationshipsMap(long companyId)
      Specified by:
      getObjectRelationshipsMap in interface ObjectRelationshipLocalService
    • getOSGiServiceIdentifier

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

      public void registerObjectRelationshipsRelatedInfoCollectionProviders(ObjectDefinition objectDefinition1, ObjectDefinitionLocalService objectDefinitionLocalService, List<ObjectRelationship> objectRelationships)
      Specified by:
      registerObjectRelationshipsRelatedInfoCollectionProviders in interface ObjectRelationshipLocalService
    • updateObjectRelationship

      public ObjectRelationship updateObjectRelationship(ObjectRelationship objectRelationship)
      Updates the object relationship in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect ObjectRelationshipLocalServiceImpl 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:
      updateObjectRelationship in interface ObjectRelationshipLocalService
      Parameters:
      objectRelationship - the object relationship
      Returns:
      the object relationship that was updated
    • updateObjectRelationship

      public ObjectRelationship updateObjectRelationship(String externalReferenceCode, long objectRelationshipId, long parameterObjectFieldId, String deletionType, boolean edge, Map<Locale,String> labelMap, ObjectField objectField) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateObjectRelationship in interface ObjectRelationshipLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateUserId

      public void updateUserId(long companyId, long oldUserId, long newUserId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateUserId in interface ObjectRelationshipLocalService
      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
    • getWrappedService

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

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