|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.jelly.tags.sql.DataSourceWrapper
A simple DataSource
wrapper for the standard
DriverManager
class.
Constructor Summary | |
DataSourceWrapper()
|
Method Summary | |
java.sql.Connection |
getConnection()
Returns a Connection using the DriverManager and all set properties. |
java.sql.Connection |
getConnection(java.lang.String username,
java.lang.String password)
Always throws a SQLException. |
int |
getLoginTimeout()
Always throws a SQLException. |
java.io.PrintWriter |
getLogWriter()
Always throws a SQLException. |
void |
setDriverClassName(java.lang.String driverClassName)
|
void |
setJdbcURL(java.lang.String jdbcURL)
|
void |
setLoginTimeout(int seconds)
Always throws a SQLException. |
void |
setLogWriter(java.io.PrintWriter out)
Always throws a SQLException. |
void |
setPassword(java.lang.String password)
|
void |
setUserName(java.lang.String userName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DataSourceWrapper()
Method Detail |
public void setDriverClassName(java.lang.String driverClassName) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
public void setJdbcURL(java.lang.String jdbcURL)
public void setUserName(java.lang.String userName)
public void setPassword(java.lang.String password)
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
public int getLoginTimeout() throws java.sql.SQLException
getLoginTimeout
in interface javax.sql.DataSource
java.sql.SQLException
public java.io.PrintWriter getLogWriter() throws java.sql.SQLException
getLogWriter
in interface javax.sql.DataSource
java.sql.SQLException
public void setLoginTimeout(int seconds) throws java.sql.SQLException
setLoginTimeout
in interface javax.sql.DataSource
java.sql.SQLException
public void setLogWriter(java.io.PrintWriter out) throws java.sql.SQLException
setLogWriter
in interface javax.sql.DataSource
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |