From: Marcus <the...@us...> - 2004-03-24 16:07:19
|
Update of /cvsroot/junk/junk/WEB-INF/classes/junk/plugin/database In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25467 Added Files: ConnectionProvider.java Log Message: initial import --- NEW FILE: ConnectionProvider.java --- /* * juNK - a file search system for smb shares * * Copyright 2004 by * Marcus Proest (theevilflow at users dot sf dot net) * Uwe van Heesch (tyron_e at users dot sf dot net) * * This file is part of junk (java useful net kollektor). * * junk is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * junk is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with junk; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ package junk.plugin.database; import java.sql.Connection; import java.sql.SQLException; /** * interface to retrieve a database connection * @author flow */ public interface ConnectionProvider { /** * should return a connection to the configured database * the remarkable feature of this file is, that the comments are way larger * than the code itself. I love such stuff. * @throws SQLException might be thrown if the instatiaton of the connection * fails * @return a connection to the configured database */ public Connection getConnection() throws SQLException; } |