|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mysql.jdbc.ConnectionProperties
com.mysql.jdbc.Connection
A Connection represents a session with a specific database. Within the context of a Connection, SQL statements are executed and results are returned.
A Connection's database is able to provide information describing its tables, its supported SQL grammar, its stored procedures, the capabilities of this connection, etc. This information is obtained with the getMetaData method.
Connection
Nested Class Summary | |
(package private) class |
Connection.CompoundCacheKey
Used as a key for caching callable statements which (may) depend on current catalog...In 5.0.x, they don't (currently), but stored procedure names soon will, so current catalog is a (hidden) component of the name. |
(package private) class |
Connection.UltraDevWorkAround
Wrapper class for UltraDev CallableStatements that are really PreparedStatments. |
Nested classes inherited from class com.mysql.jdbc.ConnectionProperties |
ConnectionProperties.BooleanConnectionProperty, ConnectionProperties.ConnectionProperty, ConnectionProperties.IntegerConnectionProperty, ConnectionProperties.StringConnectionProperty |
Field Summary | |
static java.util.Map |
charsetMap
The mapping between MySQL charset names and Java charset names. |
protected static java.lang.String |
DEFAULT_LOGGER_CLASS
Default logger class name |
Fields inherited from class com.mysql.jdbc.ConnectionProperties |
ZERO_DATETIME_BEHAVIOR_CONVERT_TO_NULL, ZERO_DATETIME_BEHAVIOR_EXCEPTION, ZERO_DATETIME_BEHAVIOR_ROUND |
Fields inherited from interface java.sql.Connection |
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE |
Constructor Summary | |
(package private) |
Connection(java.lang.String hostToConnectTo,
int portToConnectTo,
java.util.Properties info,
java.lang.String databaseToConnectTo,
java.lang.String url,
NonRegisteringDriver d)
Creates a connection to a MySQL Server. |
Method Summary | |
protected static java.sql.SQLException |
appendMessageToException(java.sql.SQLException sqlEx,
java.lang.String messageToAppend)
|
void |
changeUser(java.lang.String userName,
java.lang.String newPassword)
Changes the user on this connection by performing a re-authentication. |
void |
clearWarnings()
After this call, getWarnings returns null until a new warning is reported for this connection. |
PreparedStatement |
clientPrepareStatement(java.lang.String sql)
DOCUMENT ME! |
PreparedStatement |
clientPrepareStatement(java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
DOCUMENT ME! |
void |
close()
In some cases, it is desirable to immediately release a Connection's database and JDBC resources instead of waiting for them to be automatically released (cant think why off the top of my head) Note: A Connection is automatically closed when it is garbage collected. |
void |
commit()
The method commit() makes all changes made since the previous commit/rollback permanent and releases any database locks currently held by the Connection. |
protected MysqlIO |
createNewIO(boolean isForReconnect)
Creates an IO channel to the server |
java.sql.Statement |
createStatement()
SQL statements without parameters are normally executed using Statement objects. |
java.sql.Statement |
createStatement(int resultSetType,
int resultSetConcurrency)
JDBC 2.0 Same as createStatement() above, but allows the default result set type and result set concurrency type to be overridden. |
java.sql.Statement |
createStatement(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
|
(package private) ResultSet |
execSQL(Statement callingStatement,
java.lang.String sql,
int maxRows,
Buffer packet,
int resultSetType,
int resultSetConcurrency,
boolean streamResults,
boolean queryIsSelectOnly,
java.lang.String catalog,
boolean unpackFields)
Send a query to the server. |
(package private) ResultSet |
execSQL(Statement callingStatement,
java.lang.String sql,
int maxRows,
Buffer packet,
int resultSetType,
int resultSetConcurrency,
boolean streamResults,
boolean queryIsSelectOnly,
java.lang.String catalog,
boolean unpackFields,
byte queryUsesVariables)
|
protected java.lang.String |
extractSqlFromPacket(java.lang.String possibleSqlQuery,
Buffer queryPacket,
int endOfQueryPacketPosition)
|
protected void |
finalize()
DOCUMENT ME! |
boolean |
getAutoCommit()
Gets the current auto-commit state |
java.lang.String |
getCatalog()
Return the connections current catalog name, or null if no catalog name is set, or we dont support catalogs. |
protected java.lang.String |
getCharacterSetMetadata()
|
(package private) SingleByteCharsetConverter |
getCharsetConverter(java.lang.String javaEncodingName)
Returns the locally mapped instance of a charset converter (to avoid overhead of static synchronization). |
protected java.lang.String |
getCharsetNameForIndex(int charsetIndex)
Returns the Java character encoding name for the given MySQL server charset index |
protected java.util.TimeZone |
getDefaultTimeZone()
DOCUMENT ME! |
int |
getHoldability()
|
(package private) int |
getId()
|
long |
getIdleFor()
NOT JDBC-Compliant, but clients can use this method to determine how long this connection has been idle. |
protected MysqlIO |
getIO()
Returns the IO channel to the server |
com.mysql.jdbc.log.Log |
getLog()
Returns the log mechanism that should be used to log information from/for this Connection. |
(package private) int |
getMaxAllowedPacket()
Returns the maximum packet size the MySQL server will accept |
protected int |
getMaxBytesPerChar(java.lang.String charset)
|
java.sql.DatabaseMetaData |
getMetaData()
A connection's database is able to provide information describing its tables, its supported SQL grammar, its stored procedures, the capabilities of this connection, etc. |
protected java.sql.Statement |
getMetadataSafeStatement()
|
(package private) java.lang.Object |
getMutex()
Returns the Mutex all queries are locked against |
(package private) int |
getNetBufferLength()
Returns the packet buffer size the MySQL server reported upon connection |
protected java.lang.String |
getServerCharacterEncoding()
Returns the server's character set |
(package private) int |
getServerMajorVersion()
|
(package private) int |
getServerMinorVersion()
|
(package private) int |
getServerSubMinorVersion()
|
java.util.TimeZone |
getServerTimezoneTZ()
DOCUMENT ME! |
(package private) java.lang.String |
getServerVariable(java.lang.String variableName)
|
(package private) java.lang.String |
getServerVersion()
|
int |
getTransactionIsolation()
Get this Connection's current transaction isolation mode. |
java.util.Map |
getTypeMap()
JDBC 2.0 Get the type-map object associated with this connection. |
(package private) java.lang.String |
getURL()
|
(package private) java.lang.String |
getUser()
|
java.sql.SQLWarning |
getWarnings()
The first warning reported by calls on this Connection is returned. |
protected void |
incrementNumberOfPreparedExecutes()
|
protected void |
incrementNumberOfPrepares()
|
protected void |
incrementNumberOfResultSetsFetched()
|
protected boolean |
isClientTzUTC()
|
boolean |
isClosed()
DOCUMENT ME! |
boolean |
isNoBackslashEscapesSet()
Is the server in a sql_mode that doesn't allow us to use \\ to escape things? |
(package private) boolean |
isReadInfoMsgEnabled()
|
boolean |
isReadOnly()
Tests to see if the connection is in Read Only Mode. |
protected boolean |
isServerTzUTC()
|
boolean |
lowerCaseTableNames()
Is the server configured to use lower-case table names only? |
(package private) void |
maxRowsChanged(Statement stmt)
Has the maxRows value changed? |
java.lang.String |
nativeSQL(java.lang.String sql)
A driver may convert the JDBC sql grammar into its system's native SQL grammar prior to sending it; nativeSQL returns the native form of the statement that the driver would have sent. |
boolean |
parserKnowsUnicode()
DOCUMENT ME! |
java.sql.CallableStatement |
prepareCall(java.lang.String sql)
DOCUMENT ME! |
java.sql.CallableStatement |
prepareCall(java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
JDBC 2.0 Same as prepareCall() above, but allows the default result set type and result set concurrency type to be overridden. |
java.sql.CallableStatement |
prepareCall(java.lang.String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql)
A SQL statement with or without IN parameters can be pre-compiled and stored in a PreparedStatement object. |
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int autoGenKeyIndex)
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int[] autoGenKeyIndexes)
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
JDBC 2.0 Same as prepareStatement() above, but allows the default result set type and result set concurrency type to be overridden. |
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
java.lang.String[] autoGenKeyColNames)
|
protected void |
realClose(boolean calledExplicitly,
boolean issueRollback)
Closes connection and frees resources. |
protected void |
registerQueryExecutionTime(long queryTimeMs)
DOCUMENT ME! |
(package private) void |
registerStatement(Statement stmt)
Register a Statement instance as open. |
void |
releaseSavepoint(java.sql.Savepoint arg0)
|
void |
resetServerState()
Resets the server-side state of this connection. |
void |
rollback()
The method rollback() drops all changes made since the previous commit/rollback and releases any database locks currently held by the Connection. |
void |
rollback(java.sql.Savepoint savepoint)
|
ServerPreparedStatement |
serverPrepare(java.lang.String sql)
DOCUMENT ME! |
protected boolean |
serverSupportsConvertFn()
|
void |
setAutoCommit(boolean autoCommitFlag)
If a connection is in auto-commit mode, than all its SQL statements will be executed and committed as individual transactions. |
void |
setCatalog(java.lang.String catalog)
A sub-space of this Connection's database may be selected by setting a catalog name. |
void |
setFailedOver(boolean flag)
|
void |
setHoldability(int arg0)
|
void |
setPreferSlaveDuringFailover(boolean flag)
|
(package private) void |
setReadInfoMsgEnabled(boolean flag)
|
void |
setReadOnly(boolean readOnlyFlag)
You can put a connection in read-only mode as a hint to enable database optimizations Note: setReadOnly cannot be called while in the middle of a transaction |
java.sql.Savepoint |
setSavepoint()
|
java.sql.Savepoint |
setSavepoint(java.lang.String name)
|
void |
setTransactionIsolation(int level)
DOCUMENT ME! |
void |
setTypeMap(java.util.Map map)
JDBC 2.0 Install a type-map object as the default type-map for this connection |
void |
shutdownServer()
Used by MiniAdmin to shutdown a MySQL server |
boolean |
supportsIsolationLevel()
DOCUMENT ME! |
boolean |
supportsQuotedIdentifiers()
DOCUMENT ME! |
boolean |
supportsTransactions()
DOCUMENT ME! |
(package private) void |
unregisterStatement(Statement stmt)
Remove the given statement from the list of open statements |
(package private) void |
unsetMaxRows(Statement stmt)
Called by statements on their .close() to let the connection know when it is safe to set the connection back to 'default' row limits. |
(package private) boolean |
useAnsiQuotedIdentifiers()
|
(package private) boolean |
useMaxRows()
Has maxRows() been set? |
boolean |
versionMeetsMinimum(int major,
int minor,
int subminor)
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.util.Map charsetMap
protected static final java.lang.String DEFAULT_LOGGER_CLASS
Constructor Detail |
Connection(java.lang.String hostToConnectTo, int portToConnectTo, java.util.Properties info, java.lang.String databaseToConnectTo, java.lang.String url, NonRegisteringDriver d) throws java.sql.SQLException
hostToConnectTo
- the hostname of the database serverportToConnectTo
- the port number the server is listening oninfo
- a Properties[] list holding the user and passworddatabaseToConnectTo
- the database to connect tourl
- the URL of the connectiond
- the Driver instantation of the connection
java.sql.SQLException
- if a database access error occursMethod Detail |
public void setAutoCommit(boolean autoCommitFlag) throws java.sql.SQLException
Note: MySQL does not support transactions, so this method is a no-op.
setAutoCommit
in interface java.sql.Connection
autoCommitFlag
- - true enables auto-commit; false disables it
java.sql.SQLException
- if a database access error occurspublic boolean getAutoCommit() throws java.sql.SQLException
getAutoCommit
in interface java.sql.Connection
java.sql.SQLException
- if an error occurssetAutoCommit
public void setCatalog(java.lang.String catalog) throws java.sql.SQLException
Note: MySQL's notion of catalogs are individual databases.
setCatalog
in interface java.sql.Connection
catalog
- the database for this connection to use
java.sql.SQLException
- if a database access error occurspublic java.lang.String getCatalog() throws java.sql.SQLException
Note: MySQL's notion of catalogs are individual databases.
getCatalog
in interface java.sql.Connection
java.sql.SQLException
- if a database access error occurspublic boolean isClosed()
isClosed
in interface java.sql.Connection
public void setHoldability(int arg0) throws java.sql.SQLException
setHoldability
in interface java.sql.Connection
java.sql.SQLException
setHoldability(int)
public int getHoldability() throws java.sql.SQLException
getHoldability
in interface java.sql.Connection
java.sql.SQLException
getHoldability()
public long getIdleFor()
public com.mysql.jdbc.log.Log getLog() throws java.sql.SQLException
java.sql.SQLException
- if an error occurspublic java.sql.DatabaseMetaData getMetaData() throws java.sql.SQLException
getMetaData
in interface java.sql.Connection
java.sql.SQLException
- if a database access error occurspublic void setReadOnly(boolean readOnlyFlag) throws java.sql.SQLException
setReadOnly
in interface java.sql.Connection
readOnlyFlag
- - true enables read-only mode; false disables it
java.sql.SQLException
- if a database access error occurspublic boolean isReadOnly() throws java.sql.SQLException
isReadOnly
in interface java.sql.Connection
java.sql.SQLException
- if a database access error occurspublic java.sql.Savepoint setSavepoint() throws java.sql.SQLException
setSavepoint
in interface java.sql.Connection
java.sql.SQLException
setSavepoint()
public java.sql.Savepoint setSavepoint(java.lang.String name) throws java.sql.SQLException
setSavepoint
in interface java.sql.Connection
java.sql.SQLException
setSavepoint(String)
public java.util.TimeZone getServerTimezoneTZ()
public void setTransactionIsolation(int level) throws java.sql.SQLException
setTransactionIsolation
in interface java.sql.Connection
level
- DOCUMENT ME!
java.sql.SQLException
- DOCUMENT ME!public int getTransactionIsolation() throws java.sql.SQLException
getTransactionIsolation
in interface java.sql.Connection
java.sql.SQLException
- if a database access error occurspublic void setTypeMap(java.util.Map map) throws java.sql.SQLException
setTypeMap
in interface java.sql.Connection
map
- the type mapping
java.sql.SQLException
- if a database error occurs.public java.util.Map getTypeMap() throws java.sql.SQLException
getTypeMap
in interface java.sql.Connection
java.sql.SQLException
- if a database error occurspublic java.sql.SQLWarning getWarnings() throws java.sql.SQLException
getWarnings
in interface java.sql.Connection
java.sql.SQLException
- if a database access error occurspublic void changeUser(java.lang.String userName, java.lang.String newPassword) throws java.sql.SQLException
userName
- the username to authenticate withnewPassword
- the password to authenticate with
java.sql.SQLException
- if authentication fails, or some other error occurs
while performing the command.public void clearWarnings() throws java.sql.SQLException
clearWarnings
in interface java.sql.Connection
java.sql.SQLException
- if a database access error occurspublic PreparedStatement clientPrepareStatement(java.lang.String sql) throws java.sql.SQLException
sql
- DOCUMENT ME!
java.sql.SQLException
- DOCUMENT ME!public PreparedStatement clientPrepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency) throws java.sql.SQLException
sql
- DOCUMENT ME!resultSetType
- DOCUMENT ME!resultSetConcurrency
- DOCUMENT ME!
java.sql.SQLException
- DOCUMENT ME!public void close() throws java.sql.SQLException
close
in interface java.sql.Connection
java.sql.SQLException
- if a database access error occurspublic void commit() throws java.sql.SQLException
Note: MySQL does not support transactions, so this method is a no-op.
commit
in interface java.sql.Connection
java.sql.SQLException
- if a database access error occurssetAutoCommit
public java.sql.Statement createStatement(int resultSetType, int resultSetConcurrency) throws java.sql.SQLException
createStatement
in interface java.sql.Connection
resultSetType
- a result set type, see ResultSet.TYPE_XXXresultSetConcurrency
- a concurrency type, see ResultSet.CONCUR_XXX
java.sql.SQLException
- if a database-access error occurs.public java.sql.Statement createStatement() throws java.sql.SQLException
createStatement
in interface java.sql.Connection
java.sql.SQLException
- passed through from the constructorpublic java.sql.Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws java.sql.SQLException
createStatement
in interface java.sql.Connection
java.sql.SQLException
createStatement(int, int, int)
public boolean lowerCaseTableNames()
public java.lang.String nativeSQL(java.lang.String sql) throws java.sql.SQLException
nativeSQL
in interface java.sql.Connection
sql
- a SQL statement that may contain one or more '?' parameter
placeholders
java.sql.SQLException
- if a database access error occurspublic boolean parserKnowsUnicode()
public java.sql.CallableStatement prepareCall(java.lang.String sql) throws java.sql.SQLException
prepareCall
in interface java.sql.Connection
sql
- DOCUMENT ME!
java.sql.SQLException
- DOCUMENT ME!public java.sql.CallableStatement prepareCall(java.lang.String sql, int resultSetType, int resultSetConcurrency) throws java.sql.SQLException
prepareCall
in interface java.sql.Connection
sql
- the SQL representing the callable statementresultSetType
- a result set type, see ResultSet.TYPE_XXXresultSetConcurrency
- a concurrency type, see ResultSet.CONCUR_XXX
java.sql.SQLException
- if a database-access error occurs.public java.sql.CallableStatement prepareCall(java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws java.sql.SQLException
prepareCall
in interface java.sql.Connection
java.sql.SQLException
prepareCall(String, int, int, int)
public java.sql.PreparedStatement prepareStatement(java.lang.String sql) throws java.sql.SQLException
Note: This method is optimized for handling parametric SQL statements that benefit from precompilation if the driver supports precompilation. In this case, the statement is not sent to the database until the PreparedStatement is executed. This has no direct effect on users; however it does affect which method throws certain java.sql.SQLExceptions
MySQL does not support precompilation of statements, so they are handled by the driver.
prepareStatement
in interface java.sql.Connection
sql
- a SQL statement that may contain one or more '?' IN parameter
placeholders
java.sql.SQLException
- if a database access error occurs.public java.sql.PreparedStatement prepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency) throws java.sql.SQLException
prepareStatement
in interface java.sql.Connection
sql
- the SQL query containing place holdersresultSetType
- a result set type, see ResultSet.TYPE_XXXresultSetConcurrency
- a concurrency type, see ResultSet.CONCUR_XXX
java.sql.SQLException
- if a database-access error occurs.public java.sql.PreparedStatement prepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws java.sql.SQLException
prepareStatement
in interface java.sql.Connection
java.sql.SQLException
prepareStatement(String, int, int, int)
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, int autoGenKeyIndex) throws java.sql.SQLException
prepareStatement
in interface java.sql.Connection
java.sql.SQLException
prepareStatement(String, int)
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, int[] autoGenKeyIndexes) throws java.sql.SQLException
prepareStatement
in interface java.sql.Connection
java.sql.SQLException
prepareStatement(String, int[])
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, java.lang.String[] autoGenKeyColNames) throws java.sql.SQLException
prepareStatement
in interface java.sql.Connection
java.sql.SQLException
prepareStatement(String, String[])
public void releaseSavepoint(java.sql.Savepoint arg0) throws java.sql.SQLException
releaseSavepoint
in interface java.sql.Connection
java.sql.SQLException
releaseSavepoint(Savepoint)
public void resetServerState() throws java.sql.SQLException
java.sql.SQLException
- if the operation fails while resetting server
state.public void rollback() throws java.sql.SQLException
rollback
in interface java.sql.Connection
java.sql.SQLException
- if a database access error occurscommit
public void rollback(java.sql.Savepoint savepoint) throws java.sql.SQLException
rollback
in interface java.sql.Connection
java.sql.SQLException
rollback(Savepoint)
public ServerPreparedStatement serverPrepare(java.lang.String sql) throws java.sql.SQLException
sql
- DOCUMENT ME!
java.sql.SQLException
- DOCUMENT ME!public void shutdownServer() throws java.sql.SQLException
java.sql.SQLException
- if the command can not be issued.public boolean supportsIsolationLevel()
public boolean supportsQuotedIdentifiers()
public boolean supportsTransactions()
public boolean versionMeetsMinimum(int major, int minor, int subminor) throws java.sql.SQLException
java.sql.SQLException
protected java.lang.String getCharsetNameForIndex(int charsetIndex) throws java.sql.SQLException
charsetIndex
-
java.sql.SQLException
- if the character set index isn't known by the
driverprotected java.util.TimeZone getDefaultTimeZone()
protected MysqlIO getIO() throws java.sql.SQLException
java.sql.SQLException
- if the connection is closed.protected MysqlIO createNewIO(boolean isForReconnect) throws java.sql.SQLException
isForReconnect
- is this request for a re-connect
java.sql.SQLException
- if a database access error occurs
CommunicationsException
- DOCUMENT ME!protected void finalize() throws java.lang.Throwable
java.lang.Throwable
- DOCUMENT ME!protected void incrementNumberOfPreparedExecutes()
protected void incrementNumberOfPrepares()
protected void incrementNumberOfResultSetsFetched()
protected void realClose(boolean calledExplicitly, boolean issueRollback) throws java.sql.SQLException
calledExplicitly
- is this being called from close()issueRollback
- should a rollback() be issued?
java.sql.SQLException
- if an error occursprotected void registerQueryExecutionTime(long queryTimeMs)
queryTimeMs
- SingleByteCharsetConverter getCharsetConverter(java.lang.String javaEncodingName)
javaEncodingName
- the encoding name to retrieve
int getId()
int getMaxAllowedPacket()
java.lang.Object getMutex() throws java.sql.SQLException
java.sql.SQLException
- DOCUMENT ME!int getNetBufferLength()
void setReadInfoMsgEnabled(boolean flag)
boolean isReadInfoMsgEnabled()
int getServerMajorVersion()
int getServerMinorVersion()
int getServerSubMinorVersion()
java.lang.String getServerVariable(java.lang.String variableName)
java.lang.String getServerVersion()
java.lang.String getURL()
java.lang.String getUser()
ResultSet execSQL(Statement callingStatement, java.lang.String sql, int maxRows, Buffer packet, int resultSetType, int resultSetConcurrency, boolean streamResults, boolean queryIsSelectOnly, java.lang.String catalog, boolean unpackFields) throws java.sql.SQLException
callingStatement
- DOCUMENT ME!sql
- the SQL statement to be executedmaxRows
- DOCUMENT ME!packet
- DOCUMENT ME!resultSetType
- DOCUMENT ME!resultSetConcurrency
- DOCUMENT ME!streamResults
- DOCUMENT ME!queryIsSelectOnly
- DOCUMENT ME!catalog
- DOCUMENT ME!unpackFields
- DOCUMENT ME!
java.sql.SQLException
- if a database error occursResultSet execSQL(Statement callingStatement, java.lang.String sql, int maxRows, Buffer packet, int resultSetType, int resultSetConcurrency, boolean streamResults, boolean queryIsSelectOnly, java.lang.String catalog, boolean unpackFields, byte queryUsesVariables) throws java.sql.SQLException
java.sql.SQLException
void maxRowsChanged(Statement stmt)
stmt
- DOCUMENT ME!void registerStatement(Statement stmt)
stmt
- the Statement instance to removevoid unregisterStatement(Statement stmt)
stmt
- the Statement instance to removevoid unsetMaxRows(Statement stmt) throws java.sql.SQLException
stmt
- the statement releasing it's max-rows requirement
java.sql.SQLException
- if a database error occurs issuing the statement
that sets the limit default.boolean useAnsiQuotedIdentifiers()
boolean useMaxRows()
protected int getMaxBytesPerChar(java.lang.String charset) throws java.sql.SQLException
java.sql.SQLException
protected java.lang.String extractSqlFromPacket(java.lang.String possibleSqlQuery, Buffer queryPacket, int endOfQueryPacketPosition) throws java.sql.SQLException
java.sql.SQLException
protected static java.sql.SQLException appendMessageToException(java.sql.SQLException sqlEx, java.lang.String messageToAppend)
protected java.lang.String getServerCharacterEncoding()
protected java.sql.Statement getMetadataSafeStatement() throws java.sql.SQLException
java.sql.SQLException
protected boolean isServerTzUTC()
protected boolean isClientTzUTC()
protected java.lang.String getCharacterSetMetadata()
protected boolean serverSupportsConvertFn() throws java.sql.SQLException
java.sql.SQLException
public boolean isNoBackslashEscapesSet()
public void setPreferSlaveDuringFailover(boolean flag)
public void setFailedOver(boolean flag)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |