Class ChatDao


  • @Repository
    @Transactional
    public class ChatDao
    extends Object
    • Constructor Detail

      • ChatDao

        public ChatDao()
    • Method Detail

      • getGlobal

        public List<ChatMessage> getGlobal​(long start,
                                           long count)
      • getRoom

        public List<ChatMessage> getRoom​(long roomId,
                                         long start,
                                         long count,
                                         boolean all)
      • getUser

        public List<ChatMessage> getUser​(long userId,
                                         long start,
                                         long count)
      • getUserRecent

        public List<ChatMessage> getUserRecent​(long userId,
                                               Date date,
                                               long start,
                                               long count)
      • closeMessages

        public void closeMessages​(long userId)
      • delete

        public void delete​(ChatMessage entity,
                           long userId)
        Parameters:
        entity - - unused
        userId - - unused
      • deleteGlobal

        public void deleteGlobal()
      • deleteRoom

        public void deleteRoom​(Long roomId)
      • deleteUser

        public void deleteUser​(Long userId)