| Modifier and Type | Field and Description |
|---|---|
| private HashMap | constraintModes
Maps a constraint id (key) into a Boolean for deferrable constraints. |
| private SchemaDescriptor | |
| private String | |
| private String | |
| private Boolean | deferredAll
True if all deferrable constraints are deferred in this transaction. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public HashMap | getConstraintModes()
Implements org. Get a handle to the session's constraint modes. |
| public String | getCurrentUser()
Implements org. Get the SQL current user of this SQL connection context |
| public SchemaDescriptor | getDefaultSchema()
Implements org. Get the schema of this SQL connection context |
| public Boolean | getDeferredAll()
Implements org. Get state of DEFERRED ALL setting. |
| public String | getRole()
Implements org. Get the SQL role of this SQL connection context |
| public Boolean | isDeferred(UUID
the constraint id constraintId)Implements org. Return |
| public void | resetConstraintModes()
Implements org. Clear deferred information for this transaction. |
| public void | setConstraintModes(HashMap<UUID, Boolean>
constraint mode map hm)Implements org. Initialize a inferior session context with the constraint mode map of the parent session context. |
| public void | setDefaultSchema(SchemaDescriptor sd)
Implements org. Set the schema of this SQL connection context |
| public void | setDeferred(UUID
The constraint id constraintId, boolean The new constraint mode deferred)Implements org. Set the constraint mode for this constraint to |
| public void | setDeferredAll(Boolean
the mode to set deferred)Implements org. Set the constraint mode for all deferrable constraints to
|
| public void | setRole(String role)
Implements org. Set the SQL role of this SQL connection context |
| public void | setUser(String user)
Implements org. Set the SQL current user of this SQL connection context |
| constraintModes | back to summary |
|---|---|
| private HashMap<UUID, Boolean> constraintModes Maps a constraint id (key) into a Boolean for deferrable
constraints.
If the Boolean value is | |
| currentDefaultSchema | back to summary |
|---|---|
| private SchemaDescriptor currentDefaultSchema | |
| currentRole | back to summary |
|---|---|
| private String currentRole | |
| currentUser | back to summary |
|---|---|
| private String currentUser | |
| deferredAll | back to summary |
|---|---|
| private Boolean deferredAll True if all deferrable constraints are deferred in this transaction. | |
| SQLSessionContextImpl | back to summary |
|---|---|
| public SQLSessionContextImpl(SchemaDescriptor sd, String currentUser) | |
| getConstraintModes | back to summary |
|---|---|
| public HashMap Implements org. Doc from org. Get a handle to the session's constraint modes. The caller is responsible for any cloning needed. | |
| getCurrentUser | back to summary |
|---|---|
| public String getCurrentUser() Implements org. Doc from org. Get the SQL current user of this SQL connection context | |
| getDefaultSchema | back to summary |
|---|---|
| public SchemaDescriptor getDefaultSchema() Implements org. Doc from org. Get the schema of this SQL connection context | |
| getDeferredAll | back to summary |
|---|---|
| public Boolean getDeferredAll() Implements org. Doc from org. Get state of DEFERRED ALL setting.
| |
| getRole | back to summary |
|---|---|
| public String getRole() Implements org. Doc from org. Get the SQL role of this SQL connection context | |
| isDeferred | back to summary |
|---|---|
| public Boolean isDeferred(UUID constraintId) Implements org. Doc from org. Return | |
| resetConstraintModes | back to summary |
|---|---|
| public void resetConstraintModes() Implements org. Doc from org. Clear deferred information for this transaction. | |
| setConstraintModes | back to summary |
|---|---|
| public void setConstraintModes(HashMap<UUID, Boolean> hm) Implements org. Doc from org. Initialize a inferior session context with the constraint mode map of the parent session context. | |
| setDefaultSchema | back to summary |
|---|---|
| public void setDefaultSchema(SchemaDescriptor sd) Implements org. Doc from org. Set the schema of this SQL connection context | |
| setDeferred | back to summary |
|---|---|
| public void setDeferred(UUID constraintId, boolean deferred) Implements org. Doc from org. Set the constraint mode for this constraint to
| |
| setDeferredAll | back to summary |
|---|---|
| public void setDeferredAll(Boolean deferred) Implements org. Doc from org. Set the constraint mode for all deferrable constraints to
| |
| setRole | back to summary |
|---|---|
| public void setRole(String role) Implements org. Doc from org. Set the SQL role of this SQL connection context | |
| setUser | back to summary |
|---|---|
| public void setUser(String user) Implements org. Doc from org. Set the SQL current user of this SQL connection context | |