Package net.ontopia.persistence.rdbms
Class DatabaseProjectReader
- java.lang.Object
-
- 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
Fields Modifier and Type Field Description protected static AttributesImpl
EMPTY_ATTR_LIST
protected static String
EMPTY_LOCALNAME
protected static String
EMPTY_NAMESPACE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Project
loadProject(InputStream istream)
static Project
loadProject(String filename)
INTERNAL: Reads the database schema definition from the specified file.static Project
loadProject(InputSource isource)
static void
main(String[] args)
static void
saveProject(Project project, String filename)
static void
saveProject(Project project, String filename, String encoding)
static void
saveProject(Project project, ContentHandler dh)
-
-
-
Field Detail
-
EMPTY_ATTR_LIST
protected static final AttributesImpl EMPTY_ATTR_LIST
-
EMPTY_NAMESPACE
protected static final String EMPTY_NAMESPACE
- See Also:
- Constant Field Values
-
EMPTY_LOCALNAME
protected static final String EMPTY_LOCALNAME
- See Also:
- Constant Field Values
-
-
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, ContentHandler dh) throws SAXException
- Throws:
SAXException
-
main
public static void main(String[] args) throws IOException, SAXException
- Throws:
IOException
SAXException
-
-