dke.smwp
Class Serializer
java.lang.Object
|
+--dke.smwp.Serializer
- public class Serializer
- extends java.lang.Object
Class for initializing page class serialization
- Version:
- 1.0
- Author:
- Werner Enser
Field Summary |
private static boolean |
DEBUG
|
Constructor Summary |
Serializer()
default constructor |
Method Summary |
void |
dropAllPages(java.lang.String publishToUri)
drops all generated pages (xml documents) |
void |
dropPagesOfPageClass(java.lang.String pcName,
java.lang.String publishToUri)
drops all pages (xml documents) of a given page class |
static void |
main(java.lang.String[] args)
|
void |
serializeAll(java.lang.String publishToUri)
serializes all pages as xml documents |
void |
serializePageClass(java.lang.String pcName,
java.lang.String publishToUri)
serializes all pages of an given page class as xml documents; |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
DEBUG
private static final boolean DEBUG
Serializer
public Serializer()
- default constructor
main
public static void main(java.lang.String[] args)
throws java.sql.SQLException,
java.io.IOException,
org.xml.sax.SAXException
- Parameters:
args
- - Throws:
java.sql.SQLException
- java.io.IOException
- org.xml.sax.SAXException
-
serializeAll
public void serializeAll(java.lang.String publishToUri)
throws java.sql.SQLException,
java.io.IOException,
org.xml.sax.SAXException
- serializes all pages as xml documents
- Parameters:
publishToUri
- directory to publish the page class/pages to; prefix of systemId*- Throws:
java.sql.SQLException
- fetching data failedjava.io.IOException
- reading / writing xml document (page) failedorg.xml.sax.SAXException
- parsing / creating xml document (page)
serializePageClass
public void serializePageClass(java.lang.String pcName,
java.lang.String publishToUri)
throws java.sql.SQLException,
java.io.IOException,
org.xml.sax.SAXException
- serializes all pages of an given page class as xml documents;
- Parameters:
pcName
- name of page class, whose pages are to be serializedpublishToUri
- publication path- Throws:
java.sql.SQLException
- fetching data failedjava.io.IOException
- reading / writing xml document (page) failedorg.xml.sax.SAXException
- parsing / creating xml document (page)
dropPagesOfPageClass
public void dropPagesOfPageClass(java.lang.String pcName,
java.lang.String publishToUri)
throws java.sql.SQLException,
java.io.IOException,
org.xml.sax.SAXException
- drops all pages (xml documents) of a given page class
- Parameters:
pcName
- name of page class, whose pages are to be deletedpublishToUri
- publication path- Throws:
java.sql.SQLException
- fetching data failedjava.io.IOException
- reading / writing xml document (page) failedorg.xml.sax.SAXException
- parsing / creating xml document (page)
dropAllPages
public void dropAllPages(java.lang.String publishToUri)
throws java.sql.SQLException,
java.io.IOException,
org.xml.sax.SAXException
- drops all generated pages (xml documents)
- Parameters:
publishToUri
- publication path- Throws:
java.sql.SQLException
- fetching data failedjava.io.IOException
- reading / writing xml document (page) failedorg.xml.sax.SAXException
- parsing / creating xml document (page)