001/* 002 * HA-JDBC: High-Availability JDBC 003 * Copyright (C) 2012 Paul Ferraro 004 * 005 * This program is free software: you can redistribute it and/or modify 006 * it under the terms of the GNU Lesser General Public License as published by 007 * the Free Software Foundation, either version 3 of the License, or 008 * (at your option) any later version. 009 * 010 * This program is distributed in the hope that it will be useful, 011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 013 * GNU Lesser General Public License for more details. 014 * 015 * You should have received a copy of the GNU Lesser General Public License 016 * along with this program. If not, see <http://www.gnu.org/licenses/>. 017 */ 018package net.sf.hajdbc.pool.sql; 019 020import java.sql.Connection; 021 022import javax.sql.ConnectionEventListener; 023import javax.sql.PooledConnection; 024import javax.sql.StatementEventListener; 025 026/** 027 * @author Paul Ferraro 028 */ 029public class DriverPooledConnection implements PooledConnection 030{ 031// private final ConnectionFactory factory; 032// private Connection connection; 033 034 public DriverPooledConnection(ConnectionFactory factory) 035 { 036// this.factory = factory; 037// this.connection = factory.getConnection(); 038 } 039 040 /** 041 * {@inheritDoc} 042 * @see javax.sql.PooledConnection#addConnectionEventListener(javax.sql.ConnectionEventListener) 043 */ 044 @Override 045 public void addConnectionEventListener(ConnectionEventListener arg0) 046 { 047 // TODO Auto-generated method stub 048 049 } 050 051 /** 052 * {@inheritDoc} 053 * @see javax.sql.PooledConnection#addStatementEventListener(javax.sql.StatementEventListener) 054 */ 055 @Override 056 public void addStatementEventListener(StatementEventListener arg0) 057 { 058 // TODO Auto-generated method stub 059 060 } 061 062 /** 063 * {@inheritDoc} 064 * @see javax.sql.PooledConnection#close() 065 */ 066 @Override 067 public void close() 068 { 069 // TODO Auto-generated method stub 070 071 } 072 073 /** 074 * {@inheritDoc} 075 * @see javax.sql.PooledConnection#getConnection() 076 */ 077 @Override 078 public Connection getConnection() 079 { 080 // TODO Auto-generated method stub 081 return null; 082 } 083 084 /** 085 * {@inheritDoc} 086 * @see javax.sql.PooledConnection#removeConnectionEventListener(javax.sql.ConnectionEventListener) 087 */ 088 @Override 089 public void removeConnectionEventListener(ConnectionEventListener arg0) 090 { 091 // TODO Auto-generated method stub 092 093 } 094 095 /** 096 * {@inheritDoc} 097 * @see javax.sql.PooledConnection#removeStatementEventListener(javax.sql.StatementEventListener) 098 */ 099 @Override 100 public void removeStatementEventListener(StatementEventListener arg0) 101 { 102 // TODO Auto-generated method stub 103 104 } 105 106}