| Modifier and Type | Field and Description |
|---|---|
| protected Properties | |
| protected String | dataSourceName
name of data source - informational |
| protected String | description
description of data source - informational |
| protected int | loginTimeout
login timeout |
| protected transient PrintWriter | logWriter
log writer |
| protected String | networkProtocol
network protocol - informational |
| protected String | password
connection password |
| protected String | serverName
name of server - informational |
| protected String | url
database URL |
| protected String | user
connection user |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| public String | |
| public String | |
| public int | Returns: the data source login time limitImplements javax. Gets the maximum time in seconds that this data source can wait while attempting to connect to a database. |
| public PrintWriter | Returns: the log writer for this data source or null if logging is disabledImplements javax. Retrieves the log writer for this |
| public String | |
| public Logger | Returns: the parent Logger for this data sourceImplements javax. Return the parent Logger of all the Loggers used by this data source. |
| public String | |
| public String | Returns: the jdbc database connection url attributeRetrieves the jdbc database connection url attribute. |
| public String | Returns: the jdbc database connection url attributeRetrieves the jdbc database connection url attribute. |
| public String | |
| public void | |
| public 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 void | |
| public void | setProperties(Properties
properties. If null, then existing properties will be
cleared/replaced. props)Sets connection properties. |
| public void | |
| public void | |
| public void |
| connectionProps | back to summary |
|---|---|
| protected Properties connectionProps | |
| dataSourceName | back to summary |
|---|---|
| protected String dataSourceName name of data source - informational | |
| description | back to summary |
|---|---|
| protected String description description of data source - informational | |
| loginTimeout | back to summary |
|---|---|
| protected int loginTimeout login timeout | |
| logWriter | back to summary |
|---|---|
| protected transient PrintWriter logWriter log writer | |
| networkProtocol | back to summary |
|---|---|
| protected String networkProtocol network protocol - informational | |
| password | back to summary |
|---|---|
| protected String password connection password | |
| serverName | back to summary |
|---|---|
| protected String serverName name of server - informational | |
| url | back to summary |
|---|---|
| protected String url database URL | |
| user | back to summary |
|---|---|
| protected String user connection user | |
| JDBCCommonDataSource | back to summary |
|---|---|
| public JDBCCommonDataSource() | |
| getDatabase | back to summary |
|---|---|
| public String getDatabase() Synonym for getUrl().
| |
| getDatabaseName | back to summary |
|---|---|
| public String getDatabaseName() Synonym for getUrl().
| |
| getDataSourceName | back to summary |
|---|---|
| public String getDataSourceName() Retrieves the name of the data source.
| |
| getDescription | back to summary |
|---|---|
| public String getDescription() Retrieves the description of the data source.
| |
| getLoginTimeout | back to summary |
|---|---|
| public int getLoginTimeout() throws SQLException Implements 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. 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
| |
| getNetworkProtocol | back to summary |
|---|---|
| public String getNetworkProtocol() Retrieves the network protocol of the data source.
| |
| getParentLogger | back to summary |
|---|---|
| public Logger getParentLogger() throws SQLFeatureNotSupportedException Implements 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.
| |
| getServerName | back to summary |
|---|---|
| public String getServerName() Retrieves the server name attribute.
| |
| getUrl | back to summary |
|---|---|
| public String getUrl() Retrieves the jdbc database connection url attribute.
| |
| getURL | back to summary |
|---|---|
| public String getURL() Retrieves the jdbc database connection url attribute.
| |
| getUser | back to summary |
|---|---|
| public String getUser() Retrieves the user name for the connection.
| |
| setDatabase | back to summary |
|---|---|
| public void setDatabase(String database) Synonym for setUrl(String).
| |
| setDatabaseName | back to summary |
|---|---|
| public void setDatabaseName(String databaseName) Synonym for setUrl(String).
| |
| setLoginTimeout | back to summary |
|---|---|
| public void setLoginTimeout(int seconds) throws SQLException Implements 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. 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 void setPassword(String password) Sets the password for the username.
| |
| setProperties | back to summary |
|---|---|
| public void setProperties(Properties props) Sets connection properties. If user / password / loginTimeout has been set with one of the setXXX() methods it will be added to the Properties object.
| |
| setUrl | back to summary |
|---|---|
| public void setUrl(String url) Sets the jdbc database URL.
| |
| setURL | back to summary |
|---|---|
| public void setURL(String url) Sets the jdbc database URL.
| |
| setUser | back to summary |
|---|---|
| public void setUser(String user) Sets the user name.
| |