source: greenstone3/branches/customizingGreenstone3/src/java/org/greenstone/gsdl3/sql/SQLServer.java@ 15191

Last change on this file since 15191 was 15191, checked in by dmn, 16 years ago

updating branch from trunk

File size: 647 bytes
Line 
1package org.greenstone.gsdl3.sql;
2
3import java.sql.Connection;
4
5/*
6 * this class provide an interface for connecting and querying a database system. In order to not tie Greenstone to a particalur database system
7 * every database action should go through this interface
8 *
9 */
10public interface SQLServer{
11
12 /** connect to a database without creating the database if it doesn't exist */
13 public Connection connect(String databasePath);
14
15 /** connect to a database and create the database if it doesn't exist */
16 public Connection connectAndCreate(String databasePath);
17
18 public boolean disconnect(String databasePath);
19
20
21 }
Note: See TracBrowser for help on using the repository browser.