Java Doc for ConnectionImpl.java in  » Database-JDBC-Connection-Pool » mysql-connector-java-5.1.3 » com » mysql » jdbc » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database JDBC Connection Pool » mysql connector java 5.1.3 » com.mysql.jdbc 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.mysql.jdbc.ConnectionPropertiesImpl
      com.mysql.jdbc.ConnectionImpl

ConnectionImpl
public class ConnectionImpl extends ConnectionPropertiesImpl implements Connection(Code)
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.


author:
   Mark Matthews
version:
   $Id: ConnectionImpl.java 6562 2007-09-05 16:02:17Z mmatthews $
See Also:   java.sql.Connection

Inner Class :class CompoundCacheKey

Field Summary
final protected static  StringDEFAULT_LOGGER_CLASS
    
public static  MapcharsetMap
     The mapping between MySQL charset names and Java charset names.
protected  Propertiesprops
    
protected  LRUCacheresultSetMetadataCache
    

Constructor Summary
protected  ConnectionImpl()
    
protected  ConnectionImpl(String hostToConnectTo, int portToConnectTo, Properties info, String databaseToConnectTo, String url)
     Creates a connection to a MySQL Server.

Method Summary
protected  voidabortInternal()
     Clobbers the physical network connection and marks this connection as closed.
protected static  SQLExceptionappendMessageToException(SQLException sqlEx, String messageToAppend)
    
public  voidchangeUser(String userName, String newPassword)
     Changes the user on this connection by performing a re-authentication.
protected  voidcheckClosed()
    
public  voidclearHasTriedMaster()
    
public  voidclearWarnings()
     After this call, getWarnings returns null until a new warning is reported for this connection.
public  PreparedStatementclientPrepareStatement(String sql)
    
public  java.sql.PreparedStatementclientPrepareStatement(String sql, int autoGenKeyIndex)
    
public  PreparedStatementclientPrepareStatement(String sql, int resultSetType, int resultSetConcurrency)
    
protected  PreparedStatementclientPrepareStatement(String sql, int resultSetType, int resultSetConcurrency, boolean processEscapeCodesIfNeeded)
    
public  java.sql.PreparedStatementclientPrepareStatement(String sql, int[] autoGenKeyIndexes)
    
public  java.sql.PreparedStatementclientPrepareStatement(String sql, String[] autoGenKeyColNames)
    
public  voidclose()
     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.
public  voidcommit()
     The method commit() makes all changes made since the previous commit/rollback permanent and releases any database locks currently held by the Connection.
protected  voidcreateNewIO(boolean isForReconnect)
    
public  java.sql.StatementcreateStatement()
     SQL statements without parameters are normally executed using Statement objects.
public  java.sql.StatementcreateStatement(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.
public  java.sql.StatementcreateStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability)
    
protected  voiddumpTestcaseQuery(String query)
    
protected  Connectionduplicate()
    
 ResultSetInternalMethodsexecSQL(StatementImpl callingStatement, String sql, int maxRows, Buffer packet, int resultSetType, int resultSetConcurrency, boolean streamResults, String catalog, Field[] cachedMetadata)
     Send a query to the server.
 ResultSetInternalMethodsexecSQL(StatementImpl callingStatement, String sql, int maxRows, Buffer packet, int resultSetType, int resultSetConcurrency, boolean streamResults, String catalog, Field[] cachedMetadata, boolean isBatch)
    
protected  StringextractSqlFromPacket(String possibleSqlQuery, Buffer queryPacket, int endOfQueryPacketPosition)
    
protected  voidfinalize()
    
protected  StringBuffergenerateConnectionCommentBlock(StringBuffer buf)
    
public  intgetActiveStatementCount()
    
public  booleangetAutoCommit()
    
protected  CachedResultSetMetaDatagetCachedMetaData(String sql)
     Returns cached metadata (or null if not cached) for the given query, which must match _exactly_. This method is synchronized by the caller on getMutex(), so if calling this method from internal code in the driver, make sure it's synchronized on the mutex that guards communication with the server.
protected  CalendargetCalendarInstanceForSessionOrNew()
    
protected static  TimergetCancelTimer()
    
public  StringgetCatalog()
     Return the connections current catalog name, or null if no catalog name is set, or we dont support catalogs.
protected  StringgetCharacterSetMetadata()
    
 SingleByteCharsetConvertergetCharsetConverter(String javaEncodingName)
     Returns the locally mapped instance of a charset converter (to avoid overhead of static synchronization).
protected  StringgetCharsetNameForIndex(int charsetIndex)
    
protected  TimeZonegetDefaultTimeZone()
    
protected  StringgetErrorMessageEncoding()
    
public  intgetHoldability()
    
protected  MysqlIOgetIO()
    
 longgetId()
    
public  longgetIdleFor()
     NOT JDBC-Compliant, but clients can use this method to determine how long this connection has been idle.
protected static  ConnectiongetInstance(String hostToConnectTo, int portToConnectTo, Properties info, String databaseToConnectTo, String url)
     Creates a connection instance -- We need to provide factory-style methods so we can support both JDBC3 (and older) and JDBC4 runtimes, otherwise the class verifier complains when it tries to load JDBC4-only interface classes that are present in JDBC4 method signatures.
public  LoggetLog()
     Returns the log mechanism that should be used to log information from/for this Connection.
 intgetMaxAllowedPacket()
    
protected  intgetMaxBytesPerChar(String javaCharsetName)
    
public  java.sql.DatabaseMetaDatagetMetaData()
     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.StatementgetMetadataSafeStatement()
    
 ObjectgetMutex()
    
 intgetNetBufferLength()
    
public  StringgetServerCharacterEncoding()
    
 intgetServerMajorVersion()
    
 intgetServerMinorVersion()
    
 intgetServerSubMinorVersion()
    
public  TimeZonegetServerTimezoneTZ()
    
 StringgetServerVariable(String variableName)
    
 StringgetServerVersion()
    
protected  CalendargetSessionLockedCalendar()
    
public  StringgetStatementComment()
     Returns the comment that will be prepended to all statements sent to the server.
public  intgetTransactionIsolation()
     Get this Connection's current transaction isolation mode.
public synchronized  java.util.MapgetTypeMap()
     JDBC 2.0 Get the type-map object associated with this connection.
 StringgetURL()
    
 StringgetUser()
    
protected  CalendargetUtcCalendar()
    
public  SQLWarninggetWarnings()
     The first warning reported by calls on this Connection is returned.
public  booleanhasSameProperties(Connection c)
    
public  booleanhasTriedMaster()
    
protected  voidincrementNumberOfPreparedExecutes()
    
protected  voidincrementNumberOfPrepares()
    
protected  voidincrementNumberOfResultSetsCreated()
    
protected  voidinitializeResultsMetadataFromCache(String sql, CachedResultSetMetaData cachedMetaData, ResultSetInternalMethods resultSet)
     Caches CachedResultSetMetaData that has been placed in the cache using the given SQL as a key.
protected  booleanisClientTzUTC()
    
public  booleanisClosed()
    
protected  booleanisCursorFetchEnabled()
    
public  booleanisInGlobalTx()
    
public synchronized  booleanisMasterConnection()
    
public  booleanisNoBackslashEscapesSet()
    
 booleanisReadInfoMsgEnabled()
    
public  booleanisReadOnly()
     Tests to see if the connection is in Read Only Mode.
protected  booleanisRunningOnJDK13()
    
public synchronized  booleanisSameResource(Connection otherConnection)
    
protected  booleanisServerTzUTC()
    
public  booleanlowerCaseTableNames()
    
 voidmaxRowsChanged(StatementImpl stmt)
    
