Deprecated
use com.mchange.v2.c3p0.DriverManagerDataSource
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv String | |
| pack-priv String | |
| pack-priv String | |
| pack-priv static final String | |
| pack-priv static final String | |
| pack-priv static final String | |
| pack-priv static final String | |
| pack-priv static final long | |
| private static final short |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private Properties | |
| 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 Logger | getParentLogger()
Implements javax. Return the parent Logger of all the Loggers used by this data source. |
| public Reference | getReference()
Implements javax. Retrieves the Reference of this object. |
| 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 void | |
| 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 <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 |
| dfltPassword | back to summary |
|---|---|
| pack-priv String dfltPassword | |
| dfltUser | back to summary |
|---|---|
| pack-priv String dfltUser | |
| jdbcUrl | back to summary |
|---|---|
| pack-priv String jdbcUrl | |
| REF_DFLT_PWD | back to summary |
|---|---|
| pack-priv static final String REF_DFLT_PWD | |
| REF_DFLT_USER | back to summary |
|---|---|
| pack-priv static final String REF_DFLT_USER | |
| REF_FACTORY_NAME | back to summary |
|---|---|
| pack-priv static final String REF_FACTORY_NAME | |
| REF_JDBC_URL | back to summary |
|---|---|
| pack-priv static final String REF_JDBC_URL | |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID | |
| VERSION | back to summary |
|---|---|
| private static final short VERSION | |
| DriverManagerDataSource | back to summary |
|---|---|
| public DriverManagerDataSource(String jdbcUrl, String dfltUser, String dfltPassword) | |
| DriverManagerDataSource | back to summary |
|---|---|
| public DriverManagerDataSource(String jdbcUrl) | |
| createProps | back to summary |
|---|---|
| private Properties createProps(String user, String password) | |
| 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
| |
| 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.
| |
| getReference | back to summary |
|---|---|
| public Reference getReference() throws NamingException Implements javax. Doc from javax. Retrieves the Reference of this object.
| |
| 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
| |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream in) throws IOException | |
| 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
| |
| 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 out) throws IOException | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | getObjectInstance(Object
The possibly null object containing location or reference
information that can be used in creating an object. refObj, Name The name of this object relative to name, Context nameCtx,
or null if no name is specified.The context relative to which the nameCtx, Hashtable<K, V> name
parameter is specified, or null if name is
relative to the default initial context.The possibly null environment that is used in
creating the object. env)Implements javax. Creates an object using the location or reference information specified. |
| DmdsObjectFactory | back to summary |
|---|---|
| public DmdsObjectFactory() | |
| getObjectInstance | back to summary |
|---|---|
| public Object getObjectInstance(Object refObj, Name name, Context nameCtx, Hashtable<K, V> env) throws Exception Implements javax. Doc from javax. Creates an object using the location or reference information specified.
Special requirements of this object are supplied
using
A URL context factory is a special ObjectFactory that
creates contexts for resolving URLs or objects whose locations
are specified by URLs. The
The
Name and Context Parameters.
The
| |