@Repository @Transactional public class SessiondataDao extends Object
| コンストラクタと説明 |
|---|
SessiondataDao() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
Sessiondata |
check(String sid) |
void |
clearSessionByRoomId(Long roomId) |
void |
clearSessionTable(long timeout) |
Sessiondata |
create(Long userId,
long languageId)
creates a new session-object in the database
|
Sessiondata |
create(Long userId,
Long roomId,
long languageId)
creates a new session-object in the database
|
Sessiondata |
find(String sid)
Serches
Sessiondata object by sessionId |
Sessiondata |
update(Sessiondata sd) |
public Sessiondata create(Long userId, long languageId)
userId - the id of the user to be set on this sessionlanguageId - language id to be set on this sessionSessiondatapublic Sessiondata create(Long userId, Long roomId, long languageId)
userId - the id of the user to be set on this sessionroomId - the id of the room to be set on this sessionlanguageId - language id to be set on this sessionSessiondatapublic Sessiondata find(String sid)
Sessiondata object by sessionIdsid - - sessionIdSessiondata with sessionId == SID, or null if not foundpublic Sessiondata check(String sid)
sid - public void clearSessionTable(long timeout)
public void clearSessionByRoomId(Long roomId)
roomId - public Sessiondata update(Sessiondata sd)
Copyright © 2012–2017 Apache Software Foundation. All rights reserved.