|
||||||||||
| 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 | ||
|---|---|---|
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. |
|
java.util.logging.Logger |
getParentLogger()
Always throws a SQLFeatureNotSupportedException. |
|
boolean |
isWrapperFor(java.lang.Class<?> iface)
Always return false. |
|
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)
|
|
|
unwrap(java.lang.Class<T> iface)
Always throws a SQLException. |
|
| 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.IllegalAccessExceptionpublic 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.DataSourcejava.sql.SQLException
public java.sql.Connection getConnection(java.lang.String username,
java.lang.String password)
throws java.sql.SQLException
getConnection in interface javax.sql.DataSourcejava.sql.SQLException
public int getLoginTimeout()
throws java.sql.SQLException
getLoginTimeout in interface javax.sql.CommonDataSourcejava.sql.SQLException
public java.io.PrintWriter getLogWriter()
throws java.sql.SQLException
getLogWriter in interface javax.sql.CommonDataSourcejava.sql.SQLException
public void setLoginTimeout(int seconds)
throws java.sql.SQLException
setLoginTimeout in interface javax.sql.CommonDataSourcejava.sql.SQLException
public void setLogWriter(java.io.PrintWriter out)
throws java.sql.SQLException
setLogWriter in interface javax.sql.CommonDataSourcejava.sql.SQLException
public boolean isWrapperFor(java.lang.Class<?> iface)
throws java.sql.SQLException
isWrapperFor in interface java.sql.Wrapperjava.sql.SQLException
public <T> T unwrap(java.lang.Class<T> iface)
throws java.sql.SQLException
unwrap in interface java.sql.Wrapperjava.sql.SQLException
public java.util.logging.Logger getParentLogger()
throws java.sql.SQLFeatureNotSupportedException
java.sql.SQLFeatureNotSupportedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||