net.ontopia.persistence.rdbms
Class DatabaseProjectReader

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

public class DatabaseProjectReader
extends java.lang.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(org.xml.sax.InputSource isource)
           
static Project loadProject(java.io.InputStream istream)
           
static Project loadProject(java.lang.String filename)
          INTERNAL: Reads the database schema definition from the specified file.
static void main(java.lang.String[] args)
           
static void saveProject(Project project, org.xml.sax.DocumentHandler dh)
           
static void saveProject(Project project, java.lang.String filename)
           
static void saveProject(Project project, java.lang.String filename, java.lang.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(java.lang.String filename)
                           throws java.io.IOException,
                                  org.xml.sax.SAXException
INTERNAL: Reads the database schema definition from the specified file.

Throws:
java.io.IOException
org.xml.sax.SAXException

loadProject

public static Project loadProject(java.io.InputStream istream)
                           throws java.io.IOException,
                                  org.xml.sax.SAXException
Throws:
java.io.IOException
org.xml.sax.SAXException

loadProject

public static Project loadProject(org.xml.sax.InputSource isource)
                           throws java.io.IOException,
                                  org.xml.sax.SAXException
Throws:
java.io.IOException
org.xml.sax.SAXException

saveProject

public static void saveProject(Project project,
                               java.lang.String filename)
                        throws java.io.IOException,
                               org.xml.sax.SAXException
Throws:
java.io.IOException
org.xml.sax.SAXException

saveProject

public static void saveProject(Project project,
                               java.lang.String filename,
                               java.lang.String encoding)
                        throws java.io.IOException,
                               org.xml.sax.SAXException
Throws:
java.io.IOException
org.xml.sax.SAXException

saveProject

public static void saveProject(Project project,
                               org.xml.sax.DocumentHandler dh)
                        throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException,
                        org.xml.sax.SAXException
Throws:
java.io.IOException
org.xml.sax.SAXException


Copyright © 2000-2012 Ontopia.