Class SessionInfo
java.lang.Object
org.kawanfw.sql.api.server.session.SessionInfo
public class SessionInfo extends Object
Utility holder class for session info.
- Author:
- Nicolas de Pomereu
-
Constructor Summary
Constructors Constructor Description SessionInfo(String sessionId, String username, String database)
Constructor -
Method Summary
Modifier and Type Method Description long
getCreationTimeMillis()
Returns the date/time in milliseconds when thisSessionInfo
instance was createdString
getDatabase()
Returns the database in use for this sessionString
getSessionId()
Returns the session idString
getUsername()
Returns the client username
-
Constructor Details
-
SessionInfo
Constructor- Parameters:
sessionId
- the unique session id that is generated after login bySessionConfigurator.generateSessionId(String, String)
username
- the logged client usernamedatabase
- the database to use for this session
-
-
Method Details
-
getSessionId
Returns the session id- Returns:
- the session id
-
getUsername
Returns the client username- Returns:
- the client username
-
getDatabase
Returns the database in use for this session- Returns:
- the database in use for this session
-
getCreationTimeMillis
public long getCreationTimeMillis()Returns the date/time in milliseconds when thisSessionInfo
instance was created- Returns:
- the date/time in milliseconds when this
SessionInfo
instance was created
-