harmonic.mz.file
Class UpdateOutputer
java.lang.Object
|
+--harmonic.mz.file.UpdateOutputer
- public class UpdateOutputer
- extends java.lang.Object
This sends a document containing a list of all nodes in database (just the serial number)
and a compleate detail of all new or changed nodes. Normally mvg file has children
of a node embeded within the nodes xml element. Also, normally fields have no serial
number. The update document, however, contains all nodes at the first level in the
tree - no embeded children. Also, every node has a reference to its parent, instead
of the parent having a list of children. And changed fields appear separatly.
To identify as new: check isnt tagged in sendNode table
To identify as changed: check isnt tagged in sentNode table, or have changed node table
|
Constructor Summary |
UpdateOutputer(java.io.OutputStream out,
java.util.Hashtable sentNodes,
java.util.Hashtable changedNodes)
Constructs update object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bCompress
public boolean bCompress
bSendAllNodeList
public boolean bSendAllNodeList
UpdateOutputer
public UpdateOutputer(java.io.OutputStream out,
java.util.Hashtable sentNodes,
java.util.Hashtable changedNodes)
- Constructs update object
output
public void output()
- Converts model tree into MVG file.
fullID
public static java.lang.String fullID(DataNode dbnode)
isExportable
public static boolean isExportable(DataNode dbnode)