public class SQLSessionContextImpl extends java.lang.Object implements SQLSessionContext
Constructor and Description |
---|
SQLSessionContextImpl(SchemaDescriptor sd,
java.lang.String currentUser,
java.util.List<java.lang.String> roles,
java.util.List<java.lang.String> groupuserlist) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getCurrentGroupUser()
Get the Group user of this SQL connection context
|
java.lang.String |
getCurrentUser()
Get the SQL current user of this SQL connection context
|
SchemaDescriptor |
getDefaultSchema()
Get the schema of this SQL connection context
|
java.util.List<java.lang.String> |
getRoles()
Get the SQL roles of this SQL connection context
|
void |
removeRole(java.lang.String roleName) |
void |
setDefaultSchema(SchemaDescriptor sd)
Set the schema of this SQL connection context
|
void |
setRole(java.lang.String role)
Set the SQL role of this SQL connection context
|
void |
setRoles(java.util.List<java.lang.String> roles) |
void |
setUser(java.lang.String user)
Set the SQL current user of this SQL connection context
|
public SQLSessionContextImpl(SchemaDescriptor sd, java.lang.String currentUser, java.util.List<java.lang.String> roles, java.util.List<java.lang.String> groupuserlist)
public void setRole(java.lang.String role)
SQLSessionContext
setRole
in interface SQLSessionContext
public void removeRole(java.lang.String roleName)
removeRole
in interface SQLSessionContext
public java.util.List<java.lang.String> getRoles()
SQLSessionContext
getRoles
in interface SQLSessionContext
public void setRoles(java.util.List<java.lang.String> roles)
setRoles
in interface SQLSessionContext
public void setUser(java.lang.String user)
SQLSessionContext
setUser
in interface SQLSessionContext
public java.lang.String getCurrentUser()
SQLSessionContext
getCurrentUser
in interface SQLSessionContext
public void setDefaultSchema(SchemaDescriptor sd)
SQLSessionContext
setDefaultSchema
in interface SQLSessionContext
public SchemaDescriptor getDefaultSchema()
SQLSessionContext
getDefaultSchema
in interface SQLSessionContext
public java.util.List<java.lang.String> getCurrentGroupUser()
SQLSessionContext
getCurrentGroupUser
in interface SQLSessionContext