| Modifier and Type | Field and Description |
|---|---|
| protected String | databaseName
Database Name |
| protected String | |
| protected String | encoding
Character Encoding |
| protected boolean | explicitPort
Was the port explicitly set? |
| protected boolean | explicitUrl
Should we construct the URL, or has it been set explicitly? |
| protected String | hostName
Hostname |
| protected transient PrintWriter | logWriter
Log stream |
| protected static final NonRegisteringDriver | mysqlDriver
The driver to create connections with |
| protected String | password
Password |
| protected int | port
Port number |
| protected String | profileSQLString
The profileSQL property |
| pack-priv static final long | |
| protected String | url
The JDBC URL |
| protected String | user
User name |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Properties | |
| protected boolean | Returns: property valueproperty name name)Used in properties getters added by instrumentation. |
| public Connection | getConnection()
Implements javax. Attempts to establish a connection with the data source that
this |
| public Connection | getConnection(String
the database user on whose behalf the connection is
being made userID, String the user's password pass)Implements javax. Attempts to establish a connection with the data source that
this |
| protected Connection | Returns: a connection to the databasethe properties to connect with props)Creates a connection using the specified properties. |
| public String | Returns: the name of the database for this data sourceGets the name of the database |
| public String | |
| protected String | Returns: property valueproperty name name)Used in properties getters added by instrumentation. |
| protected int | Returns: property valueproperty name name)Used in properties getters added by instrumentation. |
| public int | getLoginTimeout()
Implements javax. Gets the maximum time in seconds that this data source can wait while attempting to connect to a database. |
| public PrintWriter | getLogWriter()
Implements javax. Retrieves the log writer for this |
| protected long | Returns: property valueproperty name name)Used in properties getters added by instrumentation. |
| protected int | Returns: property valueproperty name name)Used in properties getters added by instrumentation. |
| public Logger | getParentLogger()
Implements javax. Return the parent Logger of all the Loggers used by this data source. |
| public String | |
| public int | |
| public int | |
| public Reference | Returns: a Reference to this data sourceImplements javax. Required method to support this class as a |
| public String | |
| protected String | Returns: property valueproperty name property name name)Used in properties getters added by instrumentation. |
| public String | |
| public String | Returns: the URL for this connectionReturns the JDBC URL that will be used to create the database connection. |
| public String | |
| public boolean | isWrapperFor(Class<?>
a Class defining an interface. iface)Implements java. Returns true if this either implements the interface argument or is directly or indirectly a wrapper for an object that does. |
| protected void | setBooleanRuntimeProperty(String
property name name, boolean value value)Used in properties setters added by instrumentation. |
| public void | |
| public void | |
| protected void | setEnumRuntimeProperty(String
property name name, String value value)Used in properties setters added by instrumentation. |
| protected void | setIntegerRuntimeProperty(String
property name name, int value value)Used in properties setters added by instrumentation. |
| public void | setLoginTimeout(int
the data source login time limit seconds)Implements javax. Sets the maximum time in seconds that this data source will wait while attempting to connect to a database. |
| public void | setLogWriter(PrintWriter
the new log writer; to disable logging, set to null output)Implements javax. Sets the log writer for this |
| protected void | setLongRuntimeProperty(String
property name name, long value value)Used in properties setters added by instrumentation. |
| protected void | setMemorySizeRuntimeProperty(String
property name name, int value value)Used in properties setters added by instrumentation. |
| public void | |
| public void | |
| public void | |
| public void | setPropertiesViaRef(Reference
The JNDI Reference that holds RefAddrs for all properties ref)Initializes driver properties that come from a JNDI reference (in the case of a javax.sql.DataSource bound into some name service that doesn't handle Java objects directly). |
| public void | |
| protected void | setStringRuntimeProperty(String
property name name, String value value)Used in properties setters added by instrumentation. |
| public void | |
| public void | |
| public void | |
| public <T> T | unwrap(Class<T>
A Class defining an interface that the result must implement. iface)Implements java. Returns an object that implements the given interface to allow access to non-standard methods, or standard methods not exposed by the proxy. |
| databaseName | back to summary |
|---|---|
| protected String databaseName Database Name | |
| description | back to summary |
|---|---|
| protected String description | |
| encoding | back to summary |
|---|---|
| protected String encoding Character Encoding | |
| explicitPort | back to summary |
|---|---|
| protected boolean explicitPort Was the port explicitly set? | |
| explicitUrl | back to summary |
|---|---|
| protected boolean explicitUrl Should we construct the URL, or has it been set explicitly? | |
| hostName | back to summary |
|---|---|
| protected String hostName Hostname | |
| logWriter | back to summary |
|---|---|
| protected transient PrintWriter logWriter Log stream | |
| mysqlDriver | back to summary |
|---|---|
| protected static final NonRegisteringDriver mysqlDriver The driver to create connections with | |
| password | back to summary |
|---|---|
| protected String password Password | |
| port | back to summary |
|---|---|
| protected int port Port number | |
| profileSQLString | back to summary |
|---|---|
| protected String profileSQLString The profileSQL property | |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID Hides com. | |
| url | back to summary |
|---|---|
| protected String url The JDBC URL | |
| user | back to summary |
|---|---|
| protected String user User name | |
| MysqlDataSource | back to summary |
|---|---|
| public MysqlDataSource() Default no-arg constructor for Serialization | |
| exposeAsProperties | back to summary |
|---|---|
| public Properties exposeAsProperties() Overrides com. Implements com.
| |
| getBooleanRuntimeProperty | back to summary |
|---|---|
| protected boolean getBooleanRuntimeProperty(String name) throws SQLException Used in properties getters added by instrumentation.
| |
| getConnection | back to summary |
|---|---|
| public Connection getConnection() throws SQLException Implements javax. Doc from javax. Attempts to establish a connection with the data source that
this
| |
| getConnection | back to summary |
|---|---|
| public Connection getConnection(String userID, String pass) throws SQLException Implements javax. Doc from javax. Attempts to establish a connection with the data source that
this
| |
| getConnection | back to summary |
|---|---|
| protected Connection getConnection(Properties props) throws SQLException Creates a connection using the specified properties.
| |
| getDatabaseName | back to summary |
|---|---|
| public String getDatabaseName() Gets the name of the database
| |
| getDescription | back to summary |
|---|---|
| public String getDescription() | |
| getEnumRuntimeProperty | back to summary |
|---|---|
| protected String getEnumRuntimeProperty(String name) throws SQLException Used in properties getters added by instrumentation.
| |
| getIntegerRuntimeProperty | back to summary |
|---|---|
| protected int getIntegerRuntimeProperty(String name) throws SQLException Used in properties getters added by instrumentation.
| |
| getLoginTimeout | back to summary |
|---|---|
| public int getLoginTimeout() Implements javax. Doc from javax. Gets the maximum time in seconds that this data source can wait
while attempting to connect to a database. A value of zero
means that the timeout is the default system timeout
if there is one; otherwise, it means that there is no timeout.
When a
| |
| getLogWriter | back to summary |
|---|---|
| public PrintWriter getLogWriter() Implements javax. Doc from javax. Retrieves the log writer for this The log writer is a character output stream to which all logging
and tracing messages for this data source will be
printed. This includes messages printed by the methods of this
object, messages printed by methods of other objects manufactured
by this object, and so on. Messages printed to a data source
specific log writer are not printed to the log writer associated
with the
| |
| getLongRuntimeProperty | back to summary |
|---|---|
| protected long getLongRuntimeProperty(String name) throws SQLException Used in properties getters added by instrumentation.
| |
| getMemorySizeRuntimeProperty | back to summary |
|---|---|
| protected int getMemorySizeRuntimeProperty(String name) throws SQLException Used in properties getters added by instrumentation.
| |
| getParentLogger | back to summary |
|---|---|
| public Logger getParentLogger() throws SQLFeatureNotSupportedException Implements javax. Doc from javax. Return the parent Logger of all the Loggers used by this data source. This should be the Logger farthest from the root Logger that is still an ancestor of all of the Loggers used by this data source. Configuring this Logger will affect all of the log messages generated by the data source. In the worst case, this may be the root Logger.
| |
| getPassword | back to summary |
|---|---|
| public String getPassword() Get the password.
| |
| getPort | back to summary |
|---|---|
| public int getPort() Returns the port number
| |
| getPortNumber | back to summary |
|---|---|
| public int getPortNumber() Returns the port number
| |
| getReference | back to summary |
|---|---|
| public Reference getReference() throws NamingException Implements javax. Required method to support this class as a
| |
| getServerName | back to summary |
|---|---|
| public String getServerName() Returns the name of the database server
| |
| getStringRuntimeProperty | back to summary |
|---|---|
| protected String getStringRuntimeProperty(String name) throws SQLException Used in properties getters added by instrumentation.
| |
| getURL | back to summary |
|---|---|
| public String getURL() Returns the URL for this connection
| |
| getUrl | back to summary |
|---|---|
| public String getUrl() Returns the JDBC URL that will be used to create the database connection.
| |
| getUser | back to summary |
|---|---|
| public String getUser() Returns the configured user for this connection
| |
| isWrapperFor | back to summary |
|---|---|
| public boolean isWrapperFor(Class<?> iface) throws SQLException Implements java. Doc from java. Returns true if this either implements the interface argument or is directly or indirectly a wrapper
for an object that does. Returns false otherwise. If this implements the interface then return true,
else if this is a wrapper then return the result of recursively calling
| |
| setBooleanRuntimeProperty | back to summary |
|---|---|
| protected void setBooleanRuntimeProperty(String name, boolean value) throws SQLException Used in properties setters added by instrumentation.
| |
| setDatabaseName | back to summary |
|---|---|
| public void setDatabaseName(String dbName) Sets the database name.
| |
| setDescription | back to summary |
|---|---|
| public void setDescription(String value) | |
| setEnumRuntimeProperty | back to summary |
|---|---|
| protected void setEnumRuntimeProperty(String name, String value) throws SQLException Used in properties setters added by instrumentation.
| |
| setIntegerRuntimeProperty | back to summary |
|---|---|
| protected void setIntegerRuntimeProperty(String name, int value) throws SQLException Used in properties setters added by instrumentation.
| |
| setLoginTimeout | back to summary |
|---|---|
| public void setLoginTimeout(int seconds) throws SQLException Implements javax. Doc from javax. Sets the maximum time in seconds that this data source will wait
while attempting to connect to a database. A value of zero
specifies that the timeout is the default system timeout
if there is one; otherwise, it specifies that there is no timeout.
When a
| |
| setLogWriter | back to summary |
|---|---|
| public void setLogWriter(PrintWriter output) throws SQLException Implements javax. Doc from javax. Sets the log writer for this The log writer is a character output stream to which all logging
and tracing messages for this data source will be
printed. This includes messages printed by the methods of this
object, messages printed by methods of other objects manufactured
by this object, and so on. Messages printed to a data source-
specific log writer are not printed to the log writer associated
with the
| |
| setLongRuntimeProperty | back to summary |
|---|---|
| protected void setLongRuntimeProperty(String name, long value) throws SQLException Used in properties setters added by instrumentation.
| |
| setMemorySizeRuntimeProperty | back to summary |
|---|---|
| protected void setMemorySizeRuntimeProperty(String name, int value) throws SQLException Used in properties setters added by instrumentation.
| |
| setPassword | back to summary |
|---|---|
| public void setPassword(String pass) Sets the password
| |
| setPort | back to summary |
|---|---|
| public void setPort(int p) Sets the database port.
| |
| setPortNumber | back to summary |
|---|---|
| public void setPortNumber(int p) Sets the port number
| |
| setPropertiesViaRef | back to summary |
|---|---|
| public void setPropertiesViaRef(Reference ref) throws SQLException Initializes driver properties that come from a JNDI reference (in the case of a javax.sql.DataSource bound into some name service that doesn't handle Java objects directly).
| |
| setServerName | back to summary |
|---|---|
| public void setServerName(String serverName) Sets the server name.
| |
| setStringRuntimeProperty | back to summary |
|---|---|
| protected void setStringRuntimeProperty(String name, String value) throws SQLException Used in properties setters added by instrumentation.
| |
| setURL | back to summary |
|---|---|
| public void setURL(String url) Sets the URL for this connection
| |
| setUrl | back to summary |
|---|---|
| public void setUrl(String url) This method is used by the app server to set the url string specified within the datasource deployment descriptor. It is discovered using introspection and matches if property name in descriptor is "url".
| |
| setUser | back to summary |
|---|---|
| public void setUser(String userID) Sets the user ID.
| |
| unwrap | back to summary |
|---|---|
| public <T> T unwrap(Class<T> iface) throws SQLException Implements java. Doc from java. Returns an object that implements the given interface to allow access to
non-standard methods, or standard methods not exposed by the proxy.
If the receiver implements the interface then the result is the receiver
or a proxy for the receiver. If the receiver is a wrapper
and the wrapped object implements the interface then the result is the
wrapped object or a proxy for the wrapped object. Otherwise return the
the result of calling
| |