public class MySqlSystemVariables extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MySqlSystemVariables.Scope |
| Modifier and Type | Field and Description |
|---|---|
static String |
CHARSET_NAME_SERVER
The system variable name for the name of the character set that the server uses by default.
|
private ConcurrentMap<String,String> |
global |
static String |
LOWER_CASE_TABLE_NAMES
The system variable name to see if the MySQL tables are stored and looked-up in case sensitive way.
|
private ConcurrentMap<String,String> |
session |
| Constructor and Description |
|---|
MySqlSystemVariables()
Create an instance.
|
| Modifier and Type | Method and Description |
|---|---|
private ConcurrentMap<String,String> |
forScope(MySqlSystemVariables.Scope scope) |
String |
getVariable(String name)
|
String |
getVariable(String name,
MySqlSystemVariables.Scope scope)
Get the variable with the specified name and scope.
|
MySqlSystemVariables |
setVariable(MySqlSystemVariables.Scope scope,
String name,
String value)
Set the variable with the specified scope.
|
private String |
variableName(String name) |
public static final String CHARSET_NAME_SERVER
public static final String LOWER_CASE_TABLE_NAMES
private final ConcurrentMap<String,String> global
private final ConcurrentMap<String,String> session
public MySqlSystemVariables setVariable(MySqlSystemVariables.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, MySqlSystemVariables.Scope scope)
name - the name of the variable; may not be nullscope - the variable scope; may not be nullpublic String getVariable(String name)
session (or local)
variables and then the global variables.name - the name of the variable; may not be nullprivate ConcurrentMap<String,String> forScope(MySqlSystemVariables.Scope scope)
Copyright © 2018 JBoss by Red Hat. All rights reserved.