Last change
on this file since 30516 was 25635, checked in by sjm84, 12 years ago |
Fixing Greenstone 3's use (or lack thereof) of generics, this was done automatically so we may want to change it over time. This change will also auto-format any files that have not already been formatted.
|
File size:
928 bytes
|
Line | |
---|
1 | package org.greenstone.gsdl3.sql;
|
---|
2 |
|
---|
3 | import java.util.ArrayList;
|
---|
4 | import java.util.HashMap;
|
---|
5 |
|
---|
6 | import java.sql.ResultSet;
|
---|
7 | import java.sql.SQLException;
|
---|
8 |
|
---|
9 | import org.greenstone.gsdl3.util.DBInfo;
|
---|
10 | import org.greenstone.gsdl3.sql.SQLServer;
|
---|
11 |
|
---|
12 | public interface MetadataDBWrapper{
|
---|
13 |
|
---|
14 | public DBInfo getInfo(String id);
|
---|
15 |
|
---|
16 | public void setSQLServer(SQLServer server);
|
---|
17 |
|
---|
18 | public void setSQLStatements(SQLStatements sqlstate);
|
---|
19 |
|
---|
20 | public boolean openConnection(String databasepath);
|
---|
21 |
|
---|
22 | public boolean openAndCreateConnection(String databasepath);
|
---|
23 |
|
---|
24 | //return a list of rows
|
---|
25 | public ArrayList<HashMap<String, Object>> executeQuery(String query_statement);
|
---|
26 |
|
---|
27 | public ResultSet queryResultSet(String query_statement);
|
---|
28 |
|
---|
29 | public boolean execute(String stat);
|
---|
30 |
|
---|
31 | public boolean executeUpdate(String stat);
|
---|
32 |
|
---|
33 | public void check4Table(String stat) throws SQLException;
|
---|
34 |
|
---|
35 | public void closeConnection(String databasepath);
|
---|
36 |
|
---|
37 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.