|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PdcClassificationRepository
DAO that handles the persistence of PdcClassification beans.
Method Summary | |
---|---|
List<PdcClassification> |
findClassificationsByPdcAxisValues(List<PdcAxisValue> values)
Finds all classifications on the PdC that have at least one position with the one or more of the specified axis values. |
PdcClassification |
findPredefinedClassificationByComponentInstanceId(String instanceId)
Finds the predefined classification on the PdC that is set for the whole specified component instance. |
PdcClassification |
findPredefinedClassificationByNodeId(String nodeId,
String instanceId)
Finds the predefined classification on the PdC that is set for the contents in the specified node of the specified component instance. |
Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository |
---|
deleteAllInBatch, deleteInBatch, findAll, findAll, flush, save, saveAndFlush |
Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository |
---|
findAll |
Methods inherited from interface org.springframework.data.repository.CrudRepository |
---|
count, delete, delete, delete, deleteAll, exists, findAll, findOne, save |
Method Detail |
---|
@Query(value="from PdcClassification where instanceId=:instanceId and contentId is null and nodeId is null") PdcClassification findPredefinedClassificationByComponentInstanceId(@Param(value="instanceId") String instanceId)
instanceId
- the unique identifier of the component instance.
@Query(value="from PdcClassification where instanceId=:instanceId and contentId is null and nodeId=:nodeId)") PdcClassification findPredefinedClassificationByNodeId(@Param(value="nodeId") String nodeId, @Param(value="instanceId") String instanceId)
nodeId
- the unique identifier of the node.instanceId
- the unique identifier of the component instance to which the node belongs.
@Query(value="select distinct c from PdcClassification c join c.positions p join p.axisValues v where v in :values") List<PdcClassification> findClassificationsByPdcAxisValues(@Param(value="values") List<PdcAxisValue> values)
values
- a list of PdC's axis values.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |