| Modifier and Type | Field and Description |
|---|---|
| pack-priv Driver | |
| pack-priv boolean | |
| pack-priv static final MLogger | |
| private static final long | |
| private static final short |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private synchronized void | |
| private synchronized Driver | |
| private synchronized void | |
| private static boolean | |
| 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 username, String the user's password password)Implements javax. Attempts to establish a connection with the data source that
this |
| 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 |
| public synchronized String | |
| public synchronized String | |
| private synchronized boolean | |
| 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. |
| private boolean | |
| private Class | |
| private void | |
| private final Properties | |
| private void | |
| private synchronized void | |
| public synchronized void | setJdbcUrl(String jdbcUrl)
Overrides com.
|
| 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 out)Implements javax. Sets the log writer for this |
| public synchronized void | |
| private void | |
| public synchronized 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. |
| private void |
| driver | back to summary |
|---|---|
| pack-priv Driver driver | |
| driver_class_loaded | back to summary |
|---|---|
| pack-priv boolean driver_class_loaded | |
| logger | back to summary |
|---|---|
| pack-priv static final MLogger logger | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| VERSION | back to summary |
|---|---|
| private static final short VERSION Hides com. | |
| DriverManagerDataSource | back to summary |
|---|---|
| public DriverManagerDataSource() | |
| DriverManagerDataSource | back to summary |
|---|---|
| public DriverManagerDataSource(boolean autoregister) | |
| clearDriver | back to summary |
|---|---|
| private synchronized void clearDriver() | |
| driver | back to summary |
|---|---|
| private synchronized Driver driver() throws SQLException | |
| ensureIfPossibleDriverClassLoaded | back to summary |
|---|---|
| private synchronized void ensureIfPossibleDriverClassLoaded() throws SQLException | |
| eqOrBothNull | back to summary |
|---|---|
| private static boolean eqOrBothNull(Object a, Object b) Hides com. | |
| 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 username, String password) throws SQLException Implements javax. Doc from javax. Attempts to establish a connection with the data source that
this
| |
| getLoginTimeout | back to summary |
|---|---|
| public int getLoginTimeout() throws SQLException 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() throws SQLException 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
| |
| getPassword | back to summary |
|---|---|
| public synchronized String getPassword() | |
| getUser | back to summary |
|---|---|
| public synchronized String getUser() | |
| isDriverClassLoaded | back to summary |
|---|---|
| private synchronized boolean isDriverClassLoaded() | |
| 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
| |
| isWrapperForThis | back to summary |
|---|---|
| private boolean isWrapperForThis(Class<?> iface) | |
| loadDriverClass | back to summary |
|---|---|
| private Class | |
| logCircumventingDriverManager | back to summary |
|---|---|
| private void logCircumventingDriverManager() | |
| overrideProps | back to summary |
|---|---|
| private final Properties overrideProps(String user, String password) | |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException Hides com. | |
| setDriverClassLoaded | back to summary |
|---|---|
| private synchronized void setDriverClassLoaded(boolean dcl) | |
| setJdbcUrl | back to summary |
|---|---|
| public synchronized void setJdbcUrl(String jdbcUrl) Overrides com. | |
| 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 out) 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
| |
| setPassword | back to summary |
|---|---|
| public synchronized void setPassword(String password) | |
| setUpPropertyListeners | back to summary |
|---|---|
| private void setUpPropertyListeners() | |
| setUser | back to summary |
|---|---|
| public synchronized void setUser(String user) | |
| 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
| |
| writeObject | back to summary |
|---|---|
| private void writeObject(ObjectOutputStream oos) throws IOException Hides com. | |