Last change
on this file since 15081 was 15081, checked in by xiao, 16 years ago |
add the derby library and also some classes that use the library
|
File size:
647 bytes
|
Line | |
---|
1 | package org.greenstone.gsdl3.sql;
|
---|
2 |
|
---|
3 | import 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 | */
|
---|
10 | public 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.