Mercurial > hg > monetdb-java
comparison 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 |
comparison
equal
deleted
inserted
replaced
101:551093abca52 | 102:08bc9009d190 |
---|---|
6 * Copyright 1997 - July 2008 CWI, August 2008 - 2017 MonetDB B.V. | 6 * Copyright 1997 - July 2008 CWI, August 2008 - 2017 MonetDB B.V. |
7 */ | 7 */ |
8 | 8 |
9 package nl.cwi.monetdb.jdbc; | 9 package nl.cwi.monetdb.jdbc; |
10 | 10 |
11 import java.sql.*; | 11 import java.io.PrintWriter; |
12 import javax.sql.*; | 12 import java.sql.Connection; |
13 import java.util.*; | 13 import java.sql.SQLException; |
14 import java.io.*; | 14 import java.sql.SQLFeatureNotSupportedException; |
15 import javax.sql.DataSource; | |
16 import java.util.Properties; | |
15 import java.util.logging.Logger; | 17 import java.util.logging.Logger; |
16 | 18 |
17 /** | 19 /** |
18 * A DataSource suitable for the MonetDB database. | 20 * A DataSource suitable for the MonetDB database. |
19 * | 21 * |
20 * This DataSource allows retrieval of a Connection using the JNDI bean like | 22 * This DataSource allows retrieval of a Connection using the JNDI bean like |
21 * framework. A DataSource has numerous advantages over using the DriverManager | 23 * framework. A DataSource has numerous advantages over using the DriverManager |
22 * to retrieve a Connection object. Using the DataSource interface enables a | 24 * to retrieve a Connection object. Using the DataSource interface enables a |
23 * more transparent application where the location or database can be changed | 25 * more transparent application where the location or database can be changed |
24 * without changing any application code. | 26 * without changing any application code. |
25 * | 27 * |
26 * Additionally, pooled connections can be used when using a DataSource. | 28 * Additionally, pooled connections can be used when using a DataSource. |
27 * | 29 * |
28 * @author Fabian Groffen | 30 * @author Fabian Groffen |
29 * @version 0.1 | 31 * @version 0.1 |
30 */ | 32 */ |