public final class User extends Object
This object also serves as a storage for session state information. For example, this object stores the triggers that this session has created.
NOTE: This object is not immutable. The same user may log into the system and it will result in a new User object being created.
Modifier and Type | Method and Description |
---|---|
String |
getConnectionString()
Returns the string that describes how this user is connected to the
engine.
|
Database |
getDatabase()
Returns the Database object that this user belongs to.
|
long |
getLastCommandTime()
Returnst the last time a command was executed by this user.
|
long |
getTimeConnected()
Returns the time the user connected.
|
String |
getUserName()
Returns the name of the user.
|
void |
logout()
Logs out this user object.
|
void |
refreshLastCommandTime()
Refreshes the last time a command was executed by this user.
|
public String getUserName()
public String getConnectionString()
public long getTimeConnected()
public long getLastCommandTime()
public Database getDatabase()
public final void refreshLastCommandTime()
public void logout()
Copyright © 2015. All rights reserved.