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 Type
    Method
    Description
    findByFirstParticipantAndSecondParticipant(String firstParticipant, String secondParticipant)
     
     
     
     

    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

    • findByRoomId

      RoomEntity findByRoomId(String roomId)
    • findBySpaceId

      RoomEntity findBySpaceId(String spaceId)
    • 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

      List<RoomEntity> findByFirstParticipantOrSecondParticipant(String userOne, String userTwo)