Example usage for org.springframework.jdbc.datasource DriverManagerDataSource toString

List of usage examples for org.springframework.jdbc.datasource DriverManagerDataSource toString

Introduction

In this page you can find the example usage for org.springframework.jdbc.datasource DriverManagerDataSource toString.

Prototype

public String toString() 

Source Link

Document

Returns a string representation of the object.

Usage

From source file:org.mitre.jdbc.datasource.H2DataSourceFactory.java

protected DataSource createDataSource() {
    DriverManagerDataSource ds = new DriverManagerDataSource();
    ds.setDriverClassName("org.h2.Driver");
    ds.setUrl(getConnectionString());//from w w w  .j a v a  2s .  co  m
    ds.setUsername("sa");
    ds.setPassword("");
    logger.debug("Created dataSource: " + ds.toString());
    return ds;
}