public  StringnativeSQL(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.
public  booleanparserKnowsUnicode()
    
public  voidping()
    
protected  voidpingInternal(boolean checkForClosedConnection)
    
public  java.sql.CallableStatementprepareCall(String sql)
    
public  java.sql.CallableStatementprepareCall(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.
public  java.sql.CallableStatementprepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
    
public  java.sql.PreparedStatementprepareStatement(String sql)
     A SQL statement with or without IN parameters can be pre-compiled and stored in a PreparedStatement object.
public  java.sql.PreparedStatementprepareStatement(String sql, int autoGenKeyIndex)
    
public  java.sql.PreparedStatementprepareStatement(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.
public  java.sql.PreparedStatementprepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
    
public  java.sql.PreparedStatementprepareStatement(String sql, int[] autoGenKeyIndexes)
    
public  java.sql.PreparedStatementprepareStatement(String sql, String[] autoGenKeyColNames)
    
protected  voidrealClose(boolean calledExplicitly, boolean issueRollback, boolean skipLocalTeardown, Throwable reason)
     Closes connection and frees resources.
protected  voidrecachePreparedStatement(ServerPreparedStatement pstmt)
    
protected  voidregisterQueryExecutionTime(long queryTimeMs)
    
 voidregisterStatement(StatementImpl stmt)
     Register a Statement instance as open.
public  voidreleaseSavepoint(Savepoint arg0)
    
protected  voidreportNumberOfTablesAccessed(int numTablesAccessed)
    
public  voidresetServerState()
     Resets the server-side state of this connection.
public  voidrollback()
     The method rollback() drops all changes made since the previous commit/rollback and releases any database locks currently held by the Connection.
public  voidrollback(Savepoint savepoint)
    
public  ServerPreparedStatementserverPrepareStatement(String sql)
    
public  java.sql.PreparedStatementserverPrepareStatement(String sql, int autoGenKeyIndex)
    
public  java.sql.PreparedStatementserverPrepareStatement(String sql, int resultSetType, int resultSetConcurrency)
    
public  java.sql.PreparedStatementserverPrepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
    
public  java.sql.PreparedStatementserverPrepareStatement(String sql, int[] autoGenKeyIndexes)
    
public  java.sql.PreparedStatementserverPrepareStatement(String sql, String[] autoGenKeyColNames)
    
protected  booleanserverSupportsConvertFn()
    
public  voidsetAutoCommit(boolean autoCommitFlag)
     If a connection is in auto-commit mode, than all its SQL statements will be executed and committed as individual transactions.
public  voidsetCatalog(String catalog)
     A sub-space of this Connection's database may be selected by setting a catalog name.
public synchronized  voidsetFailedOver(boolean flag)
    
public  voidsetHoldability(int arg0)
    
public  voidsetInGlobalTx(boolean flag)
    
public  voidsetPreferSlaveDuringFailover(boolean flag)
    
 voidsetReadInfoMsgEnabled(boolean flag)
    
public  voidsetReadOnly(boolean readOnlyFlag)
    
protected  voidsetReadOnlyInternal(boolean readOnlyFlag)
    
public  java.sql.SavepointsetSavepoint()
    
public synchronized  java.sql.SavepointsetSavepoint(String name)
    
public  voidsetStatementComment(String comment)
     Sets the comment that will be prepended to all statements sent to the server.
public synchronized  voidsetTransactionIsolation(int level)
    
public synchronized  voidsetTypeMap(java.util.Map map)
    
public  voidshutdownServer()
    
public  booleansupportsIsolationLevel()
    
public  booleansupportsQuotedIdentifiers()
    
public  booleansupportsTransactions()
    
 voidunregisterStatement(StatementImpl stmt)
    
 voidunsetMaxRows(StatementImpl 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.
 booleanuseAnsiQuotedIdentifiers()
    
 booleanuseMaxRows()
    
public  booleanversionMeetsMinimum(int major, int minor, int subminor)
    

Field Detail
DEFAULT_LOGGER_CLASS
final protected static String DEFAULT_LOGGER_CLASS(Code)
Default logger class name



charsetMap
public static Map charsetMap(Code)
The mapping between MySQL charset names and Java charset names. Initialized by loadCharacterSetMapping()



props
protected Properties props(Code)
Properties for this connection specified by user



resultSetMetadataCache
protected LRUCache resultSetMetadataCache(Code)
Cache of ResultSet metadata




Constructor Detail
ConnectionImpl
protected ConnectionImpl()(Code)
' For the delegate only



ConnectionImpl
protected ConnectionImpl(String hostToConnectTo, int portToConnectTo, Properties info, String databaseToConnectTo, String url) throws SQLException(Code)
Creates a connection to a MySQL Server.
Parameters:
  hostToConnectTo - the hostname of the database server
Parameters:
  portToConnectTo - the port number the server is listening on
Parameters:
  info - a Properties[] list holding the user and password
Parameters:
  databaseToConnectTo - the database to connect to
Parameters:
  url - the URL of the connection
Parameters:
  d - the Driver instantation of the connection
exception:
  SQLException - if a database access error occurs




Method Detail
abortInternal
protected void abortInternal() throws SQLException(Code)
Clobbers the physical network connection and marks this connection as closed.
throws:
  SQLException -



appendMessageToException
protected static SQLException appendMessageToException(SQLException sqlEx, String messageToAppend)(Code)



changeUser
public void changeUser(String userName, String newPassword) throws SQLException(Code)
Changes the user on this connection by performing a re-authentication. If authentication fails, the connection will remain under the context of the current user.
Parameters:
  userName - the username to authenticate with
Parameters:
  newPassword - the password to authenticate with
throws:
  SQLException - if authentication fails, or some other error occurs whileperforming the command.



checkClosed
protected void checkClosed() throws SQLException(Code)



clearHasTriedMaster
public void clearHasTriedMaster()(Code)



clearWarnings
public void clearWarnings() throws SQLException(Code)
After this call, getWarnings returns null until a new warning is reported for this connection.
exception:
  SQLException - if a database access error occurs



clientPrepareStatement
public PreparedStatement clientPrepareStatement(String sql) throws SQLException(Code)
DOCUMENT ME!
Parameters:
  sql - DOCUMENT ME! DOCUMENT ME!
throws:
  SQLException - DOCUMENT ME!



clientPrepareStatement
public java.sql.PreparedStatement clientPrepareStatement(String sql, int autoGenKeyIndex) throws SQLException(Code)

See Also:   Connection.prepareStatement(Stringint)



clientPrepareStatement
public PreparedStatement clientPrepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException(Code)
DOCUMENT ME!
Parameters:
  sql - DOCUMENT ME!
Parameters:
  resultSetType - DOCUMENT ME!
Parameters:
  resultSetConcurrency - DOCUMENT ME! DOCUMENT ME!
throws:
  SQLException - DOCUMENT ME!



clientPrepareStatement
protected PreparedStatement clientPrepareStatement(String sql, int resultSetType, int resultSetConcurrency, boolean processEscapeCodesIfNeeded) throws SQLException(Code)



clientPrepareStatement
public java.sql.PreparedStatement clientPrepareStatement(String sql, int[] autoGenKeyIndexes) throws SQLException(Code)

See Also:   java.sql.Connection.prepareStatement(Stringint[])



clientPrepareStatement
public java.sql.PreparedStatement clientPrepareStatement(String sql, String[] autoGenKeyColNames) throws SQLException(Code)

See Also:   java.sql.Connection.prepareStatement(StringString[])



close
public void close() throws SQLException(Code)
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. Certain fatal errors also result in a closed connection.
exception:
  SQLException - if a database access error occurs



commit
public void commit() throws SQLException(Code)
The method commit() makes all changes made since the previous commit/rollback permanent and releases any database locks currently held by the Connection. This method should only be used when auto-commit has been disabled.

Note: MySQL does not support transactions, so this method is a no-op.


exception:
  SQLException - if a database access error occurs
See Also:   setAutoCommit



createNewIO
protected void createNewIO(boolean isForReconnect) throws SQLException(Code)
Creates an IO channel to the server
Parameters:
  isForReconnect - is this request for a re-connect a new MysqlIO instance connected to a server
throws:
  SQLException - if a database access error occurs
throws:
  CommunicationsException - DOCUMENT ME!



createStatement
public java.sql.Statement createStatement() throws SQLException(Code)
SQL statements without parameters are normally executed using Statement objects. If the same SQL statement is executed many times, it is more efficient to use a PreparedStatement a new Statement object
throws:
  SQLException - passed through from the constructor



createStatement
public java.sql.Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException(Code)
JDBC 2.0 Same as createStatement() above, but allows the default result set type and result set concurrency type to be overridden.
Parameters:
  resultSetType - a result set type, see ResultSet.TYPE_XXX
Parameters:
  resultSetConcurrency - a concurrency type, see ResultSet.CONCUR_XXX a new Statement object
exception:
  SQLException - if a database-access error occurs.



createStatement
public java.sql.Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException(Code)

See Also:   Connection.createStatement(intintint)



dumpTestcaseQuery
protected void dumpTestcaseQuery(String query)(Code)



duplicate
protected Connection duplicate() throws SQLException(Code)



execSQL
ResultSetInternalMethods execSQL(StatementImpl callingStatement, String sql, int maxRows, Buffer packet, int resultSetType, int resultSetConcurrency, boolean streamResults, String catalog, Field[] cachedMetadata) throws SQLException(Code)
Send a query to the server. Returns one of the ResultSet objects. This is synchronized, so Statement's queries will be serialized.
Parameters:
  callingStatement - DOCUMENT ME!
Parameters:
  sql - the SQL statement to be executed
Parameters:
  maxRows - DOCUMENT ME!
Parameters:
  packet - DOCUMENT ME!
Parameters:
  resultSetType - DOCUMENT ME!
Parameters:
  resultSetConcurrency - DOCUMENT ME!
Parameters:
  streamResults - DOCUMENT ME!
Parameters:
  queryIsSelectOnly - DOCUMENT ME!
Parameters:
  catalog - DOCUMENT ME!
Parameters:
  unpackFields - DOCUMENT ME! a ResultSet holding the results
exception:
  SQLException - if a database error occurs



execSQL
ResultSetInternalMethods execSQL(StatementImpl callingStatement, String sql, int maxRows, Buffer packet, int resultSetType, int resultSetConcurrency, boolean streamResults, String catalog, Field[] cachedMetadata, boolean isBatch) throws SQLException(Code)



extractSqlFromPacket
protected String extractSqlFromPacket(String possibleSqlQuery, Buffer queryPacket, int endOfQueryPacketPosition) throws SQLException(Code)



finalize
protected void finalize() throws Throwable(Code)
DOCUMENT ME!
throws:
  Throwable - DOCUMENT ME!



generateConnectionCommentBlock
protected StringBuffer generateConnectionCommentBlock(StringBuffer buf)(Code)



getActiveStatementCount
public int getActiveStatementCount()(Code)



getAutoCommit
public boolean getAutoCommit() throws SQLException(Code)
Gets the current auto-commit state Current state of auto-commit
exception:
  SQLException - if an error occurs
See Also:   setAutoCommit



getCachedMetaData
protected CachedResultSetMetaData getCachedMetaData(String sql)(Code)
Returns cached metadata (or null if not cached) for the given query, which must match _exactly_. This method is synchronized by the caller on getMutex(), so if calling this method from internal code in the driver, make sure it's synchronized on the mutex that guards communication with the server.
Parameters:
  sql - the query that is the key to the cache metadata cached for the given SQL, or none if it doesn'texist.



getCalendarInstanceForSessionOrNew
protected Calendar getCalendarInstanceForSessionOrNew()(Code)
Optimization to only use one calendar per-session, or calculate it for each call, depending on user configuration



getCancelTimer
protected static Timer getCancelTimer()(Code)



getCatalog
public String getCatalog() throws SQLException(Code)
Return the connections current catalog name, or null if no catalog name is set, or we dont support catalogs.

Note: MySQL's notion of catalogs are individual databases.

the current catalog name or null
exception:
  SQLException - if a database access error occurs



getCharacterSetMetadata
protected String getCharacterSetMetadata()(Code)
Returns the characterSetMetadata.



getCharsetConverter
SingleByteCharsetConverter getCharsetConverter(String javaEncodingName) throws SQLException(Code)
Returns the locally mapped instance of a charset converter (to avoid overhead of static synchronization).
Parameters:
  javaEncodingName - the encoding name to retrieve a character converter, or null if one couldn't be mapped.



getCharsetNameForIndex
protected String getCharsetNameForIndex(int charsetIndex) throws SQLException(Code)
Returns the Java character encoding name for the given MySQL server charset index
Parameters:
  charsetIndex - the Java character encoding name for the given MySQL servercharset index
throws:
  SQLException - if the character set index isn't known by the driver



getDefaultTimeZone
protected TimeZone getDefaultTimeZone()(Code)
DOCUMENT ME! Returns the defaultTimeZone.



getErrorMessageEncoding
protected String getErrorMessageEncoding()(Code)



getHoldability
public int getHoldability() throws SQLException(Code)

See Also:   Connection.getHoldability



getIO
protected MysqlIO getIO() throws SQLException(Code)
Returns the IO channel to the server the IO channel to the server
throws:
  SQLException - if the connection is closed.



getId
long getId()(Code)



getIdleFor
public long getIdleFor()(Code)
NOT JDBC-Compliant, but clients can use this method to determine how long this connection has been idle. This time (reported in milliseconds) is updated once a query has completed. number of ms that this connection has been idle, 0 if the driveris busy retrieving results.



getInstance
protected static Connection getInstance(String hostToConnectTo, int portToConnectTo, Properties info, String databaseToConnectTo, String url) throws SQLException(Code)
Creates a connection instance -- We need to provide factory-style methods so we can support both JDBC3 (and older) and JDBC4 runtimes, otherwise the class verifier complains when it tries to load JDBC4-only interface classes that are present in JDBC4 method signatures.



getLog
public Log getLog() throws SQLException(Code)
Returns the log mechanism that should be used to log information from/for this Connection. the Log instance to use for logging messages.
throws:
  SQLException - if an error occurs



getMaxAllowedPacket
int getMaxAllowedPacket()(Code)
Returns the maximum packet size the MySQL server will accept DOCUMENT ME!



getMaxBytesPerChar
protected int getMaxBytesPerChar(String javaCharsetName) throws SQLException(Code)



getMetaData
public java.sql.DatabaseMetaData getMetaData() throws SQLException(Code)
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 made available through a DatabaseMetaData object. a DatabaseMetaData object for this connection
exception:
  SQLException - if a database access error occurs



getMetadataSafeStatement
protected java.sql.Statement getMetadataSafeStatement() throws SQLException(Code)



getMutex
Object getMutex() throws SQLException(Code)
Returns the Mutex all queries are locked against DOCUMENT ME!
throws:
  SQLException - DOCUMENT ME!



getNetBufferLength
int getNetBufferLength()(Code)
Returns the packet buffer size the MySQL server reported upon connection DOCUMENT ME!



getServerCharacterEncoding
public String getServerCharacterEncoding()(Code)
Returns the server's character set the server's character set.



getServerMajorVersion
int getServerMajorVersion()(Code)



getServerMinorVersion
int getServerMinorVersion()(Code)



getServerSubMinorVersion
int getServerSubMinorVersion()(Code)



getServerTimezoneTZ
public TimeZone getServerTimezoneTZ()(Code)
DOCUMENT ME! DOCUMENT ME!



getServerVariable
String getServerVariable(String variableName)(Code)



getServerVersion
String getServerVersion()(Code)



getSessionLockedCalendar
protected Calendar getSessionLockedCalendar()(Code)



getStatementComment
public String getStatementComment()(Code)
Returns the comment that will be prepended to all statements sent to the server. the comment that will be prepended to all statementssent to the server.



getTransactionIsolation
public int getTransactionIsolation() throws SQLException(Code)
Get this Connection's current transaction isolation mode. the current TRANSACTION_ mode value
exception:
  SQLException - if a database access error occurs



getTypeMap
public synchronized java.util.Map getTypeMap() throws SQLException(Code)
JDBC 2.0 Get the type-map object associated with this connection. By default, the map returned is empty. the type map
throws:
  SQLException - if a database error occurs



getURL
String getURL()(Code)



getUser
String getUser()(Code)



getUtcCalendar
protected Calendar getUtcCalendar()(Code)



getWarnings
public SQLWarning getWarnings() throws SQLException(Code)
The first warning reported by calls on this Connection is returned. Note: Sebsequent warnings will be changed to this java.sql.SQLWarning the first java.sql.SQLWarning or null
exception:
  SQLException - if a database access error occurs



hasSameProperties
public boolean hasSameProperties(Connection c)(Code)



hasTriedMaster
public boolean hasTriedMaster()(Code)



incrementNumberOfPreparedExecutes
protected void incrementNumberOfPreparedExecutes()(Code)



incrementNumberOfPrepares
protected void incrementNumberOfPrepares()(Code)



incrementNumberOfResultSetsCreated
protected void incrementNumberOfResultSetsCreated()(Code)



initializeResultsMetadataFromCache
protected void initializeResultsMetadataFromCache(String sql, CachedResultSetMetaData cachedMetaData, ResultSetInternalMethods resultSet) throws SQLException(Code)
Caches CachedResultSetMetaData that has been placed in the cache using the given SQL as a key. This method is synchronized by the caller on getMutex(), so if calling this method from internal code in the driver, make sure it's synchronized on the mutex that guards communication with the server.
Parameters:
  sql - the query that the metadata pertains too.
Parameters:
  cachedMetaData - metadata (if it exists) to populate the cache.
Parameters:
  resultSet - the result set to retreive metadata from, or apply to.
throws:
  SQLException -



isClientTzUTC
protected boolean isClientTzUTC()(Code)



isClosed
public boolean isClosed()(Code)
DOCUMENT ME! DOCUMENT ME!



isCursorFetchEnabled
protected boolean isCursorFetchEnabled() throws SQLException(Code)



isInGlobalTx
public boolean isInGlobalTx()(Code)



isMasterConnection
public synchronized boolean isMasterConnection()(Code)
Is this connection connected to the first host in the list if there is a list of servers in the URL? true if this connection is connected to the first in the list.



isNoBackslashEscapesSet
public boolean isNoBackslashEscapesSet()(Code)
Is the server in a sql_mode that doesn't allow us to use \\ to escape things? Returns the noBackslashEscapes.



isReadInfoMsgEnabled
boolean isReadInfoMsgEnabled()(Code)



isReadOnly
public boolean isReadOnly() throws SQLException(Code)
Tests to see if the connection is in Read Only Mode. Note that we cannot really put the database in read only mode, but we pretend we can by returning the value of the readOnly flag true if the connection is read only
exception:
  SQLException - if a database access error occurs



isRunningOnJDK13
protected boolean isRunningOnJDK13()(Code)



isSameResource
public synchronized boolean isSameResource(Connection otherConnection)(Code)



isServerTzUTC
protected boolean isServerTzUTC()(Code)



lowerCaseTableNames
public boolean lowerCaseTableNames()(Code)
Is the server configured to use lower-case table names only? true if lower_case_table_names is 'on'



maxRowsChanged
void maxRowsChanged(StatementImpl stmt)(Code)
Has the maxRows value changed?
Parameters:
  stmt - DOCUMENT ME!



nativeSQL
public String nativeSQL(String sql) throws SQLException(Code)
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.
Parameters:
  sql - a SQL statement that may contain one or more '?' parameterplaceholders the native form of this statement
exception:
  SQLException - if a database access error occurs



parserKnowsUnicode
public boolean parserKnowsUnicode()(Code)
DOCUMENT ME! DOCUMENT ME!



ping
public void ping() throws SQLException(Code)
Detect if the connection is still good
throws:
  SQLException - if the ping fails



pingInternal
protected void pingInternal(boolean checkForClosedConnection) throws SQLException(Code)



prepareCall
public java.sql.CallableStatement prepareCall(String sql) throws SQLException(Code)
DOCUMENT ME!
Parameters:
  sql - DOCUMENT ME! DOCUMENT ME!
throws:
  SQLException - DOCUMENT ME!



prepareCall
public java.sql.CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException(Code)
JDBC 2.0 Same as prepareCall() above, but allows the default result set type and result set concurrency type to be overridden.
Parameters:
  sql - the SQL representing the callable statement
Parameters:
  resultSetType - a result set type, see ResultSet.TYPE_XXX
Parameters:
  resultSetConcurrency - a concurrency type, see ResultSet.CONCUR_XXX a new CallableStatement object containing the pre-compiled SQLstatement
exception:
  SQLException - if a database-access error occurs.



prepareCall
public java.sql.CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException(Code)

See Also:   Connection.prepareCall(Stringintintint)



prepareStatement
public java.sql.PreparedStatement prepareStatement(String sql) throws SQLException(Code)
A SQL statement with or without IN parameters can be pre-compiled and stored in a PreparedStatement object. This object can then be used to efficiently execute this statement multiple times.

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.


Parameters:
  sql - a SQL statement that may contain one or more '?' IN parameterplaceholders a new PreparedStatement object containing the pre-compiledstatement.
exception:
  SQLException - if a database access error occurs.



prepareStatement
public java.sql.PreparedStatement prepareStatement(String sql, int autoGenKeyIndex) throws SQLException(Code)

See Also:   Connection.prepareStatement(Stringint)



prepareStatement
public java.sql.PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException(Code)
JDBC 2.0 Same as prepareStatement() above, but allows the default result set type and result set concurrency type to be overridden.
Parameters:
  sql - the SQL query containing place holders
Parameters:
  resultSetType - a result set type, see ResultSet.TYPE_XXX
Parameters:
  resultSetConcurrency - a concurrency type, see ResultSet.CONCUR_XXX a new PreparedStatement object containing the pre-compiled SQLstatement
exception:
  SQLException - if a database-access error occurs.



prepareStatement
public java.sql.PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException(Code)

See Also:   Connection.prepareStatement(Stringintintint)



prepareStatement
public java.sql.PreparedStatement prepareStatement(String sql, int[] autoGenKeyIndexes) throws SQLException(Code)

See Also:   Connection.prepareStatement(Stringint[])



prepareStatement
public java.sql.PreparedStatement prepareStatement(String sql, String[] autoGenKeyColNames) throws SQLException(Code)

See Also:   Connection.prepareStatement(StringString[])



realClose
protected void realClose(boolean calledExplicitly, boolean issueRollback, boolean skipLocalTeardown, Throwable reason) throws SQLException(Code)
Closes connection and frees resources.
Parameters:
  calledExplicitly - is this being called from close()
Parameters:
  issueRollback - should a rollback() be issued?
throws:
  SQLException - if an error occurs



recachePreparedStatement
protected void recachePreparedStatement(ServerPreparedStatement pstmt) throws SQLException(Code)



registerQueryExecutionTime
protected void registerQueryExecutionTime(long queryTimeMs)(Code)
DOCUMENT ME!
Parameters:
  queryTimeMs -



registerStatement
void registerStatement(StatementImpl stmt)(Code)
Register a Statement instance as open.
Parameters:
  stmt - the Statement instance to remove



releaseSavepoint
public void releaseSavepoint(Savepoint arg0) throws SQLException(Code)

See Also:   Connection.releaseSavepoint(Savepoint)



reportNumberOfTablesAccessed
protected void reportNumberOfTablesAccessed(int numTablesAccessed)(Code)



resetServerState
public void resetServerState() throws SQLException(Code)
Resets the server-side state of this connection. Doesn't work for MySQL versions older than 4.0.6 or if isParanoid() is set (it will become a no-op in these cases). Usually only used from connection pooling code.
throws:
  SQLException - if the operation fails while resetting server state.



rollback
public void rollback() throws SQLException(Code)
The method rollback() drops all changes made since the previous commit/rollback and releases any database locks currently held by the Connection.
exception:
  SQLException - if a database access error occurs
See Also:   commit



rollback
public void rollback(Savepoint savepoint) throws SQLException(Code)

See Also:   Connection.rollback(Savepoint)



serverPrepareStatement
public ServerPreparedStatement serverPrepareStatement(String sql) throws SQLException(Code)

See Also:   java.sql.Connection.prepareStatement(String)



serverPrepareStatement
public java.sql.PreparedStatement serverPrepareStatement(String sql, int autoGenKeyIndex) throws SQLException(Code)

See Also:   java.sql.Connection.prepareStatement(Stringint)



serverPrepareStatement
public java.sql.PreparedStatement serverPrepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException(Code)

See Also:   java.sql.Connection.prepareStatement(Stringintint)



serverPrepareStatement
public java.sql.PreparedStatement serverPrepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException(Code)

See Also:   java.sql.Connection.prepareStatement(Stringintintint)



serverPrepareStatement
public java.sql.PreparedStatement serverPrepareStatement(String sql, int[] autoGenKeyIndexes) throws SQLException(Code)

See Also:   java.sql.Connection.prepareStatement(Stringint[])



serverPrepareStatement
public java.sql.PreparedStatement serverPrepareStatement(String sql, String[] autoGenKeyColNames) throws SQLException(Code)

See Also:   java.sql.Connection.prepareStatement(StringString[])



serverSupportsConvertFn
protected boolean serverSupportsConvertFn() throws SQLException(Code)



setAutoCommit
public void setAutoCommit(boolean autoCommitFlag) throws SQLException(Code)
If a connection is in auto-commit mode, than all its SQL statements will be executed and committed as individual transactions. Otherwise, its SQL statements are grouped into transactions that are terminated by either commit() or rollback(). By default, new connections are in auto- commit mode. The commit occurs when the statement completes or the next execute occurs, whichever comes first. In the case of statements returning a ResultSet, the statement completes when the last row of the ResultSet has been retrieved or the ResultSet has been closed. In advanced cases, a single statement may return multiple results as well as output parameter values. Here the commit occurs when all results and output param values have been retrieved.

Note: MySQL does not support transactions, so this method is a no-op.


Parameters:
  autoCommitFlag - -true enables auto-commit; false disables it
exception:
  SQLException - if a database access error occurs



setCatalog
public void setCatalog(String catalog) throws SQLException(Code)
A sub-space of this Connection's database may be selected by setting a catalog name. If the driver does not support catalogs, it will silently ignore this request

Note: MySQL's notion of catalogs are individual databases.


Parameters:
  catalog - the database for this connection to use
throws:
  SQLException - if a database access error occurs



setFailedOver
public synchronized void setFailedOver(boolean flag)(Code)

Parameters:
  failedOver - The failedOver to set.



setHoldability
public void setHoldability(int arg0) throws SQLException(Code)

See Also:   Connection.setHoldability(int)



setInGlobalTx
public void setInGlobalTx(boolean flag)(Code)



setPreferSlaveDuringFailover
public void setPreferSlaveDuringFailover(boolean flag)(Code)

Parameters:
  preferSlaveDuringFailover - The preferSlaveDuringFailover to set.



setReadInfoMsgEnabled
void setReadInfoMsgEnabled(boolean flag)(Code)



setReadOnly
public void setReadOnly(boolean readOnlyFlag) throws SQLException(Code)
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
Parameters:
  readOnlyFlag - -true enables read-only mode; false disables it
exception:
  SQLException - if a database access error occurs



setReadOnlyInternal
protected void setReadOnlyInternal(boolean readOnlyFlag) throws SQLException(Code)



setSavepoint
public java.sql.Savepoint setSavepoint() throws SQLException(Code)

See Also:   Connection.setSavepoint



setSavepoint
public synchronized java.sql.Savepoint setSavepoint(String name) throws SQLException(Code)

See Also:   Connection.setSavepoint(String)



setStatementComment
public void setStatementComment(String comment)(Code)
Sets the comment that will be prepended to all statements sent to the server. Do not use slash-star or star-slash tokens in the comment as these will be added by the driver itself.
Parameters:
  comment - the comment that will be prepended to all statementssent to the server.



setTransactionIsolation
public synchronized void setTransactionIsolation(int level) throws SQLException(Code)
DOCUMENT ME!
Parameters:
  level - DOCUMENT ME!
throws:
  SQLException - DOCUMENT ME!



setTypeMap
public synchronized void setTypeMap(java.util.Map map) throws SQLException(Code)
JDBC 2.0 Install a type-map object as the default type-map for this connection
Parameters:
  map - the type mapping
throws:
  SQLException - if a database error occurs.



shutdownServer
public void shutdownServer() throws SQLException(Code)
Used by MiniAdmin to shutdown a MySQL server
throws:
  SQLException - if the command can not be issued.



supportsIsolationLevel
public boolean supportsIsolationLevel()(Code)
DOCUMENT ME! DOCUMENT ME!



supportsQuotedIdentifiers
public boolean supportsQuotedIdentifiers()(Code)
DOCUMENT ME! DOCUMENT ME!



supportsTransactions
public boolean supportsTransactions()(Code)
DOCUMENT ME! DOCUMENT ME!



unregisterStatement
void unregisterStatement(StatementImpl stmt)(Code)
Remove the given statement from the list of open statements
Parameters:
  stmt - the Statement instance to remove



unsetMaxRows
void unsetMaxRows(StatementImpl stmt) throws SQLException(Code)
Called by statements on their .close() to let the connection know when it is safe to set the connection back to 'default' row limits.
Parameters:
  stmt - the statement releasing it's max-rows requirement
throws:
  SQLException - if a database error occurs issuing the statement that setsthe limit default.



useAnsiQuotedIdentifiers
boolean useAnsiQuotedIdentifiers()(Code)



useMaxRows
boolean useMaxRows()(Code)
Has maxRows() been set? DOCUMENT ME!



versionMeetsMinimum
public boolean versionMeetsMinimum(int major, int minor, int subminor) throws SQLException(Code)



Fields inherited from com.mysql.jdbc.ConnectionPropertiesImpl
final protected static String ZERO_DATETIME_BEHAVIOR_CONVERT_TO_NULL(Code)(Java Doc)
final protected static String ZERO_DATETIME_BEHAVIOR_EXCEPTION(Code)(Java Doc)
final protected static String ZERO_DATETIME_BEHAVIOR_ROUND(Code)(Java Doc)
protected MemorySizeConnectionProperty largeRowSizeThreshold(Code)(Java Doc)

Methods inherited from com.mysql.jdbc.ConnectionPropertiesImpl
protected static DriverPropertyInfo[] exposeAsDriverPropertyInfo(Properties info, int slotsToReserve) throws SQLException(Code)(Java Doc)
protected DriverPropertyInfo[] exposeAsDriverPropertyInfoInternal(Properties info, int slotsToReserve) throws SQLException(Code)(Java Doc)
protected Properties exposeAsProperties(Properties info) throws SQLException(Code)(Java Doc)
public String exposeAsXml() throws SQLException(Code)(Java Doc)
public boolean getAllowLoadLocalInfile()(Code)(Java Doc)
public boolean getAllowMultiQueries()(Code)(Java Doc)
public boolean getAllowNanAndInf()(Code)(Java Doc)
public boolean getAllowUrlInLocalInfile()(Code)(Java Doc)
public boolean getAlwaysSendSetIsolation()(Code)(Java Doc)
public boolean getAutoClosePStmtStreams()(Code)(Java Doc)
public boolean getAutoDeserialize()(Code)(Java Doc)
public boolean getAutoGenerateTestcaseScript()(Code)(Java Doc)
public boolean getAutoReconnectForPools()(Code)(Java Doc)
public int getBlobSendChunkSize()(Code)(Java Doc)
public boolean getBlobsAreStrings()(Code)(Java Doc)
public boolean getCacheCallableStatements()(Code)(Java Doc)
public boolean getCacheCallableStmts()(Code)(Java Doc)
public boolean getCachePrepStmts()(Code)(Java Doc)
public boolean getCachePreparedStatements()(Code)(Java Doc)
public boolean getCacheResultSetMetadata()(Code)(Java Doc)
public boolean getCacheServerConfiguration()(Code)(Java Doc)
public int getCallableStatementCacheSize()(Code)(Java Doc)
public int getCallableStmtCacheSize()(Code)(Java Doc)
public boolean getCapitalizeTypeNames()(Code)(Java Doc)
public String getCharacterSetResults()(Code)(Java Doc)
public String getClientCertificateKeyStorePassword()(Code)(Java Doc)
public String getClientCertificateKeyStoreType()(Code)(Java Doc)
public String getClientCertificateKeyStoreUrl()(Code)(Java Doc)
public String getClientInfoProvider()(Code)(Java Doc)
public String getClobCharacterEncoding()(Code)(Java Doc)
public boolean getClobberStreamingResults()(Code)(Java Doc)
public int getConnectTimeout()(Code)(Java Doc)
public String getConnectionCollation()(Code)(Java Doc)
public boolean getContinueBatchOnError()(Code)(Java Doc)
public boolean getCreateDatabaseIfNotExist()(Code)(Java Doc)
public int getDefaultFetchSize()(Code)(Java Doc)
public boolean getDontTrackOpenResources()(Code)(Java Doc)
public boolean getDumpMetadataOnColumnNotFound()(Code)(Java Doc)
public boolean getDumpQueriesOnException()(Code)(Java Doc)
public boolean getDynamicCalendars()(Code)(Java Doc)
public boolean getElideSetAutoCommits()(Code)(Java Doc)
public boolean getEmptyStringsConvertToZero()(Code)(Java Doc)
public boolean getEmulateLocators()(Code)(Java Doc)
public boolean getEmulateUnsupportedPstmts()(Code)(Java Doc)
public boolean getEnablePacketDebug()(Code)(Java Doc)
public boolean getEnableQueryTimeouts()(Code)(Java Doc)
public String getEncoding()(Code)(Java Doc)
public boolean getExplainSlowQueries()(Code)(Java Doc)
public boolean getFailOverReadOnly()(Code)(Java Doc)
public boolean getFunctionsNeverReturnBlobs()(Code)(Java Doc)
public boolean getGatherPerfMetrics()(Code)(Java Doc)
public boolean getGatherPerformanceMetrics()(Code)(Java Doc)
public boolean getGenerateSimpleParameterMetadata()(Code)(Java Doc)
protected boolean getHighAvailability()(Code)(Java Doc)
public boolean getHoldResultsOpenOverStatementClose()(Code)(Java Doc)
public boolean getIgnoreNonTxTables()(Code)(Java Doc)
public boolean getIncludeInnodbStatusInDeadlockExceptions()(Code)(Java Doc)
public int getInitialTimeout()(Code)(Java Doc)
public boolean getInteractiveClient()(Code)(Java Doc)
public boolean getIsInteractiveClient()(Code)(Java Doc)
public boolean getJdbcCompliantTruncation()(Code)(Java Doc)
public boolean getJdbcCompliantTruncationForReads()(Code)(Java Doc)
public String getLargeRowSizeThreshold()(Code)(Java Doc)
public String getLoadBalanceStrategy()(Code)(Java Doc)
public String getLocalSocketAddress()(Code)(Java Doc)
public int getLocatorFetchBufferSize()(Code)(Java Doc)
public boolean getLogSlowQueries()(Code)(Java Doc)
public boolean getLogXaCommands()(Code)(Java Doc)
public String getLogger()(Code)(Java Doc)
public String getLoggerClassName()(Code)(Java Doc)
public boolean getMaintainTimeStats()(Code)(Java Doc)
public int getMaxQuerySizeToLog()(Code)(Java Doc)
public int getMaxReconnects()(Code)(Java Doc)
public int getMaxRows()(Code)(Java Doc)
public int getMetadataCacheSize()(Code)(Java Doc)
public int getNetTimeoutForStreamingResults()(Code)(Java Doc)
public boolean getNoAccessToProcedureBodies()(Code)(Java Doc)
public boolean getNoDatetimeStringSync()(Code)(Java Doc)
public boolean getNoTimezoneConversionForTimeType()(Code)(Java Doc)
public boolean getNullCatalogMeansCurrent()(Code)(Java Doc)
public boolean getNullNamePatternMatchesAll()(Code)(Java Doc)
public boolean getOverrideSupportsIntegrityEnhancementFacility()(Code)(Java Doc)
public int getPacketDebugBufferSize()(Code)(Java Doc)
public boolean getPadCharsWithSpace()(Code)(Java Doc)
public boolean getParanoid()(Code)(Java Doc)
public boolean getPedantic()(Code)(Java Doc)
public boolean getPinGlobalTxToPhysicalConnection()(Code)(Java Doc)
public boolean getPopulateInsertRowWithDefaultValues()(Code)(Java Doc)
public int getPrepStmtCacheSize()(Code)(Java Doc)
public int getPrepStmtCacheSqlLimit()(Code)(Java Doc)
public int getPreparedStatementCacheSize()(Code)(Java Doc)
public int getPreparedStatementCacheSqlLimit()(Code)(Java Doc)
public boolean getProcessEscapeCodesForPrepStmts()(Code)(Java Doc)
public boolean getProfileSQL()(Code)(Java Doc)
public boolean getProfileSql()(Code)(Java Doc)
public String getPropertiesTransform()(Code)(Java Doc)
public int getQueriesBeforeRetryMaster()(Code)(Java Doc)
public boolean getReconnectAtTxEnd()(Code)(Java Doc)
public boolean getRelaxAutoCommit()(Code)(Java Doc)
public int getReportMetricsIntervalMillis()(Code)(Java Doc)
public boolean getRequireSSL()(Code)(Java Doc)
public String getResourceId()(Code)(Java Doc)
public int getResultSetSizeThreshold()(Code)(Java Doc)
protected boolean getRetainStatementAfterResultSetClose()(Code)(Java Doc)
public boolean getRewriteBatchedStatements()(Code)(Java Doc)
public boolean getRollbackOnPooledClose()(Code)(Java Doc)
public boolean getRoundRobinLoadBalance()(Code)(Java Doc)
public boolean getRunningCTS13()(Code)(Java Doc)
public int getSecondsBeforeRetryMaster()(Code)(Java Doc)
public String getServerTimezone()(Code)(Java Doc)
public String getSessionVariables()(Code)(Java Doc)
public int getSlowQueryThresholdMillis()(Code)(Java Doc)
public long getSlowQueryThresholdNanos()(Code)(Java Doc)
public String getSocketFactory()(Code)(Java Doc)
public String getSocketFactoryClassName()(Code)(Java Doc)
public int getSocketTimeout()(Code)(Java Doc)
public String getStatementInterceptors()(Code)(Java Doc)
public boolean getStrictFloatingPoint()(Code)(Java Doc)
public boolean getStrictUpdates()(Code)(Java Doc)
public boolean getTcpKeepAlive()(Code)(Java Doc)
public boolean getTcpNoDelay()(Code)(Java Doc)
public int getTcpRcvBuf()(Code)(Java Doc)
public int getTcpSndBuf()(Code)(Java Doc)
public int getTcpTrafficClass()(Code)(Java Doc)
public boolean getTinyInt1isBit()(Code)(Java Doc)
public boolean getTraceProtocol()(Code)(Java Doc)
public boolean getTransformedBitIsBoolean()(Code)(Java Doc)
public boolean getTreatUtilDateAsTimestamp()(Code)(Java Doc)
public String getTrustCertificateKeyStorePassword()(Code)(Java Doc)
public String getTrustCertificateKeyStoreType()(Code)(Java Doc)
public String getTrustCertificateKeyStoreUrl()(Code)(Java Doc)
public boolean getUltraDevHack()(Code)(Java Doc)
public boolean getUseBlobToStoreUTF8OutsideBMP()(Code)(Java Doc)
public boolean getUseCompression()(Code)(Java Doc)
public String getUseConfigs()(Code)(Java Doc)
public boolean getUseCursorFetch()(Code)(Java Doc)
public boolean getUseDirectRowUnpack()(Code)(Java Doc)
public boolean getUseDynamicCharsetInfo()(Code)(Java Doc)
public boolean getUseFastDateParsing()(Code)(Java Doc)
public boolean getUseFastIntParsing()(Code)(Java Doc)
public boolean getUseGmtMillisForDatetimes()(Code)(Java Doc)
public boolean getUseHostsInPrivileges()(Code)(Java Doc)
public boolean getUseInformationSchema()(Code)(Java Doc)
public boolean getUseJDBCCompliantTimezoneShift()(Code)(Java Doc)
public boolean getUseJvmCharsetConverters()(Code)(Java Doc)
public boolean getUseLocalSessionState()(Code)(Java Doc)
public boolean getUseNanosForElapsedTime()(Code)(Java Doc)
public boolean getUseOldAliasMetadataBehavior()(Code)(Java Doc)
public boolean getUseOldUTF8Behavior()(Code)(Java Doc)
public boolean getUseOnlyServerErrorMessages()(Code)(Java Doc)
public boolean getUseReadAheadInput()(Code)(Java Doc)
public boolean getUseSSL()(Code)(Java Doc)
public boolean getUseSSPSCompatibleTimezoneShift()(Code)(Java Doc)
public boolean getUseServerPrepStmts()(Code)(Java Doc)
public boolean getUseServerPreparedStmts()(Code)(Java Doc)
public boolean getUseSqlStateCodes()(Code)(Java Doc)
public boolean getUseStreamLengthsInPrepStmts()(Code)(Java Doc)
public boolean getUseTimezone()(Code)(Java Doc)
public boolean getUseUltraDevWorkAround()(Code)(Java Doc)
public boolean getUseUnbufferedInput()(Code)(Java Doc)
public boolean getUseUnicode()(Code)(Java Doc)
public boolean getUseUsageAdvisor()(Code)(Java Doc)
public String getUtf8OutsideBmpExcludedColumnNamePattern()(Code)(Java Doc)
public String getUtf8OutsideBmpIncludedColumnNamePattern()(Code)(Java Doc)
public boolean getYearIsDateType()(Code)(Java Doc)
public String getZeroDateTimeBehavior()(Code)(Java Doc)
protected void initializeFromRef(Reference ref) throws SQLException(Code)(Java Doc)
protected void initializeProperties(Properties info) throws SQLException(Code)(Java Doc)
protected void postInitialization() throws SQLException(Code)(Java Doc)
public void setAllowLoadLocalInfile(boolean property)(Code)(Java Doc)
public void setAllowMultiQueries(boolean property)(Code)(Java Doc)
public void setAllowNanAndInf(boolean flag)(Code)(Java Doc)
public void setAllowUrlInLocalInfile(boolean flag)(Code)(Java Doc)
public void setAlwaysSendSetIsolation(boolean flag)(Code)(Java Doc)
public void setAutoClosePStmtStreams(boolean flag)(Code)(Java Doc)
public void setAutoDeserialize(boolean flag)(Code)(Java Doc)
public void setAutoGenerateTestcaseScript(boolean flag)(Code)(Java Doc)
public void setAutoReconnect(boolean flag)(Code)(Java Doc)
public void setAutoReconnectForConnectionPools(boolean property)(Code)(Java Doc)
public void setAutoReconnectForPools(boolean flag)(Code)(Java Doc)
public void setBlobSendChunkSize(String value) throws SQLException(Code)(Java Doc)
public void setBlobsAreStrings(boolean flag)(Code)(Java Doc)
public void setCacheCallableStatements(boolean flag)(Code)(Java Doc)
public void setCacheCallableStmts(boolean flag)(Code)(Java Doc)
public void setCachePrepStmts(boolean flag)(Code)(Java Doc)
public void setCachePreparedStatements(boolean flag)(Code)(Java Doc)
public void setCacheResultSetMetadata(boolean property)(Code)(Java Doc)
public void setCacheServerConfiguration(boolean flag)(Code)(Java Doc)
public void setCallableStatementCacheSize(int size)(Code)(Java Doc)
public void setCallableStmtCacheSize(int cacheSize)(Code)(Java Doc)
public void setCapitalizeDBMDTypes(boolean property)(Code)(Java Doc)
public void setCapitalizeTypeNames(boolean flag)(Code)(Java Doc)
public void setCharacterEncoding(String encoding)(Code)(Java Doc)
public void setCharacterSetResults(String characterSet)(Code)(Java Doc)
public void setClientCertificateKeyStorePassword(String value)(Code)(Java Doc)
public void setClientCertificateKeyStoreType(String value)(Code)(Java Doc)
public void setClientCertificateKeyStoreUrl(String value)(Code)(Java Doc)
public void setClientInfoProvider(String classname)(Code)(Java Doc)
public void setClobCharacterEncoding(String encoding)(Code)(Java Doc)
public void setClobberStreamingResults(boolean flag)(Code)(Java Doc)
public void setConnectTimeout(int timeoutMs)(Code)(Java Doc)
public void setConnectionCollation(String collation)(Code)(Java Doc)
public void setContinueBatchOnError(boolean property)(Code)(Java Doc)
public void setCreateDatabaseIfNotExist(boolean flag)(Code)(Java Doc)
public void setDefaultFetchSize(int n)(Code)(Java Doc)
public void setDetectServerPreparedStmts(boolean property)(Code)(Java Doc)
public void setDontTrackOpenResources(boolean flag)(Code)(Java Doc)
public void setDumpMetadataOnColumnNotFound(boolean flag)(Code)(Java Doc)
public void setDumpQueriesOnException(boolean flag)(Code)(Java Doc)
public void setDynamicCalendars(boolean flag)(Code)(Java Doc)
public void setElideSetAutoCommits(boolean flag)(Code)(Java Doc)
public void setEmptyStringsConvertToZero(boolean flag)(Code)(Java Doc)
public void setEmulateLocators(boolean property)(Code)(Java Doc)
public void setEmulateUnsupportedPstmts(boolean flag)(Code)(Java Doc)
public void setEnablePacketDebug(boolean flag)(Code)(Java Doc)
public void setEnableQueryTimeouts(boolean flag)(Code)(Java Doc)
public void setEncoding(String property)(Code)(Java Doc)
public void setExplainSlowQueries(boolean flag)(Code)(Java Doc)
public void setFailOverReadOnly(boolean flag)(Code)(Java Doc)
public void setFunctionsNeverReturnBlobs(boolean flag)(Code)(Java Doc)
public void setGatherPerfMetrics(boolean flag)(Code)(Java Doc)
public void setGatherPerformanceMetrics(boolean flag)(Code)(Java Doc)
public void setGenerateSimpleParameterMetadata(boolean flag)(Code)(Java Doc)
protected void setHighAvailability(boolean property)(Code)(Java Doc)
public void setHoldResultsOpenOverStatementClose(boolean flag)(Code)(Java Doc)
public void setIgnoreNonTxTables(boolean property)(Code)(Java Doc)
public void setIncludeInnodbStatusInDeadlockExceptions(boolean flag)(Code)(Java Doc)
public void setInitialTimeout(int property)(Code)(Java Doc)
public void setInteractiveClient(boolean property)(Code)(Java Doc)
public void setIsInteractiveClient(boolean property)(Code)(Java Doc)
public void setJdbcCompliantTruncation(boolean flag)(Code)(Java Doc)
public void setJdbcCompliantTruncationForReads(boolean jdbcCompliantTruncationForReads)(Code)(Java Doc)
public void setLargeRowSizeThreshold(String value)(Code)(Java Doc)
public void setLoadBalanceStrategy(String strategy)(Code)(Java Doc)
public void setLocalSocketAddress(String address)(Code)(Java Doc)
public void setLocatorFetchBufferSize(String value) throws SQLException(Code)(Java Doc)
public void setLogSlowQueries(boolean flag)(Code)(Java Doc)
public void setLogXaCommands(boolean flag)(Code)(Java Doc)
public void setLogger(String property)(Code)(Java Doc)
public void setLoggerClassName(String className)(Code)(Java Doc)
public void setMaintainTimeStats(boolean flag)(Code)(Java Doc)
public void setMaxQuerySizeToLog(int sizeInBytes)(Code)(Java Doc)
public void setMaxReconnects(int property)(Code)(Java Doc)
public void setMaxRows(int property)(Code)(Java Doc)
public void setMetadataCacheSize(int value)(Code)(Java Doc)
public void setNetTimeoutForStreamingResults(int value)(Code)(Java Doc)
public void setNoAccessToProcedureBodies(boolean flag)(Code)(Java Doc)
public void setNoDatetimeStringSync(boolean flag)(Code)(Java Doc)
public void setNoTimezoneConversionForTimeType(boolean flag)(Code)(Java Doc)
public void setNullCatalogMeansCurrent(boolean value)(Code)(Java Doc)
public void setNullNamePatternMatchesAll(boolean value)(Code)(Java Doc)
public void setOverrideSupportsIntegrityEnhancementFacility(boolean flag)(Code)(Java Doc)
public void setPacketDebugBufferSize(int size)(Code)(Java Doc)
public void setPadCharsWithSpace(boolean flag)(Code)(Java Doc)
public void setParanoid(boolean property)(Code)(Java Doc)
public void setPedantic(boolean property)(Code)(Java Doc)
public void setPinGlobalTxToPhysicalConnection(boolean flag)(Code)(Java Doc)
public void setPopulateInsertRowWithDefaultValues(boolean flag)(Code)(Java Doc)
public void setPrepStmtCacheSize(int cacheSize)(Code)(Java Doc)
public void setPrepStmtCacheSqlLimit(int sqlLimit)(Code)(Java Doc)
public void setPreparedStatementCacheSize(int cacheSize)(Code)(Java Doc)
public void setPreparedStatementCacheSqlLimit(int cacheSqlLimit)(Code)(Java Doc)
public void setProcessEscapeCodesForPrepStmts(boolean flag)(Code)(Java Doc)
public void setProfileSQL(boolean flag)(Code)(Java Doc)
public void setProfileSql(boolean property)(Code)(Java Doc)
public void setPropertiesTransform(String value)(Code)(Java Doc)
public void setQueriesBeforeRetryMaster(int property)(Code)(Java Doc)
public void setReconnectAtTxEnd(boolean property)(Code)(Java Doc)
public void setRelaxAutoCommit(boolean property)(Code)(Java Doc)
public void setReportMetricsIntervalMillis(int millis)(Code)(Java Doc)
public void setRequireSSL(boolean property)(Code)(Java Doc)
public void setResourceId(String resourceId)(Code)(Java Doc)
public void setResultSetSizeThreshold(int threshold)(Code)(Java Doc)
public void setRetainStatementAfterResultSetClose(boolean flag)(Code)(Java Doc)
public void setRewriteBatchedStatements(boolean flag)(Code)(Java Doc)
public void setRollbackOnPooledClose(boolean flag)(Code)(Java Doc)
public void setRoundRobinLoadBalance(boolean flag)(Code)(Java Doc)
public void setRunningCTS13(boolean flag)(Code)(Java Doc)
public void setSecondsBeforeRetryMaster(int property)(Code)(Java Doc)
public void setServerTimezone(String property)(Code)(Java Doc)
public void setSessionVariables(String variables)(Code)(Java Doc)
public void setSlowQueryThresholdMillis(int millis)(Code)(Java Doc)
public void setSlowQueryThresholdNanos(long nanos)(Code)(Java Doc)
public void setSocketFactory(String name)(Code)(Java Doc)
public void setSocketFactoryClassName(String property)(Code)(Java Doc)
public void setSocketTimeout(int property)(Code)(Java Doc)
public void setStatementInterceptors(String value)(Code)(Java Doc)
public void setStrictFloatingPoint(boolean property)(Code)(Java Doc)
public void setStrictUpdates(boolean property)(Code)(Java Doc)
public void setTcpKeepAlive(boolean flag)(Code)(Java Doc)
public void setTcpNoDelay(boolean flag)(Code)(Java Doc)
public void setTcpRcvBuf(int bufSize)(Code)(Java Doc)
public void setTcpSndBuf(int bufSize)(Code)(Java Doc)
public void setTcpTrafficClass(int classFlags)(Code)(Java Doc)
public void setTinyInt1isBit(boolean flag)(Code)(Java Doc)
public void setTraceProtocol(boolean flag)(Code)(Java Doc)
public void setTransformedBitIsBoolean(boolean flag)(Code)(Java Doc)
public void setTreatUtilDateAsTimestamp(boolean flag)(Code)(Java Doc)
public void setTrustCertificateKeyStorePassword(String value)(Code)(Java Doc)
public void setTrustCertificateKeyStoreType(String value)(Code)(Java Doc)
public void setTrustCertificateKeyStoreUrl(String value)(Code)(Java Doc)
public void setUltraDevHack(boolean flag)(Code)(Java Doc)
public void setUseBlobToStoreUTF8OutsideBMP(boolean flag)(Code)(Java Doc)
public void setUseCompression(boolean property)(Code)(Java Doc)
public void setUseConfigs(String configs)(Code)(Java Doc)
public void setUseCursorFetch(boolean flag)(Code)(Java Doc)
public void setUseDirectRowUnpack(boolean flag)(Code)(Java Doc)
public void setUseDynamicCharsetInfo(boolean flag)(Code)(Java Doc)
public void setUseFastDateParsing(boolean flag)(Code)(Java Doc)
public void setUseFastIntParsing(boolean flag)(Code)(Java Doc)
public void setUseGmtMillisForDatetimes(boolean flag)(Code)(Java Doc)
public void setUseHostsInPrivileges(boolean property)(Code)(Java Doc)
public void setUseInformationSchema(boolean flag)(Code)(Java Doc)
public void setUseJDBCCompliantTimezoneShift(boolean flag)(Code)(Java Doc)
public void setUseJvmCharsetConverters(boolean flag)(Code)(Java Doc)
public void setUseLocalSessionState(boolean flag)(Code)(Java Doc)
public void setUseNanosForElapsedTime(boolean flag)(Code)(Java Doc)
public void setUseOldAliasMetadataBehavior(boolean flag)(Code)(Java Doc)
public void setUseOldUTF8Behavior(boolean flag)(Code)(Java Doc)
public void setUseOnlyServerErrorMessages(boolean flag)(Code)(Java Doc)
public void setUseReadAheadInput(boolean flag)(Code)(Java Doc)
public void setUseSSL(boolean property)(Code)(Java Doc)
public void setUseSSPSCompatibleTimezoneShift(boolean flag)(Code)(Java Doc)
public void setUseServerPrepStmts(boolean flag)(Code)(Java Doc)
public void setUseServerPreparedStmts(boolean flag)(Code)(Java Doc)
public void setUseSqlStateCodes(boolean flag)(Code)(Java Doc)
public void setUseStreamLengthsInPrepStmts(boolean property)(Code)(Java Doc)
public void setUseTimezone(boolean property)(Code)(Java Doc)
public void setUseUltraDevWorkAround(boolean property)(Code)(Java Doc)
public void setUseUnbufferedInput(boolean flag)(Code)(Java Doc)
public void setUseUnicode(boolean flag)(Code)(Java Doc)
public void setUseUsageAdvisor(boolean useUsageAdvisorFlag)(Code)(Java Doc)
public void setUtf8OutsideBmpExcludedColumnNamePattern(String regexPattern)(Code)(Java Doc)
public void setUtf8OutsideBmpIncludedColumnNamePattern(String regexPattern)(Code)(Java Doc)
public void setYearIsDateType(boolean flag)(Code)(Java Doc)
public void setZeroDateTimeBehavior(String behavior)(Code)(Java Doc)
protected void storeToRef(Reference ref) throws SQLException(Code)(Java Doc)
public boolean useUnbufferedInput()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.