Java 8 CommonDataSource - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 CommonDataSource class.

This code example shows how to use the following methods:getLogWriter
			return this.dataSource.getConnection(username, password);
		} 
 
		@Override 
		public PrintWriter getLogWriter() throws SQLException {
			return this.dataSource.getLogWriter();
		} 
 
		@Override 
		public void setLogWriter(PrintWriter out) throws SQLException {
			this.dataSource.setLogWriter(out);
		} 
 
		@Override 
		public int getLoginTimeout() throws SQLException {
			return this.dataSource.getLoginTimeout();
		} 
 
		@Override 
		public void setLoginTimeout(int seconds) throws SQLException {
6
CodeRank
This code example shows how to use the following methods:getLogWriter
    return delegate.getConnection(username, password);
  } 
   
  @Override 
  public PrintWriter getLogWriter() throws SQLException {
    return delegate.getLogWriter();
  } 
   
  @Override 
  public void setLogWriter(PrintWriter printWriter) throws SQLException {
    delegate.setLogWriter(printWriter);
  } 
   
  @Override 
  public void setLoginTimeout(int timeout) throws SQLException {
    delegate.setLoginTimeout(timeout);
  } 
   
  @Override 
  public int getLoginTimeout() throws SQLException {
5
CodeRank
This code example shows how to use the following methods:getLoginTimeout
		return _dataSource.getConnection(username, password);
	} 
 
	@Override 
	public int getLoginTimeout() throws SQLException {
		return _dataSource.getLoginTimeout();
	} 
 
	@Override 
	public PrintWriter getLogWriter() throws SQLException {
		return _dataSource.getLogWriter();
	} 
 
	@Override 
	public Logger getParentLogger() {
		throw new UnsupportedOperationException();
	} 
 
	public DataSource getWrappedDataSource() {
		return _dataSource;
5
CodeRank
This code example shows how to use the following methods:getLogWriter
 
    /** 
     * {@inheritDoc} 
     */ 
    public PrintWriter getLogWriter() throws SQLException {
        return dataSource.getLogWriter();
    } 
 
    /** 
     * {@inheritDoc} 
     */ 
    public int getLoginTimeout() throws SQLException {
        return dataSource.getLoginTimeout();
    } 
 
    /** 
     * {@inheritDoc} 
     */ 
    public void setLogWriter(PrintWriter out) throws SQLException {
        dataSource.setLogWriter(out);
4
CodeRank
This code example shows how to use the following methods:getLogWriter
	 * {@inheritDoc} 
	 *  
	 */ 
	@Override 
	public PrintWriter getLogWriter() throws SQLException {
		return this.datasource.getLogWriter();
	} 
 
	/** 
	 * {@inheritDoc} 
	 *  
	 */ 
	@Override 
	public Logger getParentLogger() throws SQLFeatureNotSupportedException {
		return this.datasource.getParentLogger();
	} 
 
	/** 
	 * {@inheritDoc} 
	 *  
5
CodeRank
This code example shows how to use the following methods:setLogWriter
		return this.dataSource.getLogWriter();
	} 
 
	@Override 
	public void setLogWriter(PrintWriter out) throws SQLException {
		this.dataSource.setLogWriter(out);
	} 
 
	@Override 
	public void setLoginTimeout(int seconds) throws SQLException {
		this.dataSource.setLoginTimeout(seconds);
	} 
 
	@Override 
	public int getLoginTimeout() throws SQLException {
		return this.dataSource.getLoginTimeout();
	} 
 
	@Override 
	public java.util.logging.Logger getParentLogger() throws SQLFeatureNotSupportedException {
5
CodeRank
This code example shows how to use the following methods:setLogWriter
    public void setLoginTimeout(int seconds) throws SQLException {
        wrapped.setLoginTimeout(seconds);
    } 
 
    public void setLogWriter(PrintWriter out) throws SQLException {
        wrapped.setLogWriter(out);
    } 
     
    public boolean isWrapperFor(Class c) throws SQLException {
		return false; 
	} 
 
    public Object unwrap(Class arg0) throws SQLException {
        throw new SQLException("This implementation cannot unwrap anything");
    } 
 
    public Logger getParentLogger() throws SQLFeatureNotSupportedException {
        throw new SQLFeatureNotSupportedException();
    } 
 
5
CodeRank
This code example shows how to use the following methods:setLoginTimeout
        inner.setLogWriter(a);
    } 
 
    public void setLoginTimeout(int a) throws SQLExceptioninner.setLoginTimeout(a);
    } 
 
} 
 
5
CodeRank
This code example shows how to use the following methods:getLoginTimeout
        this.xaDataSource = xaDataSource;
    } 
 
    public int getLoginTimeout() throws SQLException
    { 
        return xaDataSource.getLoginTimeout();
    } 
 
    public void setLoginTimeout(int seconds) throws SQLExceptionxaDataSource.setLoginTimeout(seconds);
    } 
 
    public PrintWriter getLogWriter() throws SQLException
    { 
        return xaDataSource.getLogWriter();
    } 
 
    public void setLogWriter(PrintWriter out) throws SQLException
4
CodeRank
This code example shows how to use the following methods:getLoginTimeout
    } 
 
    @Override 
    public int getLoginTimeout() throws SQLException
    { 
        return xaDataSource.getLoginTimeout();
    } 
 
    @Override 
    public void setLoginTimeout(int seconds) throws SQLExceptionxaDataSource.setLoginTimeout(seconds);
    } 
 
    @Override 
    public PrintWriter getLogWriter() throws SQLException
    { 
        return xaDataSource.getLogWriter();
    } 
 
4
CodeRank
See Code Examples for Java 8 CommonDataSource Methods: