Mercurial > hg > monetdb-java
diff src/main/java/nl/cwi/monetdb/jdbc/MonetDataSource.java @ 102:08bc9009d190 embedded
Merged with default
author | Pedro Ferreira <pedro.ferreira@monetdbsolutions.com> |
---|---|
date | Fri, 13 Jan 2017 18:16:30 +0100 (2017-01-13) |
parents | eeb71f7d36bf b9b35ca2eec2 |
children | 8af0a7387b4e |
line wrap: on
line diff
--- a/src/main/java/nl/cwi/monetdb/jdbc/MonetDataSource.java +++ b/src/main/java/nl/cwi/monetdb/jdbc/MonetDataSource.java @@ -8,21 +8,23 @@ package nl.cwi.monetdb.jdbc; -import java.sql.*; -import javax.sql.*; -import java.util.*; -import java.io.*; +import java.io.PrintWriter; +import java.sql.Connection; +import java.sql.SQLException; +import java.sql.SQLFeatureNotSupportedException; +import javax.sql.DataSource; +import java.util.Properties; import java.util.logging.Logger; /** * A DataSource suitable for the MonetDB database. - * + * * This DataSource allows retrieval of a Connection using the JNDI bean like * framework. A DataSource has numerous advantages over using the DriverManager * to retrieve a Connection object. Using the DataSource interface enables a * more transparent application where the location or database can be changed * without changing any application code. - * + * * Additionally, pooled connections can be used when using a DataSource. * * @author Fabian Groffen