本文整理了Java中javax.sql.DataSource.getLogWriter()
方法的一些代码示例,展示了DataSource.getLogWriter()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DataSource.getLogWriter()
方法的具体详情如下:
包路径:javax.sql.DataSource
类名称:DataSource
方法名:getLogWriter
暂无
代码示例来源:origin: spring-projects/spring-framework
@Override
public PrintWriter getLogWriter() throws SQLException {
return this.dataSource.getLogWriter();
}
代码示例来源:origin: looly/hutool
@Override
public PrintWriter getLogWriter() throws SQLException {
return ds.getLogWriter();
}
代码示例来源:origin: looly/hutool
@Override
public PrintWriter getLogWriter() throws SQLException {
return ds.getLogWriter();
}
代码示例来源:origin: wildfly/wildfly
@Override
public PrintWriter getLogWriter() throws SQLException {
return delegate.getLogWriter();
}
代码示例来源:origin: spring-projects/spring-batch
@Override
public PrintWriter getLogWriter() throws SQLException {
return dataSource.getLogWriter();
}
代码示例来源:origin: spring-projects/spring-framework
@Override
public PrintWriter getLogWriter() throws SQLException {
return obtainTargetDataSource().getLogWriter();
}
代码示例来源:origin: killbill/killbill
@Override
public PrintWriter getLogWriter() throws SQLException {
return delegate.getLogWriter();
}
代码示例来源:origin: com.zaxxer/HikariCP
/** {@inheritDoc} */
@Override
public PrintWriter getLogWriter() throws SQLException
{
HikariPool p = pool;
return (p != null ? p.getUnwrappedDataSource().getLogWriter() : null);
}
代码示例来源:origin: spring-projects/spring-framework
@Test
public void shouldDelegateGetLogWriter() throws Exception {
PrintWriter writer = new PrintWriter(new ByteArrayOutputStream());
given(delegate.getLogWriter()).willReturn(writer);
assertThat(dataSource.getLogWriter(), is(writer));
}
代码示例来源:origin: ebean-orm/ebean
@Override
public PrintWriter getLogWriter() throws SQLException {
return dataSource.getLogWriter();
}
代码示例来源:origin: ebean-orm/ebean
@Override
public PrintWriter getLogWriter() throws SQLException {
return dataSource.getLogWriter();
}
代码示例来源:origin: pentaho/mondrian
public PrintWriter getLogWriter() throws SQLException {
return dataSource.getLogWriter();
}
代码示例来源:origin: geotools/geotools
public PrintWriter getLogWriter() throws SQLException {
return wrapped.getLogWriter();
}
代码示例来源:origin: com.vladmihalcea.flexy-pool/flexy-pool-core
/**
* {@inheritDoc}
*/
@Override
public PrintWriter getLogWriter() throws SQLException {
return targetDataSource.getLogWriter();
}
代码示例来源:origin: org.assertj/assertj-db
/**
* {@inheritDoc}
*/
@Override
public PrintWriter getLogWriter() throws SQLException {
return dataSource.getLogWriter();
}
代码示例来源:origin: com.github.1991wangliang/lorne-tx-core
/**default**/
@Override
public PrintWriter getLogWriter() throws SQLException {
return dataSource.getLogWriter();
}
代码示例来源:origin: org.jdbi/jdbi
@Override
public PrintWriter getLogWriter() throws SQLException
{
return target.getLogWriter();
}
代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.dbcp
/**
* <p>Returns the log writer being used by this data source.</p>
* <p>
* Calls {@link #createDataSource()}, so has the side effect
* of initializing the connection pool.</p>
*
* @throws SQLException if a database access error occurs
* @return log writer in use
*/
public PrintWriter getLogWriter() throws SQLException {
return createDataSource().getLogWriter();
}
代码示例来源:origin: com.caucho/resin
/**
* Gets the log writer
*/
public PrintWriter getLogWriter() throws SQLException
{
return getDataSource().getLogWriter();
}
代码示例来源:origin: com.zaxxer/HikariCP-java6
/** {@inheritDoc} */
@Override
public PrintWriter getLogWriter() throws SQLException
{
return (pool.getDataSource() != null ? pool.getDataSource().getLogWriter() : null);
}
内容来源于网络,如有侵权,请联系作者删除!