|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Casting on this interface provides posibility to convert JCA Records to/from XML
| Method Summary | |
void |
fromXML(java.lang.String xmlDocument)
Parses the specified XML document and fills in those fields of the map whose names coincide with the tags in the XML document. |
void |
readXML(java.io.Reader reader)
Reads an XML document (in UTF-8 codepage) and fills the fields of the map from the XML data |
java.lang.String |
toXML()
Returns the whole record in XML format. Note: Field names in SAP system may contain characters which are illegal in XML element names. Legal elements names however can be assembled by using the following transformation rules: |
void |
writeXML(java.io.Writer writer,
boolean with_header)
Dump the map as a XML document to the specified stream. |
| Method Detail |
public java.lang.String toXML()
throws java.sql.SQLException
Note: Field names in SAP system may contain characters which are illegal in XML element names.
Legal elements names however can be assembled by using the following transformation rules:
(e.g. '&' is represented as '_--26').
The value part of an element may contain the following mappings:
java.sql.SQLException - thrown if the record could not be converted to an XML document
public void fromXML(java.lang.String xmlDocument)
throws java.sql.SQLException
xmlDocument - the the xml documentjava.sql.SQLException - thrown if an error occured
public void writeXML(java.io.Writer writer,
boolean with_header)
throws java.sql.SQLException,
java.io.IOException
writer - the Wrtiter writing the function to xmlwith_header - if true prepends the XML header,java.io.IOException - thrown if an IO error occurredjava.sql.SQLException - thrown if another error occurred
public void readXML(java.io.Reader reader)
throws java.sql.SQLException,
java.io.IOException
reader - the Reader which reads a document in the xml formjava.io.IOException - thrown if an IO error occurredjava.sql.SQLException - thrown if another error occurred
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||