public interface ServerSession
Modifier and Type | Field and Description |
---|---|
static int |
TRANSACTION_COMPLETED
Old SERVER_STATUS_IN_TRANS state was 1 and current one is 0.
|
static int |
TRANSACTION_IN_PROGRESS
There was no change between old and current SERVER_STATUS_IN_TRANS state and it is 1.
|
static int |
TRANSACTION_NOT_STARTED
There was no change between old and current SERVER_STATUS_IN_TRANS state and it is 0.
|
static int |
TRANSACTION_STARTED
Old SERVER_STATUS_IN_TRANS state was 0 and current one is 1.
|
Modifier and Type | Method and Description |
---|---|
boolean |
cursorExists()
Server will only open a cursor and set this flag if it can, otherwise it punts and goes back to mysql_store_results() behavior.
|
ServerCapabilities |
getCapabilities() |
CharsetSettings |
getCharsetSettings() |
long |
getClientParam() |
java.util.TimeZone |
getDefaultTimeZone()
The default time zone used to marshal date/time values to/from the server.
|
int |
getOldStatusFlags() |
default ServerSessionStateController |
getServerSessionStateController() |
java.lang.String |
getServerVariable(java.lang.String name) |
int |
getServerVariable(java.lang.String variableName,
int fallbackValue) |
java.util.Map<java.lang.String,java.lang.String> |
getServerVariables() |
ServerVersion |
getServerVersion()
Get the version of the MySQL server we are talking to.
|
java.util.TimeZone |
getSessionTimeZone() |
int |
getStatusFlags() |
int |
getTransactionState() |
boolean |
hasLongColumnInfo() |
boolean |
hasMoreResults() |
boolean |
inTransactionOnServer() |
boolean |
isAutocommit() |
boolean |
isAutoCommit() |
boolean |
isEOFDeprecated() |
boolean |
isLastRowSent() |
boolean |
isLowerCaseTableNames()
Is the server configured to use lower-case table names only?
|
boolean |
isNoBackslashEscapesSet() |
boolean |
isQueryCacheEnabled() |
boolean |
isServerTruncatesFracSecs() |
boolean |
isVersion(ServerVersion version)
Is the version of the MySQL server we are connected to the given
version?
|
boolean |
noGoodIndexUsed() |
boolean |
noIndexUsed() |
boolean |
queryWasSlow() |
void |
setAutoCommit(boolean autoCommit) |
void |
setCapabilities(ServerCapabilities capabilities) |
void |
setCharsetSettings(CharsetSettings charsetSettings) |
void |
setClientParam(long clientParam) |
void |
setOldStatusFlags(int statusFlags) |
void |
setServerVariables(java.util.Map<java.lang.String,java.lang.String> serverVariables) |
void |
setSessionTimeZone(java.util.TimeZone sessionTimeZone) |
void |
setStatusFlags(int statusFlags)
Sets new server status (from response) without saving it's old state
|
void |
setStatusFlags(int statusFlags,
boolean saveOldStatusFlags)
Sets new server status (from response)
|
boolean |
storesLowerCaseTableNames() |
boolean |
supportsQueryAttributes() |
boolean |
useAnsiQuotedIdentifiers() |
boolean |
useMultiResults() |
static final int TRANSACTION_NOT_STARTED
static final int TRANSACTION_IN_PROGRESS
static final int TRANSACTION_STARTED
static final int TRANSACTION_COMPLETED
ServerCapabilities getCapabilities()
void setCapabilities(ServerCapabilities capabilities)
int getStatusFlags()
void setStatusFlags(int statusFlags)
statusFlags
- server status flagsvoid setStatusFlags(int statusFlags, boolean saveOldStatusFlags)
statusFlags
- new server status flagssaveOldStatusFlags
- true if old server status flags should be preservedint getOldStatusFlags()
void setOldStatusFlags(int statusFlags)
int getTransactionState()
boolean inTransactionOnServer()
boolean cursorExists()
boolean isAutocommit()
boolean hasMoreResults()
boolean isLastRowSent()
boolean noGoodIndexUsed()
boolean noIndexUsed()
boolean queryWasSlow()
long getClientParam()
void setClientParam(long clientParam)
boolean hasLongColumnInfo()
boolean useMultiResults()
boolean isEOFDeprecated()
boolean supportsQueryAttributes()
java.util.Map<java.lang.String,java.lang.String> getServerVariables()
java.lang.String getServerVariable(java.lang.String name)
int getServerVariable(java.lang.String variableName, int fallbackValue)
void setServerVariables(java.util.Map<java.lang.String,java.lang.String> serverVariables)
ServerVersion getServerVersion()
ServerVersion
boolean isVersion(ServerVersion version)
version
- the version to check forboolean isLowerCaseTableNames()
boolean storesLowerCaseTableNames()
boolean isQueryCacheEnabled()
boolean isNoBackslashEscapesSet()
boolean useAnsiQuotedIdentifiers()
boolean isServerTruncatesFracSecs()
boolean isAutoCommit()
void setAutoCommit(boolean autoCommit)
java.util.TimeZone getSessionTimeZone()
void setSessionTimeZone(java.util.TimeZone sessionTimeZone)
java.util.TimeZone getDefaultTimeZone()
default ServerSessionStateController getServerSessionStateController()
CharsetSettings getCharsetSettings()
void setCharsetSettings(CharsetSettings charsetSettings)