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)
SQLSessionContextsetRole in interface SQLSessionContextpublic java.lang.String getRole()
SQLSessionContextgetRole in interface SQLSessionContextpublic void setUser(java.lang.String user)
SQLSessionContextsetUser in interface SQLSessionContextpublic java.lang.String getCurrentUser()
SQLSessionContextgetCurrentUser in interface SQLSessionContextpublic void setDefaultSchema(SchemaDescriptor sd)
SQLSessionContextsetDefaultSchema in interface SQLSessionContextpublic SchemaDescriptor getDefaultSchema()
SQLSessionContextgetDefaultSchema in interface SQLSessionContextApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.