|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.storage.implementation.database.GenericDataSource
This class functions as a Datasource wrapper around the JDBC Module. It is intended for use when MMBase runs outside an applicationserver, or when the server does not (or poorly) support pooled datasources. I can also be used by older systems that use the JDBC Module and do not want to change their configuration. Note that the JDBC Module will likely be fased out as a module at some point in the future, with code and supporting classes to be moved to this class instead.
| Method Summary | |
Connection |
getConnection()
|
Connection |
getConnection(String userName,
String password)
|
Connection |
getDirectConnection()
|
int |
getLoginTimeout()
|
PrintWriter |
getLogWriter()
|
protected String |
makeUrl()
Makes URL which can be used to produce a Conncetion. |
void |
setLoginTimeout(int seconds)
Note: currently this code does not actually change the timeout. |
void |
setLogWriter(PrintWriter out)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public Connection getConnection()
throws SQLException
getConnection in interface DataSourceSQLException
public Connection getDirectConnection()
throws SQLException
SQLException
public Connection getConnection(String userName,
String password)
throws SQLException
getConnection in interface DataSourceSQLExceptionpublic int getLoginTimeout()
getLoginTimeout in interface DataSourcepublic PrintWriter getLogWriter()
getLogWriter in interface DataSourcepublic void setLoginTimeout(int seconds)
setLoginTimeout in interface DataSourcepublic void setLogWriter(PrintWriter out)
setLogWriter in interface DataSourceprotected String makeUrl()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||