Class SessiondataDao


  • @Repository
    @Transactional
    public class SessiondataDao
    extends Object
    Author:
    swagner This Class handles all session management
    • Constructor Detail

      • SessiondataDao

        public SessiondataDao()
    • Method Detail

      • create

        public Sessiondata create​(Long userId,
                                  long languageId)
        creates a new session-object in the database
        Parameters:
        userId - the id of the user to be set on this session
        languageId - language id to be set on this session
        Returns:
        newly create Sessiondata
      • create

        public Sessiondata create​(Long userId,
                                  Long roomId,
                                  long languageId)
        creates a new session-object in the database
        Parameters:
        userId - the id of the user to be set on this session
        roomId - the id of the room to be set on this session
        languageId - language id to be set on this session
        Returns:
        newly create Sessiondata
      • clearSessionTable

        public void clearSessionTable​(long timeout)
        Parameters:
        timeout - - timeout in millis to check expired sessions