|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jenkov.mrpersister.jdbc.SimpleDataSource
public class SimpleDataSource
This class is still experimental. Though Mr. Persister will eventually get some connection creation mechanism this may not be it.
Constructor Summary | |
---|---|
SimpleDataSource(java.lang.String driver,
java.lang.String url,
java.lang.String user,
java.lang.String password)
|
Method Summary | |
---|---|
java.sql.Connection |
getConnection()
|
java.sql.Connection |
getConnection(java.lang.String username,
java.lang.String password)
|
int |
getLoginTimeout()
Not supported. |
java.io.PrintWriter |
getLogWriter()
Not supported. |
void |
setLoginTimeout(int seconds)
Not supported. |
void |
setLogWriter(java.io.PrintWriter out)
Not supported. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleDataSource(java.lang.String driver, java.lang.String url, java.lang.String user, java.lang.String password)
driver
- url
- user
- password
-
java.lang.IllegalArgumentException
- If the driver cannot be instantiated.Method Detail |
---|
public int getLoginTimeout() throws java.sql.SQLException
getLoginTimeout
in interface javax.sql.DataSource
java.sql.SQLException
- Never.public void setLoginTimeout(int seconds) throws java.sql.SQLException
setLoginTimeout
in interface javax.sql.DataSource
java.sql.SQLException
- Never.public java.io.PrintWriter getLogWriter() throws java.sql.SQLException
getLogWriter
in interface javax.sql.DataSource
java.sql.SQLException
- Never.public void setLogWriter(java.io.PrintWriter out) throws java.sql.SQLException
setLogWriter
in interface javax.sql.DataSource
java.sql.SQLException
- Never.public java.sql.Connection getConnection() throws java.sql.SQLException
getConnection
in interface javax.sql.DataSource
java.sql.SQLException
public java.sql.Connection getConnection(java.lang.String username, java.lang.String password) throws java.sql.SQLException
getConnection
in interface javax.sql.DataSource
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |