public abstract class AbstractDataSource
extends java.lang.Object
implements javax.sql.DataSource
| 构造器和说明 |
|---|
AbstractDataSource() |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getLoginTimeout()
Returns 0, indicating the default system timeout is to be used.
|
java.io.PrintWriter |
getLogWriter()
LogWriter methods are not supported.
|
java.util.logging.Logger |
getParentLogger() |
boolean |
isWrapperFor(java.lang.Class<?> iface) |
void |
setLoginTimeout(int timeout)
Setting a login timeout is not supported.
|
void |
setLogWriter(java.io.PrintWriter pw)
LogWriter methods are not supported.
|
<T> T |
unwrap(java.lang.Class<T> iface) |
public int getLoginTimeout()
throws java.sql.SQLException
getLoginTimeout 在接口中 javax.sql.CommonDataSourcejava.sql.SQLExceptionpublic void setLoginTimeout(int timeout)
throws java.sql.SQLException
setLoginTimeout 在接口中 javax.sql.CommonDataSourcejava.sql.SQLExceptionpublic java.io.PrintWriter getLogWriter()
getLogWriter 在接口中 javax.sql.CommonDataSourcepublic void setLogWriter(java.io.PrintWriter pw)
throws java.sql.SQLException
setLogWriter 在接口中 javax.sql.CommonDataSourcejava.sql.SQLExceptionpublic <T> T unwrap(java.lang.Class<T> iface)
throws java.sql.SQLException
unwrap 在接口中 java.sql.Wrapperjava.sql.SQLExceptionpublic boolean isWrapperFor(java.lang.Class<?> iface)
throws java.sql.SQLException
isWrapperFor 在接口中 java.sql.Wrapperjava.sql.SQLExceptionpublic java.util.logging.Logger getParentLogger()
throws java.sql.SQLFeatureNotSupportedException
getParentLogger 在接口中 javax.sql.CommonDataSourcejava.sql.SQLFeatureNotSupportedException