|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.solarmetric.rd.jdbc.DataSourceImpl
Implementation of the DataSource interface that maintains a
back-end connection pool.
| Constructor Summary | |
DataSourceImpl()
Construct a data source with the default pooling. |
|
DataSourceImpl(com.solarmetric.rd.jdbc.ConnectionPool pool)
Construct a data source with the given pooling. |
|
| Method Summary | |
void |
close()
Close all resources used by the data source. |
java.sql.Connection |
getConnection()
Return a connection using the default user name and password. |
java.sql.Connection |
getConnection(java.lang.String user,
java.lang.String pass)
Return a connection using the given user name and password. |
java.lang.String |
getConnectionDriverName()
The JDBC driver class name. |
com.solarmetric.rd.jdbc.ConnectionPool |
getConnectionPool()
Return the connection pool for this datasource. |
java.util.Properties |
getConnectionProperties()
Properties to pass to the DriverManager when creating
connections. |
java.lang.String |
getConnectionURL()
The URL to connect to. |
java.lang.String |
getConnectionUserName()
The default user name to use when making connections. |
java.sql.Driver |
getDriver()
Instantiate and return the driver. |
org.apache.commons.logging.Log |
getJDBCLog()
The log to write JDBC messages to. |
int |
getLoginTimeout()
The number of seconds to wait for database login when creating connections. |
java.io.PrintWriter |
getLogWriter()
A writer to log to; the preferred logging method is throw the Log interface. |
org.apache.commons.logging.Log |
getSQLLog()
The log to write SQL messages to. |
boolean |
isJDBCLogEnabled()
Return true if JDBC logging is enabled. |
boolean |
isSQLLogEnabled()
Return true if SQL logging is enabled. |
void |
logJDBC(java.lang.String msg,
java.sql.Connection conn)
Log a JDBC message on behalf of the given connection. |
void |
logSQL(java.lang.String msg,
java.sql.Connection conn)
Log a SQL message on behalf of the given connection. |
void |
setConnectionDriverName(java.lang.String val)
The JDBC driver class name. |
void |
setConnectionPassword(java.lang.String val)
The default password to use when making connections. |
void |
setConnectionProperties(java.util.Properties props)
Properties to pass to the DriverManager when creating
connections. |
void |
setConnectionURL(java.lang.String url)
The URL to connect to. |
void |
setConnectionUserName(java.lang.String val)
The default user name to use when making connections. |
void |
setJDBCLog(org.apache.commons.logging.Log log)
The log to write JDBC messages to. |
void |
setLoginTimeout(int timeout)
The number of seconds to wait for database login when creating connections. |
void |
setLogWriter(java.io.PrintWriter out)
A writer to log to; the preferred logging method is throw the Log interface. |
void |
setSQLLog(org.apache.commons.logging.Log log)
The log to write SQL messages to. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DataSourceImpl()
public DataSourceImpl(com.solarmetric.rd.jdbc.ConnectionPool pool)
| Method Detail |
public com.solarmetric.rd.jdbc.ConnectionPool getConnectionPool()
PSCacheConnectionPool.
public java.lang.String getConnectionUserName()
public void setConnectionUserName(java.lang.String val)
public void setConnectionPassword(java.lang.String val)
public java.lang.String getConnectionURL()
public void setConnectionURL(java.lang.String url)
public java.util.Properties getConnectionProperties()
DriverManager when creating
connections.
public void setConnectionProperties(java.util.Properties props)
DriverManager when creating
connections.
public java.lang.String getConnectionDriverName()
public void setConnectionDriverName(java.lang.String val)
public int getLoginTimeout()
getLoginTimeout in interface javax.sql.DataSourcepublic void setLoginTimeout(int timeout)
setLoginTimeout in interface javax.sql.DataSourcepublic java.io.PrintWriter getLogWriter()
Log interface.
getLogWriter in interface javax.sql.DataSourcepublic void setLogWriter(java.io.PrintWriter out)
Log interface.
setLogWriter in interface javax.sql.DataSourcepublic org.apache.commons.logging.Log getJDBCLog()
public void setJDBCLog(org.apache.commons.logging.Log log)
public boolean isJDBCLogEnabled()
public org.apache.commons.logging.Log getSQLLog()
public void setSQLLog(org.apache.commons.logging.Log log)
public boolean isSQLLogEnabled()
public void logJDBC(java.lang.String msg,
java.sql.Connection conn)
public void logSQL(java.lang.String msg,
java.sql.Connection conn)
public java.sql.Connection getConnection()
throws java.sql.SQLException
getConnection in interface javax.sql.DataSourcejava.sql.SQLException
public java.sql.Connection getConnection(java.lang.String user,
java.lang.String pass)
throws java.sql.SQLException
getConnection in interface javax.sql.DataSourcejava.sql.SQLExceptionpublic void close()
public java.sql.Driver getDriver()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||