Package de.dlr.proseo.model.dao
Interface WorkflowOptionRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<WorkflowOption,,Long> org.springframework.data.jpa.repository.JpaRepository<WorkflowOption,,Long> org.springframework.data.repository.ListCrudRepository<WorkflowOption,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<WorkflowOption,,Long> org.springframework.data.repository.PagingAndSortingRepository<WorkflowOption,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<WorkflowOption>,org.springframework.data.repository.Repository<WorkflowOption,Long>
public interface WorkflowOptionRepository
extends org.springframework.data.jpa.repository.JpaRepository<WorkflowOption,Long>
Data Access Object for the WorkflowOption class
- Author:
- Dr. Thomas Bassler
-
Method Summary
Modifier and TypeMethodDescriptionfindByNameAndWorkflowName(String name, String workflowName) Get the workflow option with the given name and workflow nameMethods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findByNameAndWorkflowName
@Query("select w from WorkflowOption w where w.name = ?1 and w.workflow.name = ?2") WorkflowOption findByNameAndWorkflowName(String name, String workflowName) Get the workflow option with the given name and workflow name- Parameters:
name- the workflow option nameworkflowName- the workflow name- Returns:
- the unique workflow option identified by the search criteria
-