javax.sql.DataSource.getLogWriter()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(273)

本文整理了Java中javax.sql.DataSource.getLogWriter()方法的一些代码示例,展示了DataSource.getLogWriter()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DataSource.getLogWriter()方法的具体详情如下:
包路径:javax.sql.DataSource
类名称:DataSource
方法名:getLogWriter

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);
}

相关文章