public class ServerInfo extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ServerInfo.ReplicaIdentity
Table REPLICA IDENTITY information.
|
protected static class |
ServerInfo.ReplicationSlot
Information about a server replication slot
|
| Modifier and Type | Field and Description |
|---|---|
private String |
database |
private Map<String,String> |
permissionsByRoleName |
private String |
server |
private String |
username |
| Modifier | Constructor and Description |
|---|---|
protected |
ServerInfo() |
| Modifier and Type | Method and Description |
|---|---|
protected ServerInfo |
addRole(String roleName,
String permissions) |
String |
database()
Returns the name of a database for which a connection was established
|
Map<String,String> |
permissionsByRoleName()
Returns information about the role names and permissions of the current user
|
String |
server()
Returns information about the server machine
|
String |
toString() |
String |
username()
Returns the name of the user of a connection
|
protected ServerInfo |
withDatabase(String database) |
protected ServerInfo |
withServer(String server) |
protected ServerInfo |
withUsername(String username) |
private String server
private String username
private String database
protected ServerInfo withServer(String server)
protected ServerInfo withUsername(String username)
protected ServerInfo withDatabase(String database)
protected ServerInfo addRole(String roleName, String permissions)
public String server()
public String username()
public String database()
public Map<String,String> permissionsByRoleName()
Map of role information, keyed by role name; never null but possibly emptyCopyright © 2019 JBoss by Red Hat. All rights reserved.