public class SQLSessionContextImpl extends java.lang.Object implements SQLSessionContext
Modifier and Type | Field and Description |
---|---|
private SchemaDescriptor |
currentDefaultSchema |
private java.lang.String |
currentRole |
private java.lang.String |
currentUser |
Constructor and Description |
---|
SQLSessionContextImpl(SchemaDescriptor sd,
java.lang.String currentUser) |
Modifier and Type | Method and Description |
---|---|
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.lang.String |
getRole()
Get the SQL role of this SQL connection context
|
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 |
setUser(java.lang.String user)
Set the SQL current user of this SQL connection context
|
private java.lang.String currentUser
private java.lang.String currentRole
private SchemaDescriptor currentDefaultSchema
public SQLSessionContextImpl(SchemaDescriptor sd, java.lang.String currentUser)
public void setRole(java.lang.String role)
SQLSessionContext
setRole
in interface SQLSessionContext
public java.lang.String getRole()
SQLSessionContext
getRole
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
Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.