Last change
on this file since 31166 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
|
Rev | Line | |
---|
[15081] | 1 | package org.greenstone.gsdl3.sql;
|
---|
| 2 |
|
---|
| 3 | import java.util.ArrayList;
|
---|
[25635] | 4 | import java.util.HashMap;
|
---|
[16883] | 5 |
|
---|
| 6 | import java.sql.ResultSet;
|
---|
| 7 | import java.sql.SQLException;
|
---|
| 8 |
|
---|
[15081] | 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 |
|
---|
[16883] | 22 | public boolean openAndCreateConnection(String databasepath);
|
---|
| 23 |
|
---|
[15081] | 24 | //return a list of rows
|
---|
[25635] | 25 | public ArrayList<HashMap<String, Object>> executeQuery(String query_statement);
|
---|
[15081] | 26 |
|
---|
[16883] | 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 |
|
---|
[15081] | 35 | public void closeConnection(String databasepath);
|
---|
| 36 |
|
---|
| 37 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.