|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.taglibs.standard.tag.common.sql.DataSourceWrapper
public class DataSourceWrapper
A simple DataSource wrapper for the standard
DriverManager class.
| Constructor Summary | |
|---|---|
DataSourceWrapper()
|
|
| Method Summary | |
|---|---|
Connection |
getConnection()
Returns a Connection using the DriverManager and all set properties. |
Connection |
getConnection(String username,
String password)
Always throws a SQLException. |
int |
getLoginTimeout()
Always throws a SQLException. |
PrintWriter |
getLogWriter()
Always throws a SQLException. |
void |
setDriverClassName(String driverClassName)
|
void |
setJdbcURL(String jdbcURL)
|
void |
setLoginTimeout(int seconds)
Always throws a SQLException. |
void |
setLogWriter(PrintWriter out)
Always throws a SQLException. |
void |
setPassword(String password)
|
void |
setUserName(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(String driverClassName)
throws ClassNotFoundException,
InstantiationException,
IllegalAccessException
ClassNotFoundException
InstantiationException
IllegalAccessExceptionpublic void setJdbcURL(String jdbcURL)
public void setUserName(String userName)
public void setPassword(String password)
public Connection getConnection()
throws SQLException
getConnection in interface DataSourceSQLException
public Connection getConnection(String username,
String password)
throws SQLException
getConnection in interface DataSourceSQLException
public int getLoginTimeout()
throws SQLException
getLoginTimeout in interface DataSourceSQLException
public PrintWriter getLogWriter()
throws SQLException
getLogWriter in interface DataSourceSQLException
public void setLoginTimeout(int seconds)
throws SQLException
setLoginTimeout in interface DataSourceSQLException
public void setLogWriter(PrintWriter out)
throws SQLException
setLogWriter in interface DataSourceSQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||