Package org.openwms.common.location.impl
Interface LocationRepository
- All Superinterfaces:
 org.springframework.data.repository.CrudRepository<Location,,Long> org.springframework.data.jpa.repository.JpaRepository<Location,,Long> org.springframework.data.repository.ListCrudRepository<Location,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<Location,,Long> org.springframework.data.repository.PagingAndSortingRepository<Location,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<Location>,org.springframework.data.repository.Repository<Location,Long> 
public interface LocationRepository
extends org.springframework.data.jpa.repository.JpaRepository<Location,Long> 
A LocationRepository adds particular functionality regarding 
Location entity classes.- Author:
 - Heiko Scherrer
 
- 
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleandoesTUonLocationExists(Collection<String> pKeys) findByErpCode(String erpCode) findByLocationGroup_Name(String locationGroupName) findByLocationGroup_Name(List<String> locationGroupNames) findByLocationId(LocationPK locationId) findByLocationIdContaining(LocationPK locationPK) findBypKey(String persistentKey) findByPlcCode(String plcCode) Methods 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
- 
findBypKey
 - 
findByLocationId
 - 
findByLocationGroup_Name
 - 
findByLocationGroup_Name
 - 
findByPlcCode
 - 
findByErpCode
 - 
doesTUonLocationExists
@Query(" select count(tu)>0\n from TransportUnit tu\n where tu.actualLocation.pk = :pk\n") boolean doesTUonLocationExists(Long pk)  - 
doesTUonLocationExists
@Query(" select count(tu)>0\n from TransportUnit tu\n where tu.actualLocation.pKey in (:pKeys)\n") boolean doesTUonLocationExists(@Param("pKeys") Collection<String> pKeys)  - 
findByLocationIdContaining
@Query("select l from Location l where l.locationId.area like :#{#locationPK.area} and l.locationId.aisle like :#{#locationPK.aisle} and l.locationId.x like :#{#locationPK.x} and l.locationId.y like :#{#locationPK.y} and l.locationId.z like :#{#locationPK.z} ") List<Location> findByLocationIdContaining(@Param("locationPK") LocationPK locationPK)  
 -