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 longgetCreationTimeMillis()Returns the date/time in milliseconds when thisSessionInfoinstance was createdStringgetDatabase()Returns the database in use for this sessionStringgetSessionId()Returns the session idStringgetUsername()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 thisSessionInfoinstance was created- Returns:
- the date/time in milliseconds when this
SessionInfoinstance was created
-