Class PartitionResourceHistoryProvider
- java.lang.Object
-
- cern.nxcals.api.extraction.metadata.AbstractProvider<PartitionResourceHistory,PartitionResourceHistoryClient,cern.nxcals.api.extraction.metadata.queries.PartitionResourceHistories>
-
- cern.nxcals.api.extraction.metadata.PartitionResourceHistoryProvider
-
- All Implemented Interfaces:
PartitionResourceHistoryService
,Queryable<PartitionResourceHistory,cern.nxcals.api.extraction.metadata.queries.PartitionResourceHistories>
,cern.nxcals.internal.extraction.metadata.InternalPartitionResourceHistoryService
public class PartitionResourceHistoryProvider extends AbstractProvider<PartitionResourceHistory,PartitionResourceHistoryClient,cern.nxcals.api.extraction.metadata.queries.PartitionResourceHistories> implements cern.nxcals.internal.extraction.metadata.InternalPartitionResourceHistoryService
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PartitionResourceHistory
create(PartitionResourceHistory partitionResourceInfo)
Creates PartitionResourceHistory as in the parameter NOTE: this is a mutative method.void
delete(long partitionResourceInfoId)
Deletes an existing PartitionResourceHistoryjava.util.Optional<PartitionResourceHistory>
findById(long id)
PartitionResourceHistory
update(PartitionResourceHistory partitionResourceInfo)
Updates an existing PartitionResourceHistory 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<PartitionResourceHistory> findById(long id)
- Specified by:
findById
in interfaceQueryable<PartitionResourceHistory,cern.nxcals.api.extraction.metadata.queries.PartitionResourceHistories>
-
create
public PartitionResourceHistory create(PartitionResourceHistory partitionResourceInfo)
Description copied from interface:PartitionResourceHistoryService
Creates PartitionResourceHistory 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 interfacePartitionResourceHistoryService
- Parameters:
partitionResourceInfo
- to be created- Returns:
- Created PartitionResourceHistory
-
update
public PartitionResourceHistory update(PartitionResourceHistory partitionResourceInfo)
Description copied from interface:PartitionResourceHistoryService
Updates an existing PartitionResourceHistory 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 interfacePartitionResourceHistoryService
- Parameters:
partitionResourceInfo
- to be updated- Returns:
- Updated PartitionResource
-
delete
public void delete(long partitionResourceInfoId)
Description copied from interface:PartitionResourceHistoryService
Deletes an existing PartitionResourceHistory- Specified by:
delete
in interfacePartitionResourceHistoryService
- Parameters:
partitionResourceInfoId
- the id of the PartitionResourceInfo to be deleted
-
-