public class XServerSession extends java.lang.Object implements ServerSession
TRANSACTION_COMPLETED, TRANSACTION_IN_PROGRESS, TRANSACTION_NOT_STARTED, TRANSACTION_STARTED
Constructor and Description |
---|
XServerSession() |
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() |
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getServerSessionStateController
public ServerCapabilities getCapabilities()
getCapabilities
in interface ServerSession
public void setCapabilities(ServerCapabilities capabilities)
setCapabilities
in interface ServerSession
public int getStatusFlags()
getStatusFlags
in interface ServerSession
public void setStatusFlags(int statusFlags)
ServerSession
setStatusFlags
in interface ServerSession
statusFlags
- server status flagspublic void setStatusFlags(int statusFlags, boolean saveOldStatusFlags)
ServerSession
setStatusFlags
in interface ServerSession
statusFlags
- new server status flagssaveOldStatusFlags
- true if old server status flags should be preservedpublic int getOldStatusFlags()
getOldStatusFlags
in interface ServerSession
public void setOldStatusFlags(int statusFlags)
setOldStatusFlags
in interface ServerSession
public int getTransactionState()
getTransactionState
in interface ServerSession
public boolean inTransactionOnServer()
inTransactionOnServer
in interface ServerSession
public boolean cursorExists()
ServerSession
cursorExists
in interface ServerSession
public boolean isAutocommit()
isAutocommit
in interface ServerSession
public boolean hasMoreResults()
hasMoreResults
in interface ServerSession
public boolean isLastRowSent()
isLastRowSent
in interface ServerSession
public boolean noGoodIndexUsed()
noGoodIndexUsed
in interface ServerSession
public boolean noIndexUsed()
noIndexUsed
in interface ServerSession
public boolean queryWasSlow()
queryWasSlow
in interface ServerSession
public long getClientParam()
getClientParam
in interface ServerSession
public void setClientParam(long clientParam)
setClientParam
in interface ServerSession
public boolean hasLongColumnInfo()
hasLongColumnInfo
in interface ServerSession
public boolean useMultiResults()
useMultiResults
in interface ServerSession
public boolean isEOFDeprecated()
isEOFDeprecated
in interface ServerSession
public boolean supportsQueryAttributes()
supportsQueryAttributes
in interface ServerSession
public java.util.Map<java.lang.String,java.lang.String> getServerVariables()
getServerVariables
in interface ServerSession
public java.lang.String getServerVariable(java.lang.String name)
getServerVariable
in interface ServerSession
public int getServerVariable(java.lang.String variableName, int fallbackValue)
getServerVariable
in interface ServerSession
public void setServerVariables(java.util.Map<java.lang.String,java.lang.String> serverVariables)
setServerVariables
in interface ServerSession
public ServerVersion getServerVersion()
ServerSession
getServerVersion
in interface ServerSession
ServerVersion
public boolean isVersion(ServerVersion version)
ServerSession
isVersion
in interface ServerSession
version
- the version to check forpublic boolean isLowerCaseTableNames()
ServerSession
isLowerCaseTableNames
in interface ServerSession
public boolean storesLowerCaseTableNames()
storesLowerCaseTableNames
in interface ServerSession
public boolean isQueryCacheEnabled()
isQueryCacheEnabled
in interface ServerSession
public boolean isNoBackslashEscapesSet()
isNoBackslashEscapesSet
in interface ServerSession
public boolean useAnsiQuotedIdentifiers()
useAnsiQuotedIdentifiers
in interface ServerSession
public boolean isServerTruncatesFracSecs()
isServerTruncatesFracSecs
in interface ServerSession
public boolean isAutoCommit()
isAutoCommit
in interface ServerSession
public void setAutoCommit(boolean autoCommit)
setAutoCommit
in interface ServerSession
public java.util.TimeZone getSessionTimeZone()
getSessionTimeZone
in interface ServerSession
public void setSessionTimeZone(java.util.TimeZone sessionTimeZone)
setSessionTimeZone
in interface ServerSession
public java.util.TimeZone getDefaultTimeZone()
ServerSession
getDefaultTimeZone
in interface ServerSession
public CharsetSettings getCharsetSettings()
getCharsetSettings
in interface ServerSession
public void setCharsetSettings(CharsetSettings charsetSettings)
setCharsetSettings
in interface ServerSession