类 XServerSession
- java.lang.Object
-
- com.mysql.cj.protocol.x.XServerSession
-
- 所有已实现的接口:
ServerSession
public class XServerSession extends Object implements ServerSession
-
-
字段概要
-
从接口继承的字段 com.mysql.cj.protocol.ServerSession
TRANSACTION_COMPLETED, TRANSACTION_IN_PROGRESS, TRANSACTION_NOT_STARTED, TRANSACTION_STARTED
-
-
构造器概要
构造器 构造器 说明 XServerSession()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleancursorExists()Server will only open a cursor and set this flag if it can, otherwise it punts and goes back to mysql_store_results() behavior.ServerCapabilitiesgetCapabilities()CharsetSettingsgetCharsetSettings()longgetClientParam()TimeZonegetDefaultTimeZone()The default time zone used to marshal date/time values to/from the server.intgetOldStatusFlags()StringgetServerVariable(String name)intgetServerVariable(String variableName, int fallbackValue)Map<String,String>getServerVariables()ServerVersiongetServerVersion()Get the version of the MySQL server we are talking to.TimeZonegetSessionTimeZone()intgetStatusFlags()intgetTransactionState()booleanhasLongColumnInfo()booleanhasMoreResults()booleaninTransactionOnServer()booleanisAutocommit()booleanisAutoCommit()booleanisEOFDeprecated()booleanisLastRowSent()booleanisLowerCaseTableNames()Is the server configured to use lower-case table names only?booleanisNoBackslashEscapesSet()booleanisQueryCacheEnabled()booleanisServerTruncatesFracSecs()booleanisVersion(ServerVersion version)Is the version of the MySQL server we are connected to the given version?booleannoGoodIndexUsed()booleannoIndexUsed()booleanqueryWasSlow()voidsetAutoCommit(boolean autoCommit)voidsetCapabilities(ServerCapabilities capabilities)voidsetCharsetSettings(CharsetSettings charsetSettings)voidsetClientParam(long clientParam)voidsetOldStatusFlags(int statusFlags)voidsetServerVariables(Map<String,String> serverVariables)voidsetSessionTimeZone(TimeZone sessionTimeZone)voidsetStatusFlags(int statusFlags)Sets new server status (from response) without saving it's old statevoidsetStatusFlags(int statusFlags, boolean saveOldStatusFlags)Sets new server status (from response)booleanstoresLowerCaseTableNames()booleansupportsQueryAttributes()booleanuseAnsiQuotedIdentifiers()booleanuseMultiResults()-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 com.mysql.cj.protocol.ServerSession
getServerSessionStateController
-
-
-
-
方法详细资料
-
getCapabilities
public ServerCapabilities getCapabilities()
- 指定者:
getCapabilities在接口中ServerSession
-
setCapabilities
public void setCapabilities(ServerCapabilities capabilities)
- 指定者:
setCapabilities在接口中ServerSession
-
getStatusFlags
public int getStatusFlags()
- 指定者:
getStatusFlags在接口中ServerSession
-
setStatusFlags
public void setStatusFlags(int statusFlags)
从接口复制的说明:ServerSessionSets new server status (from response) without saving it's old state- 指定者:
setStatusFlags在接口中ServerSession- 参数:
statusFlags- server status flags
-
setStatusFlags
public void setStatusFlags(int statusFlags, boolean saveOldStatusFlags)从接口复制的说明:ServerSessionSets new server status (from response)- 指定者:
setStatusFlags在接口中ServerSession- 参数:
statusFlags- new server status flagssaveOldStatusFlags- true if old server status flags should be preserved
-
getOldStatusFlags
public int getOldStatusFlags()
- 指定者:
getOldStatusFlags在接口中ServerSession
-
setOldStatusFlags
public void setOldStatusFlags(int statusFlags)
- 指定者:
setOldStatusFlags在接口中ServerSession
-
getTransactionState
public int getTransactionState()
- 指定者:
getTransactionState在接口中ServerSession- 返回:
- TRANSACTION_NOT_STARTED, TRANSACTION_IN_PROGRESS, TRANSACTION_STARTED or TRANSACTION_COMPLETED
-
inTransactionOnServer
public boolean inTransactionOnServer()
- 指定者:
inTransactionOnServer在接口中ServerSession
-
cursorExists
public boolean cursorExists()
从接口复制的说明:ServerSessionServer will only open a cursor and set this flag if it can, otherwise it punts and goes back to mysql_store_results() behavior.- 指定者:
cursorExists在接口中ServerSession- 返回:
- SERVER_STATUS_CURSOR_EXISTS status flag value.
-
isAutocommit
public boolean isAutocommit()
- 指定者:
isAutocommit在接口中ServerSession
-
hasMoreResults
public boolean hasMoreResults()
- 指定者:
hasMoreResults在接口中ServerSession
-
isLastRowSent
public boolean isLastRowSent()
- 指定者:
isLastRowSent在接口中ServerSession
-
noGoodIndexUsed
public boolean noGoodIndexUsed()
- 指定者:
noGoodIndexUsed在接口中ServerSession
-
noIndexUsed
public boolean noIndexUsed()
- 指定者:
noIndexUsed在接口中ServerSession
-
queryWasSlow
public boolean queryWasSlow()
- 指定者:
queryWasSlow在接口中ServerSession
-
getClientParam
public long getClientParam()
- 指定者:
getClientParam在接口中ServerSession
-
setClientParam
public void setClientParam(long clientParam)
- 指定者:
setClientParam在接口中ServerSession
-
hasLongColumnInfo
public boolean hasLongColumnInfo()
- 指定者:
hasLongColumnInfo在接口中ServerSession
-
useMultiResults
public boolean useMultiResults()
- 指定者:
useMultiResults在接口中ServerSession
-
isEOFDeprecated
public boolean isEOFDeprecated()
- 指定者:
isEOFDeprecated在接口中ServerSession
-
supportsQueryAttributes
public boolean supportsQueryAttributes()
- 指定者:
supportsQueryAttributes在接口中ServerSession
-
getServerVariables
public Map<String,String> getServerVariables()
- 指定者:
getServerVariables在接口中ServerSession
-
getServerVariable
public String getServerVariable(String name)
- 指定者:
getServerVariable在接口中ServerSession
-
getServerVariable
public int getServerVariable(String variableName, int fallbackValue)
- 指定者:
getServerVariable在接口中ServerSession
-
setServerVariables
public void setServerVariables(Map<String,String> serverVariables)
- 指定者:
setServerVariables在接口中ServerSession
-
getServerVersion
public ServerVersion getServerVersion()
从接口复制的说明:ServerSessionGet the version of the MySQL server we are talking to.- 指定者:
getServerVersion在接口中ServerSession- 返回:
ServerVersion
-
isVersion
public boolean isVersion(ServerVersion version)
从接口复制的说明:ServerSessionIs the version of the MySQL server we are connected to the given version?- 指定者:
isVersion在接口中ServerSession- 参数:
version- the version to check for- 返回:
- true if the version of the MySQL server we are connected is the given version
-
isLowerCaseTableNames
public boolean isLowerCaseTableNames()
从接口复制的说明:ServerSessionIs the server configured to use lower-case table names only?- 指定者:
isLowerCaseTableNames在接口中ServerSession- 返回:
- true if lower_case_table_names is 'on'
-
storesLowerCaseTableNames
public boolean storesLowerCaseTableNames()
- 指定者:
storesLowerCaseTableNames在接口中ServerSession
-
isQueryCacheEnabled
public boolean isQueryCacheEnabled()
- 指定者:
isQueryCacheEnabled在接口中ServerSession
-
isNoBackslashEscapesSet
public boolean isNoBackslashEscapesSet()
- 指定者:
isNoBackslashEscapesSet在接口中ServerSession
-
useAnsiQuotedIdentifiers
public boolean useAnsiQuotedIdentifiers()
- 指定者:
useAnsiQuotedIdentifiers在接口中ServerSession
-
isServerTruncatesFracSecs
public boolean isServerTruncatesFracSecs()
- 指定者:
isServerTruncatesFracSecs在接口中ServerSession
-
isAutoCommit
public boolean isAutoCommit()
- 指定者:
isAutoCommit在接口中ServerSession
-
setAutoCommit
public void setAutoCommit(boolean autoCommit)
- 指定者:
setAutoCommit在接口中ServerSession
-
getSessionTimeZone
public TimeZone getSessionTimeZone()
- 指定者:
getSessionTimeZone在接口中ServerSession
-
setSessionTimeZone
public void setSessionTimeZone(TimeZone sessionTimeZone)
- 指定者:
setSessionTimeZone在接口中ServerSession
-
getDefaultTimeZone
public TimeZone getDefaultTimeZone()
从接口复制的说明:ServerSessionThe default time zone used to marshal date/time values to/from the server. This is used when methods like getDate() are called without a calendar argument.- 指定者:
getDefaultTimeZone在接口中ServerSession- 返回:
- The default JVM time zone
-
getCharsetSettings
public CharsetSettings getCharsetSettings()
- 指定者:
getCharsetSettings在接口中ServerSession
-
setCharsetSettings
public void setCharsetSettings(CharsetSettings charsetSettings)
- 指定者:
setCharsetSettings在接口中ServerSession
-
-