source: trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/GSDataDump.java@ 9874

Last change on this file since 9874 was 8745, checked in by kjdon, 19 years ago

reorganised the GS3SQLConnection and connectionFactory. now have a base connection class, SQLCOnnection, which does general connection stuff, while GS3SQLConnection extends this, and does collection specific stuff. methods in the factory have been renamed - can now ask for a Connection, SQLCOnnection or GS3SQLConnection.

  • Property svn:keywords set to Author Date Id Revision
File size: 565 bytes
Line 
1package org.greenstone.gsdl3.gs3build;
2
3import java.io.File;
4
5import org.greenstone.gsdl3.gs3build.doctypes.*;
6
7import org.greenstone.gsdl3.gs3build.database.GS3SQLConnection;
8import org.greenstone.gsdl3.gs3build.database.GS3SQLConnectionFactory;
9
10public class GSDataDump
11{
12 public static void main(String args[])
13 {
14 String database = args[0];
15
16 GS3SQLConnection connection = GS3SQLConnectionFactory.getGS3SQLConnection(database);
17 DocumentList docList = DocumentList.readSQLDocuments(connection);
18 docList.writeDocuments(new File(database));
19 }
20}
Note: See TracBrowser for help on using the repository browser.