public class SystemVariables extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SystemVariables.DefaultScope |
static interface |
SystemVariables.Scope
Interface that is used for enums defining the customized scope values for specific DBMSs.
|
| Modifier and Type | Field and Description |
|---|---|
private Map<SystemVariables.Scope,ConcurrentMap<String,String>> |
systemVariables |
| Constructor and Description |
|---|
SystemVariables()
Create an instance.
|
SystemVariables(List<SystemVariables.Scope> scopes) |
SystemVariables(SystemVariables.Scope[] scopes) |
| Modifier and Type | Method and Description |
|---|---|
protected ConcurrentMap<String,String> |
forScope(SystemVariables.Scope scope) |
private List<ConcurrentMap<String,String>> |
getOrderedSystemVariablesByScopePriority() |
String |
getVariable(String name)
Get the variable with the specified name, from the highest priority scope that contain it.
|
String |
getVariable(String name,
SystemVariables.Scope scope)
Get the variable with the specified name and scope.
|
SystemVariables |
setVariable(SystemVariables.Scope scope,
String name,
String value)
Set the variable with the specified scope.
|
private String |
variableName(String name) |
private final Map<SystemVariables.Scope,ConcurrentMap<String,String>> systemVariables
public SystemVariables()
public SystemVariables(SystemVariables.Scope[] scopes)
public SystemVariables(List<SystemVariables.Scope> scopes)
public SystemVariables setVariable(SystemVariables.Scope scope, String name, String value)
scope - the variable scope; may be null if the session scope is to be usedname - the name of the variable; may not be nullvalue - the variable value; may be null if the value for the named variable is to be removedpublic String getVariable(String name, SystemVariables.Scope scope)
name - the name of the variable; may not be nullscope - the variable scope; may not be nullpublic String getVariable(String name)
name - the name of the variable; may not be nullprivate List<ConcurrentMap<String,String>> getOrderedSystemVariablesByScopePriority()
protected ConcurrentMap<String,String> forScope(SystemVariables.Scope scope)
Copyright © 2020 JBoss by Red Hat. All rights reserved.