Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
Source Code for Connector/J 8.0.31 - Core API
Where to get the Java source code for Connector/J 8.0 Core API module?
✍: FYIcenter.com
Java source code files for Connector/J 8.0 Core API module are:
⏎ com/mysql/cj/protocol/ServerSession.java
/* * Copyright (c) 2015, 2021, Oracle and/or its affiliates. * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License, version 2.0, as published by the * Free Software Foundation. * * This program is also distributed with certain software (including but not * limited to OpenSSL) that is licensed under separate terms, as designated in a * particular file or component or in included license documentation. The * authors of MySQL hereby grant you an additional permission to link the * program and your derivative works with the separately licensed software that * they have included with MySQL. * * Without limiting anything contained in the foregoing, this file, which is * part of MySQL Connector/J, is also subject to the Universal FOSS Exception, * version 1.0, a copy of which can be found at * http://oss.oracle.com/licenses/universal-foss-exception. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License, version 2.0, * for more details. * * You should have received a copy of the GNU General Public License along with * this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ package com.mysql.cj.protocol; import java.util.Map; import java.util.TimeZone; import com.mysql.cj.CharsetSettings; import com.mysql.cj.ServerVersion; import com.mysql.cj.exceptions.CJOperationNotSupportedException; import com.mysql.cj.exceptions.ExceptionFactory; /** * Keeps the effective states of server/session variables, * contains methods for initial retrieving of these states and for their actualization. */ public interface ServerSession { /** * There was no change between old and current SERVER_STATUS_IN_TRANS state and it is 0. */ public static int TRANSACTION_NOT_STARTED = 0; /** * There was no change between old and current SERVER_STATUS_IN_TRANS state and it is 1. */ public static int TRANSACTION_IN_PROGRESS = 1; /** * Old SERVER_STATUS_IN_TRANS state was 0 and current one is 1. */ public static int TRANSACTION_STARTED = 2; /** * Old SERVER_STATUS_IN_TRANS state was 1 and current one is 0. */ public static int TRANSACTION_COMPLETED = 3; ServerCapabilities getCapabilities(); void setCapabilities(ServerCapabilities capabilities); int getStatusFlags(); /** * Sets new server status (from response) without saving it's old state * * @param statusFlags * server status flags */ void setStatusFlags(int statusFlags); /** * Sets new server status (from response) * * @param statusFlags * new server status flags * @param saveOldStatusFlags * true if old server status flags should be preserved */ void setStatusFlags(int statusFlags, boolean saveOldStatusFlags); int getOldStatusFlags(); void setOldStatusFlags(int statusFlags); /** * * @return TRANSACTION_NOT_STARTED, TRANSACTION_IN_PROGRESS, TRANSACTION_STARTED or TRANSACTION_COMPLETED */ int getTransactionState(); boolean inTransactionOnServer(); /** * Server will only open a cursor and set this flag if it can, otherwise it punts and goes back to mysql_store_results() behavior. * * @return SERVER_STATUS_CURSOR_EXISTS <a href=http://dev.mysql.com/doc/internals/en/status-flags.html>status flag</a> value. */ 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(); Map<String, String> getServerVariables(); String getServerVariable(String name); int getServerVariable(String variableName, int fallbackValue); void setServerVariables(Map<String, String> serverVariables); /** * Get the version of the MySQL server we are talking to. * * @return {@link ServerVersion} */ ServerVersion getServerVersion(); /** * Is the version of the MySQL server we are connected to the given * version? * * @param version * the version to check for * * @return true if the version of the MySQL server we are connected is the * given version */ boolean isVersion(ServerVersion version); /** * Is the server configured to use lower-case table names only? * * @return true if lower_case_table_names is 'on' */ boolean isLowerCaseTableNames(); boolean storesLowerCaseTableNames(); boolean isQueryCacheEnabled(); boolean isNoBackslashEscapesSet(); boolean useAnsiQuotedIdentifiers(); public boolean isServerTruncatesFracSecs(); boolean isAutoCommit(); void setAutoCommit(boolean autoCommit); TimeZone getSessionTimeZone(); void setSessionTimeZone(TimeZone sessionTimeZone); /** * The 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. * * @return The default JVM time zone */ TimeZone getDefaultTimeZone(); default ServerSessionStateController getServerSessionStateController() { throw ExceptionFactory.createException(CJOperationNotSupportedException.class, "Not supported"); } CharsetSettings getCharsetSettings(); void setCharsetSettings(CharsetSettings charsetSettings); }
⏎ com/mysql/cj/protocol/ServerSession.java
Or download all of them as a single archive file:
File name: mysql-connector-java-core-api-8.0.31.zip File size: 309381 bytes Release date: 2022-09-03 Download
⇒ Source Code for Connector/J 8.0.31 - Core Impl
⇐ What Is mysql-connector-j-8.0.31.jar?
2023-05-31, 6156👍, 0💬
Popular Posts:
What Is XMLBeans xbean.jar 2.6.0? XMLBeans xbean.jar 2.6.0 is the JAR file for Apache XMLBeans 2.6.0...
ZooKeeper is a centralized service for maintaining configuration information, naming, providing dist...
What Is wstx-asl-3.2.8.jar? wstx-asl-3.2.8.jar is JAR file for the ASL component of Woodstox 3.2.8. ...
Where Can I see Java Source Code files for Xerces Java 2.11.2? Here are Java Source Code files for X...
xml-commons External Source Code Files are provided in the source package file, xml-commons-external...