net.ontopia.persistence.rdbms
Class DatabaseProjectReader

java.lang.Object
  extended by net.ontopia.persistence.rdbms.DatabaseProjectReader

public class DatabaseProjectReader
extends Object

INTERNAL: Class that can read a database schema definition from an XML representation.


Field Summary
protected static org.xml.sax.helpers.AttributeListImpl EMPTY_ATTR_LIST
           
 
Method Summary
static Project loadProject(InputSource isource)
           
static Project loadProject(InputStream istream)
           
static Project loadProject(String filename)
          INTERNAL: Reads the database schema definition from the specified file.
static void main(String[] args)
           
static void saveProject(Project project, DocumentHandler dh)
           
static void saveProject(Project project, String filename)
           
static void saveProject(Project project, String filename, String encoding)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_ATTR_LIST

protected static final org.xml.sax.helpers.AttributeListImpl EMPTY_ATTR_LIST
Method Detail

loadProject

public static Project loadProject(String filename)
                           throws IOException,
                                  SAXException
INTERNAL: Reads the database schema definition from the specified file.

Throws:
IOException
SAXException

loadProject

public static Project loadProject(InputStream istream)
                           throws IOException,
                                  SAXException
Throws:
IOException
SAXException

loadProject

public static Project loadProject(InputSource isource)
                           throws IOException,
                                  SAXException
Throws:
IOException
SAXException

saveProject

public static void saveProject(Project project,
                               String filename)
                        throws IOException,
                               SAXException
Throws:
IOException
SAXException

saveProject

public static void saveProject(Project project,
                               String filename,
                               String encoding)
                        throws IOException,
                               SAXException
Throws:
IOException
SAXException

saveProject

public static void saveProject(Project project,
                               DocumentHandler dh)
                        throws SAXException
Throws:
SAXException

main

public static void main(String[] args)
                 throws IOException,
                        SAXException
Throws:
IOException
SAXException


Copyright © 2000-2012 Ontopia.