Package io.meeds.chat.dao
Interface MatrixRoomDAO
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<RoomEntity,,Long> org.springframework.data.jpa.repository.JpaRepository<RoomEntity,,Long> org.springframework.data.repository.ListCrudRepository<RoomEntity,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<RoomEntity,,Long> org.springframework.data.repository.PagingAndSortingRepository<RoomEntity,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<RoomEntity>,org.springframework.data.repository.Repository<RoomEntity,Long>
public interface MatrixRoomDAO
extends org.springframework.data.jpa.repository.JpaRepository<RoomEntity,Long>
-
Method Summary
Modifier and TypeMethodDescriptionfindByFirstParticipantAndSecondParticipant(String firstParticipant, String secondParticipant) findByFirstParticipantOrSecondParticipant(String userOne, String userTwo) findByRoomId(String roomId) findByRoomIdStartsWith(String roomId) findBySpaceId(String spaceId) 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
-
findByRoomId
-
findBySpaceId
-
findByFirstParticipantAndSecondParticipant
@Query(" SELECT m from MatrixRoom m\n WHERE (m.firstParticipant = ?1\n AND m.secondParticipant = ?2)\n OR\n (m.firstParticipant = ?2\n AND m.secondParticipant = ?1)\n") RoomEntity findByFirstParticipantAndSecondParticipant(String firstParticipant, String secondParticipant) -
findByFirstParticipantOrSecondParticipant
-
findByRoomIdStartsWith
-
findBySpaceIdIsNotNull
List<RoomEntity> findBySpaceIdIsNotNull()
-