public class R2dbcConnectionFactory
extends java.lang.Object
implements javax.sql.DataSource
| 构造器和说明 |
|---|
R2dbcConnectionFactory(java.lang.String r2dbcUrl) |
| 限定符和类型 | 方法和说明 |
|---|---|
io.r2dbc.spi.ConnectionFactory |
build() |
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() |
boolean |
isWrapperFor(java.lang.Class<?> iface) |
void |
register(AppContext context,
java.lang.String name,
boolean typed) |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(java.io.PrintWriter out) |
<T> T |
unwrap(java.lang.Class<T> iface) |
public io.r2dbc.spi.ConnectionFactory build()
public void register(AppContext context, java.lang.String name, boolean typed)
public java.sql.Connection getConnection()
throws java.sql.SQLException
getConnection 在接口中 javax.sql.DataSourcejava.sql.SQLExceptionpublic java.sql.Connection getConnection(java.lang.String username,
java.lang.String password)
throws java.sql.SQLException
getConnection 在接口中 javax.sql.DataSourcejava.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.io.PrintWriter getLogWriter()
throws java.sql.SQLException
getLogWriter 在接口中 javax.sql.CommonDataSourcejava.sql.SQLExceptionpublic void setLogWriter(java.io.PrintWriter out)
throws java.sql.SQLException
setLogWriter 在接口中 javax.sql.CommonDataSourcejava.sql.SQLExceptionpublic void setLoginTimeout(int seconds)
throws java.sql.SQLException
setLoginTimeout 在接口中 javax.sql.CommonDataSourcejava.sql.SQLExceptionpublic int getLoginTimeout()
throws java.sql.SQLException
getLoginTimeout 在接口中 javax.sql.CommonDataSourcejava.sql.SQLExceptionpublic java.util.logging.Logger getParentLogger()
throws java.sql.SQLFeatureNotSupportedException
getParentLogger 在接口中 javax.sql.CommonDataSourcejava.sql.SQLFeatureNotSupportedException