Interface FacilityRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<ProcessingFacility,Long>, org.springframework.data.jpa.repository.JpaRepository<ProcessingFacility,Long>, org.springframework.data.repository.ListCrudRepository<ProcessingFacility,Long>, org.springframework.data.repository.ListPagingAndSortingRepository<ProcessingFacility,Long>, org.springframework.data.repository.PagingAndSortingRepository<ProcessingFacility,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<ProcessingFacility>, org.springframework.data.repository.Repository<ProcessingFacility,Long>

public interface FacilityRepository extends org.springframework.data.jpa.repository.JpaRepository<ProcessingFacility,Long>
Data Access Object for the ProcessingFacility class
Author:
Dr. Thomas Bassler
  • Method Summary

    Modifier and Type
    Method
    Description
    findByName(String facilityName)
    Get the processing facility with the given name

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findByName

      @Query("select pf from ProcessingFacility pf where UPPER(pf.name) = UPPER(?1)") ProcessingFacility findByName(String facilityName)
      Get the processing facility with the given name
      Parameters:
      facilityName - the name of the processing facility
      Returns:
      the unique processing facility identified by the name