public class UnpooledDataSource
extends java.lang.Object
implements javax.sql.DataSource
构造器和说明 |
---|
UnpooledDataSource(java.util.Properties props) |
UnpooledDataSource(java.lang.String url,
java.lang.String username,
java.lang.String password,
java.lang.String driverClassName) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
equals(java.lang.Object o) |
java.sql.Connection |
getConnection() |
java.sql.Connection |
getConnection(java.lang.String username,
java.lang.String password) |
int |
getLoginTimeout() |
java.io.PrintWriter |
getLogWriter() |
java.util.logging.Logger |
getParentLogger() |
int |
hashCode() |
boolean |
isWrapperFor(java.lang.Class<?> iface) |
void |
setDriverClassName(java.lang.String driverClassName) |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(java.io.PrintWriter out) |
void |
setPassword(java.lang.String password) |
void |
setUrl(java.lang.String url) |
void |
setUsername(java.lang.String username) |
<T> T |
unwrap(java.lang.Class<T> iface) |
public UnpooledDataSource(java.util.Properties props)
public UnpooledDataSource(java.lang.String url, java.lang.String username, java.lang.String password, java.lang.String driverClassName)
public void setUrl(java.lang.String url)
public void setUsername(java.lang.String username)
public void setPassword(java.lang.String password)
public void setDriverClassName(java.lang.String driverClassName)
public java.sql.Connection getConnection() throws java.sql.SQLException
getConnection
在接口中 javax.sql.DataSource
java.sql.SQLException
public java.sql.Connection getConnection(java.lang.String username, java.lang.String password) throws java.sql.SQLException
getConnection
在接口中 javax.sql.DataSource
java.sql.SQLException
public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException
unwrap
在接口中 java.sql.Wrapper
java.sql.SQLException
public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException
isWrapperFor
在接口中 java.sql.Wrapper
java.sql.SQLException
public java.io.PrintWriter getLogWriter() throws java.sql.SQLException
getLogWriter
在接口中 javax.sql.CommonDataSource
java.sql.SQLException
public void setLogWriter(java.io.PrintWriter out) throws java.sql.SQLException
setLogWriter
在接口中 javax.sql.CommonDataSource
java.sql.SQLException
public void setLoginTimeout(int seconds) throws java.sql.SQLException
setLoginTimeout
在接口中 javax.sql.CommonDataSource
java.sql.SQLException
public int getLoginTimeout() throws java.sql.SQLException
getLoginTimeout
在接口中 javax.sql.CommonDataSource
java.sql.SQLException
public java.util.logging.Logger getParentLogger() throws java.sql.SQLFeatureNotSupportedException
getParentLogger
在接口中 javax.sql.CommonDataSource
java.sql.SQLFeatureNotSupportedException
public boolean equals(java.lang.Object o)
equals
在类中 java.lang.Object
public int hashCode()
hashCode
在类中 java.lang.Object