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.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