|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--dke.smwp.serialize.PageSer
serializes single pages
Field Summary | |
private static org.xml.sax.XMLReader |
_parser
xml parser |
private PageClassSer |
_pc
page class the page is mapped to |
private java.util.Hashtable |
_pParams
parameters used by fragment class; using parameter name as key and parameter value as value |
private java.lang.String |
_systemId
filename of serialized page (xml document) |
private static boolean |
DEBUG
|
Constructor Summary | |
PageSer(PageClassSer pc,
java.util.Hashtable pParams)
constructor |
Method Summary | |
private static void |
createXMLReader()
creates and initializes an xml reader for serialization |
boolean |
equals(PageSer b)
comparison operator; compared current object with b |
private org.xml.sax.InputSource |
getDocument(java.sql.Connection con,
java.lang.String storageMedia,
java.lang.String systemId,
boolean readFileIntoMemory)
gets xml document from spezified source (designated by storageMedia |
java.lang.String |
getSystemId()
gets page (xml document) systemid which is folderpath and filename prefix for page |
void |
modifyIncrementally(java.sql.Connection con,
TupleModificationDescr mod)
incrementally modifies one page (xml document) |
void |
removeFromDatabase(java.sql.Connection con)
removes page (xml document) from database |
void |
removeFromDisk()
Deprecated. |
void |
serialize(java.sql.Connection con,
org.xml.sax.ContentHandler hdl)
Serializes a certain page of the Page Class. |
void |
serializeToDatabase(java.sql.Connection con)
serializes Page Class/page as xml document to database |
void |
serializeToDisk(java.sql.Connection con)
Deprecated. |
java.lang.String |
toString()
Generates String-representation of page class name in following syntax: pc_name "(" [ pc_param_name { "," pc_param_name } ] ")" |
Methods inherited from class java.lang.Object |
|
Field Detail |
private static final boolean DEBUG
private PageClassSer _pc
private java.util.Hashtable _pParams
private java.lang.String _systemId
private static org.xml.sax.XMLReader _parser
Constructor Detail |
public PageSer(PageClassSer pc, java.util.Hashtable pParams)
pc
- page classpParams
- page class parametersMethod Detail |
private static void createXMLReader() throws org.xml.sax.SAXException
org.xml.sax.SAXException
- initializing SAXParser failedpublic void removeFromDatabase(java.sql.Connection con) throws java.sql.SQLException
con
- Connection handlejava.sql.SQLException
- document deletion failedpublic void removeFromDisk()
public java.lang.String getSystemId()
public void serialize(java.sql.Connection con, org.xml.sax.ContentHandler hdl) throws org.xml.sax.SAXException, java.sql.SQLException
con
- Connection handlehdl
- document content handleorg.xml.sax.SAXException
- generating/parsing xml document failedjava.sql.SQLException
- reading / writing data failedpublic void modifyIncrementally(java.sql.Connection con, TupleModificationDescr mod) throws java.io.IOException, org.xml.sax.SAXException, java.sql.SQLException
con
- Connection handlemod
- tuple modification descriptionjava.io.IOException
- reading/writing xml document failedorg.xml.sax.SAXException
- generating/parsing xml document failedjava.sql.SQLException
- fetching data failedprivate org.xml.sax.InputSource getDocument(java.sql.Connection con, java.lang.String storageMedia, java.lang.String systemId, boolean readFileIntoMemory) throws java.sql.SQLException, java.io.FileNotFoundException, java.io.IOException
storageMedia
con
- Connection handlestorageMedia
- type of media where the xml documents are
fetched from, which are "DATABASE", "FILE"
and "IFS" (IFS no longer supported. Saving files
into IFS not possible, when IFS methods are invoced
within a java stored procedure)systemId
- complete document identifier; providing
folderpath and filenamereadFileIntoMemory
- true
if file is to be read into
InputSource, false
setting
InputSource with handle to filejava.sql.SQLException
- fetching data failedjava.io.FileNotFoundException
- document not found in file systemjava.io.IOException
- reading / getting reader for document failedpublic void serializeToDisk(java.sql.Connection con) throws java.io.IOException, org.xml.sax.SAXException, java.sql.SQLException
con
- Connection handlejava.io.IOException
- writing document failedorg.xml.sax.SAXException
- generating / parsing xml document failedjava.sql.SQLException
- fetching data failedpublic void serializeToDatabase(java.sql.Connection con) throws org.xml.sax.SAXException, java.sql.SQLException, java.io.IOException
con
- Connection handleorg.xml.sax.SAXException
- generating / parsing xml document failedjava.sql.SQLException
- fetching data failedjava.io.IOException
- writing document failedpublic boolean equals(PageSer b)
b
b
- object which is compared to this objectpublic java.lang.String toString()
pc_name "(" [ pc_param_name { "," pc_param_name } ] ")"
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |