Interface AssetTagGroupRelLocalService
- All Superinterfaces:
BaseLocalService
,CTService<AssetTagGroupRel>
,PersistedModelLocalService
- All Known Implementing Classes:
AssetTagGroupRelLocalServiceWrapper
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Method Summary
Modifier and TypeMethodDescriptionaddAssetTagGroupRel
(long groupId, long tagId) addAssetTagGroupRel
(AssetTagGroupRel assetTagGroupRel) Adds the asset tag group rel to the database.createAssetTagGroupRel
(long assetTagGroupRelId) Creates a new asset tag group rel with the primary key.createPersistedModel
(Serializable primaryKeyObj) deleteAssetTagGroupRel
(long assetTagGroupRelId) Deletes the asset tag group rel with the primary key from the database.deleteAssetTagGroupRel
(AssetTagGroupRel assetTagGroupRel) Deletes the asset tag group rel from the database.void
deleteAssetTagGroupRelsByGroupId
(long groupId) void
deleteAssetTagGroupRelsByTagId
(long tagId) deletePersistedModel
(PersistedModel persistedModel) <T> T
dslQuery
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) int
dslQueryCount
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) <T> List<T>
dynamicQuery
(DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<T> List<T>
dynamicQuery
(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
(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator) Performs a dynamic query on the database and returns an ordered range of the matching rows.long
dynamicQueryCount
(DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.long
dynamicQueryCount
(DynamicQuery dynamicQuery, Projection projection) Returns the number of rows matching the dynamic query.fetchAssetTagGroupRel
(long assetTagGroupRelId) fetchAssetTagGroupRelByUuidAndGroupId
(String uuid, long groupId) Returns the asset tag group rel matching the UUID and group.getAssetTagGroupRel
(long assetTagGroupRelId) Returns the asset tag group rel with the primary key.getAssetTagGroupRelByUuidAndGroupId
(String uuid, long groupId) Returns the asset tag group rel matching the UUID and group.getAssetTagGroupRels
(int start, int end) Returns a range of all the asset tag group rels.getAssetTagGroupRelsByGroupyId
(long groupId) getAssetTagGroupRelsByTagId
(long tagId) getAssetTagGroupRelsByUuidAndCompanyId
(String uuid, long companyId) Returns all the asset tag group rels matching the UUID and company.getAssetTagGroupRelsByUuidAndCompanyId
(String uuid, long companyId, int start, int end, OrderByComparator<AssetTagGroupRel> orderByComparator) Returns a range of asset tag group rels matching the UUID and company.int
Returns the number of asset tag group rels.Returns the OSGi service identifier.getPersistedModel
(Serializable primaryKeyObj) void
setAssetTagGroupRels
(long tagId, long[] groupIds) updateAssetTagGroupRel
(AssetTagGroupRel assetTagGroupRel) Updates the asset tag group rel in the database or adds it if it does not yet exist.<R,
E extends Throwable>
RupdateWithUnsafeFunction
(com.liferay.petra.function.UnsafeFunction<CTPersistence<AssetTagGroupRel>, R, E> updateUnsafeFunction) Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel, getBasePersistence
-
Method Details
-
addAssetTagGroupRel
Adds the asset tag group rel to the database. Also notifies the appropriate model listeners.Important: Inspect AssetTagGroupRelLocalServiceImpl 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:
assetTagGroupRel
- the asset tag group rel- Returns:
- the asset tag group rel that was added
-
addAssetTagGroupRel
- Throws:
PortalException
-
createAssetTagGroupRel
Creates a new asset tag group rel with the primary key. Does not add the asset tag group rel to the database.- Parameters:
assetTagGroupRelId
- the primary key for the new asset tag group rel- Returns:
- the new asset tag group rel
-
createPersistedModel
- Specified by:
createPersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
-
deleteAssetTagGroupRel
Deletes the asset tag group rel from the database. Also notifies the appropriate model listeners.Important: Inspect AssetTagGroupRelLocalServiceImpl 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:
assetTagGroupRel
- the asset tag group rel- Returns:
- the asset tag group rel that was removed
-
deleteAssetTagGroupRel
@Indexable(type=DELETE) AssetTagGroupRel deleteAssetTagGroupRel(long assetTagGroupRelId) throws PortalException Deletes the asset tag group rel with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect AssetTagGroupRelLocalServiceImpl 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:
assetTagGroupRelId
- the primary key of the asset tag group rel- Returns:
- the asset tag group rel that was removed
- Throws:
PortalException
- if a asset tag group rel with the primary key could not be found
-
deleteAssetTagGroupRelsByGroupId
void deleteAssetTagGroupRelsByGroupId(long groupId) -
deleteAssetTagGroupRelsByTagId
void deleteAssetTagGroupRelsByTagId(long tagId) -
deletePersistedModel
- Specified by:
deletePersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
-
dslQuery
@Transactional(propagation=SUPPORTS, readOnly=true) <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQuery
in interfacePersistedModelLocalService
-
dslQueryCount
@Transactional(propagation=SUPPORTS, readOnly=true) int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfacePersistedModelLocalService
-
dynamicQuery
-
dynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(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(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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.asset.model.impl.AssetTagGroupRelModelImpl
.- 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(DynamicQuery dynamicQuery, int start, int end, 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.asset.model.impl.AssetTagGroupRelModelImpl
.- 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(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(DynamicQuery dynamicQuery, 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
-
fetchAssetTagGroupRel
@Transactional(propagation=SUPPORTS, readOnly=true) AssetTagGroupRel fetchAssetTagGroupRel(long assetTagGroupRelId) -
fetchAssetTagGroupRelByUuidAndGroupId
@Transactional(propagation=SUPPORTS, readOnly=true) AssetTagGroupRel fetchAssetTagGroupRelByUuidAndGroupId(String uuid, long groupId) Returns the asset tag group rel matching the UUID and group.- Parameters:
uuid
- the asset tag group rel's UUIDgroupId
- the primary key of the group- Returns:
- the matching asset tag group rel, or
null
if a matching asset tag group rel could not be found
-
getActionableDynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) ActionableDynamicQuery getActionableDynamicQuery() -
getAssetTagGroupRel
@Transactional(propagation=SUPPORTS, readOnly=true) AssetTagGroupRel getAssetTagGroupRel(long assetTagGroupRelId) throws PortalException Returns the asset tag group rel with the primary key.- Parameters:
assetTagGroupRelId
- the primary key of the asset tag group rel- Returns:
- the asset tag group rel
- Throws:
PortalException
- if a asset tag group rel with the primary key could not be found
-
getAssetTagGroupRelByUuidAndGroupId
@Transactional(propagation=SUPPORTS, readOnly=true) AssetTagGroupRel getAssetTagGroupRelByUuidAndGroupId(String uuid, long groupId) throws PortalException Returns the asset tag group rel matching the UUID and group.- Parameters:
uuid
- the asset tag group rel's UUIDgroupId
- the primary key of the group- Returns:
- the matching asset tag group rel
- Throws:
PortalException
- if a matching asset tag group rel could not be found
-
getAssetTagGroupRels
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetTagGroupRel> getAssetTagGroupRels(int start, int end) Returns a range of all the asset tag group rels.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.asset.model.impl.AssetTagGroupRelModelImpl
.- Parameters:
start
- the lower bound of the range of asset tag group relsend
- the upper bound of the range of asset tag group rels (not inclusive)- Returns:
- the range of asset tag group rels
-
getAssetTagGroupRelsByGroupyId
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetTagGroupRel> getAssetTagGroupRelsByGroupyId(long groupId) -
getAssetTagGroupRelsByTagId
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetTagGroupRel> getAssetTagGroupRelsByTagId(long tagId) -
getAssetTagGroupRelsByUuidAndCompanyId
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetTagGroupRel> getAssetTagGroupRelsByUuidAndCompanyId(String uuid, long companyId) Returns all the asset tag group rels matching the UUID and company.- Parameters:
uuid
- the UUID of the asset tag group relscompanyId
- the primary key of the company- Returns:
- the matching asset tag group rels, or an empty list if no matches were found
-
getAssetTagGroupRelsByUuidAndCompanyId
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetTagGroupRel> getAssetTagGroupRelsByUuidAndCompanyId(String uuid, long companyId, int start, int end, OrderByComparator<AssetTagGroupRel> orderByComparator) Returns a range of asset tag group rels matching the UUID and company.- Parameters:
uuid
- the UUID of the asset tag group relscompanyId
- the primary key of the companystart
- the lower bound of the range of asset tag group relsend
- the upper bound of the range of asset tag group rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the range of matching asset tag group rels, or an empty list if no matches were found
-
getAssetTagGroupRelsCount
Returns the number of asset tag group rels.- Returns:
- the number of asset tag group rels
-
getIndexableActionableDynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() -
getOSGiServiceIdentifier
String getOSGiServiceIdentifier()Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getPersistedModel
@Transactional(propagation=SUPPORTS, readOnly=true) PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException - Specified by:
getPersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
-
setAssetTagGroupRels
- Throws:
PortalException
-
updateAssetTagGroupRel
Updates the asset tag group rel in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect AssetTagGroupRelLocalServiceImpl 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:
assetTagGroupRel
- the asset tag group rel- Returns:
- the asset tag group rel that was updated
-
getCTPersistence
- Specified by:
getCTPersistence
in interfaceCTService<AssetTagGroupRel>
-
getModelClass
- Specified by:
getModelClass
in interfaceCTService<AssetTagGroupRel>
-
updateWithUnsafeFunction
@Transactional(rollbackFor=java.lang.Throwable.class) <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<AssetTagGroupRel>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunction
in interfaceCTService<AssetTagGroupRel>
- Throws:
E extends Throwable
-