Class PartitionResourceInfoProvider
- java.lang.Object
-
- cern.nxcals.api.extraction.metadata.AbstractProvider<PartitionResourceInformation,PartitionResourceInformationClient,cern.nxcals.api.extraction.metadata.queries.PartitionResourceInformations>
-
- cern.nxcals.api.extraction.metadata.PartitionResourceInfoProvider
-
- All Implemented Interfaces:
PartitionResourceInfoService
,Queryable<PartitionResourceInformation,cern.nxcals.api.extraction.metadata.queries.PartitionResourceInformations>
,cern.nxcals.internal.extraction.metadata.InternalPartitionResourceInfoService
public class PartitionResourceInfoProvider extends AbstractProvider<PartitionResourceInformation,PartitionResourceInformationClient,cern.nxcals.api.extraction.metadata.queries.PartitionResourceInformations> implements cern.nxcals.internal.extraction.metadata.InternalPartitionResourceInfoService
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PartitionResourceInformation
create(PartitionResourceInformation partitionResourceInfo)
Creates PartitionResourceInformation as in the parameter NOTE: this is a mutative method.void
delete(long partitionResourceInfoId)
Deletes an existing PartitionResourceInformationjava.util.Optional<PartitionResourceInformation>
findById(long id)
PartitionResourceInformation
update(PartitionResourceInformation partitionResourceInfo)
Updates an existing PartitionResourceInformation to the new values as in the parameter NOTE: this is a mutative method.-
Methods inherited from class cern.nxcals.api.extraction.metadata.AbstractProvider
findAll, findOne, getCache
-
-
-
-
Method Detail
-
findById
public java.util.Optional<PartitionResourceInformation> findById(long id)
- Specified by:
findById
in interfaceQueryable<PartitionResourceInformation,cern.nxcals.api.extraction.metadata.queries.PartitionResourceInformations>
-
create
public PartitionResourceInformation create(PartitionResourceInformation partitionResourceInfo)
Description copied from interface:PartitionResourceInfoService
Creates PartitionResourceInformation as in the parameter NOTE: this is a mutative method. It is not thread-safe or meant to be used in parallel- Specified by:
create
in interfacePartitionResourceInfoService
- Parameters:
partitionResourceInfo
- to be created- Returns:
- Created PartitionResourceInformation
-
update
public PartitionResourceInformation update(PartitionResourceInformation partitionResourceInfo)
Description copied from interface:PartitionResourceInfoService
Updates an existing PartitionResourceInformation to the new values as in the parameter NOTE: this is a mutative method. It is not thread-safe or meant to be used in parallel- Specified by:
update
in interfacePartitionResourceInfoService
- Parameters:
partitionResourceInfo
- to be updated- Returns:
- Updated PartitionResource
-
delete
public void delete(long partitionResourceInfoId)
Description copied from interface:PartitionResourceInfoService
Deletes an existing PartitionResourceInformation- Specified by:
delete
in interfacePartitionResourceInfoService
- Parameters:
partitionResourceInfoId
- the id of the PartitionResourceInfo to be deleted
-
-