Java Doc for XmlPersistentObjectOutputStream.java in  » Database-ORM » ODAL » com » completex » objective » components » persistency » io » xml » impl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database ORM » ODAL » com.completex.objective.components.persistency.io.xml.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.completex.objective.components.persistency.io.xml.impl.XmlDomStream
      com.completex.objective.components.persistency.io.xml.impl.XmlPersistentObjectOutputStream

XmlPersistentObjectOutputStream
public class XmlPersistentObjectOutputStream extends XmlDomStream implements PoObjectOutput,XmlStreamTags(Code)
Implementation of PoObjectoutput interface. The stream is not thread safe.
Only PersistentObjects, their Collections and basic Java types including the primitives, which are assumed "known", are serialized in readable format. All other ones are serialized as "binaries". If the generated persistent object implements java.util.Extenalizable interface then all extras in the inherited objects are to be written in PersistentObject.writeExternalDescendant(ObjectOutput out) and read reapecitivey in PersistentObject.readExternalDescendant(ObjectInput in) method.
References are guaranteed to be preserved for all "known" objects (see above) and not for "binaries". Even though for the binary objects of the 1st level the references will be preserved, for the "internal" objects ( binaries inside binaries) references from/to external object will not be preserved.


author:
   Gennady Krizhevsky


Inner Class :class XmlValueStruct


Constructor Summary
public  XmlPersistentObjectOutputStream(OutputStream outputStream)
    

Method Summary
protected  voidaddNull(Element extTypeNode)
    
protected  voidaddTextValue(Element vElement, String stringValue)
    
public  voidclose()
    
protected  DocumentcreateDocument(DocumentBuilder builder)
    
protected  ElementcreateElement(Element parentElement, String tagName)
    
protected  ElementcreateElement(String tagName)
    
public  voidflush()
    
public  voidflush(OutputStream outputStream)
    
protected  voidinit()
    
public  booleanisUseNames()
    
public  booleanisUseReferences()
    
public  voidsetPreserveOriginalValues(boolean preserveOriginalValues)
    
public  voidsetUseNames(boolean useNames)
    
public  voidsetUseNamesJavaStyle(boolean useNamesJavaStyle)
    
public  voidsetUseReferences(boolean useReferences)
    
protected  voidsetupRootElement()
    
protected  booleanskipField(Record record, String stringValue, String stringOrigValue)
    
protected  ValueStringResultvalue2string(Element element, ColumnType type, Object value)
    
protected  ValueStringResultvalue2string(Object value)
    
public  voidwrite(int b)
    
public  voidwrite(byte b)
    
public  voidwrite(byte b, int off, int len)
    
public  voidwriteBoolean(boolean v)
    
public  voidwriteByte(int v)
    
public  voidwriteBytes(String s)
    
public  voidwriteChar(int v)
    
public  voidwriteChars(String s)
    
protected  voidwriteCollection(Element complexElement, Collection collection)
    
protected  voidwriteCollectionElements(Object result, Element collectionElements)
    
protected  voidwriteComplexChildren(Element pElement, PersistentObject persistent)
    
protected  voidwriteCompoundChildren(Element pElement, PersistentObject persistent)
    
protected  voidwriteCompoundKey(Element keyNode, CompoundNaturalKeyImpl naturalKey)
    
protected  voidwriteDirty(PersistentEntry entry, Element fElement)
    
public  voidwriteDouble(double v)
    
protected  voidwriteExtType(Element parentElement, Object obj, Class primitiveClass)
    
protected  voidwriteExternalDescendant(Element poNode, PersistentObject persistent)
    
protected  voidwriteField(int index, Record record, Element rElement)
    
protected  voidwriteField(int index, Record record, Element rElement, XmlValueStruct valueStruct)
    
public  voidwriteFloat(float v)
    
public  voidwriteInt(int v)
    
protected  voidwriteKeyValue(Element keyNode, Object key)
    
protected  booleanwriteLink(Link link, Element cpxElements)
    
public  voidwriteLong(long v)
    
public  voidwriteObject(Object obj)
     Only PersistentObjects, their Collections and basic Java types including the primitives are serialized in readable format.
protected  voidwriteObject(Element parentElement, Object obj)
    
protected  voidwritePersistentObject(Element parentElement, PersistentObject persistent)
    
protected  voidwriteRecord(Element pElement, PersistentObject persistent)
    
protected  booleanwriteReferenceAttrs(Element vElement, Object value)
    
public  voidwriteShort(int v)
    
protected  voidwriteSimpleKey(Element keyNode, SimpleNaturalKeyImpl naturalKey)
    
protected  voidwriteSimpleKeyValue(Element valuesNode, Object value)
    
protected  voidwriteTracer(Element collectionNode, Collection collection)
    
protected  voidwriteTracerEntry(Element tracerNode, CollectionTracer.ModifiedEntry modifiedEntry)
    
public  voidwriteUTF(String str)
    
protected  voidwriteValue(XmlValueStruct valueStruct, Element fElement)
    
protected  voidwriteValue(String tagName, Object value, ValueStringResult result, Element fElement)
    


Constructor Detail
XmlPersistentObjectOutputStream
public XmlPersistentObjectOutputStream(OutputStream outputStream) throws IOException(Code)




Method Detail
addNull
protected void addNull(Element extTypeNode)(Code)



addTextValue
protected void addTextValue(Element vElement, String stringValue)(Code)



close
public void close() throws IOException(Code)



createDocument
protected Document createDocument(DocumentBuilder builder) throws IOException, SAXException(Code)



createElement
protected Element createElement(Element parentElement, String tagName)(Code)



createElement
protected Element createElement(String tagName)(Code)



flush
public void flush() throws IOException(Code)



flush
public void flush(OutputStream outputStream) throws TransformerException, IOException(Code)



init
protected void init()(Code)



isUseNames
public boolean isUseNames()(Code)
Return true if persistent object column names are to be shown true if persistent object column names are to be shown



isUseReferences
public boolean isUseReferences()(Code)



setPreserveOriginalValues
public void setPreserveOriginalValues(boolean preserveOriginalValues)(Code)

See Also:   PoObjectOutput.setPreserveOriginalValues(boolean)



setUseNames
public void setUseNames(boolean useNames)(Code)
Set true if persistent object column names are to be shown
Parameters:
  useNames - true if persistent object column names are to be shown



setUseNamesJavaStyle
public void setUseNamesJavaStyle(boolean useNamesJavaStyle)(Code)
Set true if persistent object column names are to be shown in JavaBeans style
Parameters:
  useNamesJavaStyle - true if persistent object column names are to be shown in JavaBeans style



setUseReferences
public void setUseReferences(boolean useReferences)(Code)



setupRootElement
protected void setupRootElement()(Code)



skipField
protected boolean skipField(Record record, String stringValue, String stringOrigValue)(Code)



value2string
protected ValueStringResult value2string(Element element, ColumnType type, Object value)(Code)



value2string
protected ValueStringResult value2string(Object value) throws IOException(Code)



write
public void write(int b) throws IOException(Code)



write
public void write(byte b) throws IOException(Code)



write
public void write(byte b, int off, int len) throws IOException(Code)



writeBoolean
public void writeBoolean(boolean v) throws IOException(Code)



writeByte
public void writeByte(int v) throws IOException(Code)



writeBytes
public void writeBytes(String s) throws IOException(Code)



writeChar
public void writeChar(int v) throws IOException(Code)



writeChars
public void writeChars(String s) throws IOException(Code)



writeCollection
protected void writeCollection(Element complexElement, Collection collection) throws IOException(Code)



writeCollectionElements
protected void writeCollectionElements(Object result, Element collectionElements) throws IOException(Code)



writeComplexChildren
protected void writeComplexChildren(Element pElement, PersistentObject persistent) throws IOException(Code)



writeCompoundChildren
protected void writeCompoundChildren(Element pElement, PersistentObject persistent) throws IOException(Code)



writeCompoundKey
protected void writeCompoundKey(Element keyNode, CompoundNaturalKeyImpl naturalKey) throws IOException(Code)



writeDirty
protected void writeDirty(PersistentEntry entry, Element fElement)(Code)



writeDouble
public void writeDouble(double v) throws IOException(Code)



writeExtType
protected void writeExtType(Element parentElement, Object obj, Class primitiveClass) throws IOException(Code)



writeExternalDescendant
protected void writeExternalDescendant(Element poNode, PersistentObject persistent) throws IOException(Code)



writeField
protected void writeField(int index, Record record, Element rElement)(Code)



writeField
protected void writeField(int index, Record record, Element rElement, XmlValueStruct valueStruct)(Code)



writeFloat
public void writeFloat(float v) throws IOException(Code)



writeInt
public void writeInt(int v) throws IOException(Code)



writeKeyValue
protected void writeKeyValue(Element keyNode, Object key) throws IOException(Code)



writeLink
protected boolean writeLink(Link link, Element cpxElements) throws IOException(Code)



writeLong
public void writeLong(long v) throws IOException(Code)



writeObject
public void writeObject(Object obj) throws IOException(Code)
Only PersistentObjects, their Collections and basic Java types including the primitives are serialized in readable format. All other ones are serialized as "binaries". If the generated persistent object implements java.util.Extenalizable interface then all extras in the inherited objects are to be written in PersistentObject.writeExternalDescendant(ObjectOutput out) method.
See Also:   java.io.ObjectOutput.writeObject(Object)
See Also:   PersistentObject.writeExternalDescendant(java.io.ObjectOutput out)



writeObject
protected void writeObject(Element parentElement, Object obj) throws IOException(Code)



writePersistentObject
protected void writePersistentObject(Element parentElement, PersistentObject persistent) throws IOException(Code)



writeRecord
protected void writeRecord(Element pElement, PersistentObject persistent)(Code)



writeReferenceAttrs
protected boolean writeReferenceAttrs(Element vElement, Object value)(Code)



writeShort
public void writeShort(int v) throws IOException(Code)



writeSimpleKey
protected void writeSimpleKey(Element keyNode, SimpleNaturalKeyImpl naturalKey) throws IOException(Code)



writeSimpleKeyValue
protected void writeSimpleKeyValue(Element valuesNode, Object value) throws IOException(Code)



writeTracer
protected void writeTracer(Element collectionNode, Collection collection) throws IOException(Code)



writeTracerEntry
protected void writeTracerEntry(Element tracerNode, CollectionTracer.ModifiedEntry modifiedEntry) throws IOException(Code)



writeUTF
public void writeUTF(String str) throws IOException(Code)



writeValue
protected void writeValue(XmlValueStruct valueStruct, Element fElement)(Code)



writeValue
protected void writeValue(String tagName, Object value, ValueStringResult result, Element fElement)(Code)



Fields inherited from com.completex.objective.components.persistency.io.xml.impl.XmlDomStream
final public static Map BOOLEAN(Code)(Java Doc)
final public static BooleanFactory BOOLEAN_FACTORY(Code)(Java Doc)
final public static ByteFactory BYTE_FACTORY(Code)(Java Doc)
final public static Map DATE(Code)(Java Doc)
final public static DoubleFactory DOUBLE_FACTORY(Code)(Java Doc)
final public static FloatFactory FLOAT_FACTORY(Code)(Java Doc)
final public static IntegerFactory INTEGER_FACTORY(Code)(Java Doc)
final public static LongFactory LONG_FACTORY(Code)(Java Doc)
final public static ByteArrayInputStream NULL_BYTE_ARRAY_INPUT_STREAM(Code)(Java Doc)
final public static Map NUMERIC(Code)(Java Doc)
final public static ShortFactory SHORT_FACTORY(Code)(Java Doc)
final public static Map VALUE_FACTORIES(Code)(Java Doc)
protected Element currentElement(Code)(Java Doc)
protected Document document(Code)(Java Doc)
protected boolean initialized(Code)(Java Doc)
protected boolean preserveOriginalValues(Code)(Java Doc)
protected HashMap references(Code)(Java Doc)
protected Element rootElement(Code)(Java Doc)
protected String rootName(Code)(Java Doc)
protected boolean useNames(Code)(Java Doc)
protected boolean useNamesJavaStyle(Code)(Java Doc)
protected boolean useReferences(Code)(Java Doc)
protected String version(Code)(Java Doc)
protected XmlDomHelper xmlDomHelper(Code)(Java Doc)

Methods inherited from com.completex.objective.components.persistency.io.xml.impl.XmlDomStream
public void close() throws IOException(Code)(Java Doc)
abstract protected Document createDocument(DocumentBuilder builder) throws IOException, SAXException(Code)(Java Doc)
protected void ensureOpen()(Code)(Java Doc)
public Document getDocument()(Code)(Java Doc)
public Element getRootElement()(Code)(Java Doc)
public String getVersion()(Code)(Java Doc)
protected boolean isBoolean(Object value)(Code)(Java Doc)
protected boolean isBooleanClass(String className)(Code)(Java Doc)
protected boolean isDate(Object value)(Code)(Java Doc)
protected boolean isDateClass(Object className)(Code)(Java Doc)
protected boolean isNumericClass(String className)(Code)(Java Doc)
protected boolean isNumericValue(Object value)(Code)(Java Doc)
public boolean isPreserveOriginalValues()(Code)(Java Doc)
public boolean isUseNamesJavaStyle()(Code)(Java Doc)
protected void println(String s)(Code)(Java Doc)
protected Element resolveParentElement()(Code)(Java Doc)
protected void setup() throws IOException(Code)(Java Doc)
abstract protected void setupRootElement()(Code)(Java Doc)
protected Object string2value0(String className, String valueString)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

w__ww.___j_av_a__2___s_.c___o___m__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.