|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectasjava.uniobjects.UniBase
asjava.uniobjects.UniXML
UniXML
is used to access to U2 server XML features
Field Summary |
---|
Fields inherited from class asjava.uniobjects.UniBase |
---|
inPacket, outPacket, uniConnection, uniEncryptionType, uniParentSession, uniStatus |
Constructor Summary | |
---|---|
UniXML()
Default constructor for this class. |
|
UniXML(UniSession aSession)
Default constructor for this class. |
Method Summary | |
---|---|
void |
generateXML(java.lang.String cmd)
Executes the cataloged program GETXMLSUB to use the user given query/sql command to call XMLEXECUTE(). |
void |
generateXML(java.lang.String cmd,
java.lang.String options)
Executes the cataloged program GETXMLSUB to use the user given query or sql command to call XMLEXECUTE(). |
void |
generateXMLUsingXmap(java.lang.String Xmapname)
Execute cataloged basic program DBTOXMLXMAP to generate xml document using xmap, returns strXml as result |
int |
getErrcode()
retrieve contents of errmsg |
java.lang.String |
getErrmsg()
retrieve contents of errmsg |
java.lang.String |
getXML()
retrieve the contents of retuened strXml after successful generateXML has
been executed
getXML method, return existing strXml |
java.lang.String |
getXsd()
retrieve the contents of retuened strXsd after successful generateXML has
been executed
it should hold xml schema corresponding to strXml. |
void |
setXML(java.lang.String axml)
set strXml to String axml, it is assumed hold xml doc setXML |
void |
setXsd(java.lang.String axsd)
set strXsd to String axsd, it is assumed hold xml schema setXsd |
void |
updateDataUsingXmap(java.lang.String xmapName)
Execute cataloged basic program XMLTODBXMAP to update the U2 server datafile using Xmap as defined relationship between the xml document and file's dictionary defines. |
void |
updateDataUsingXmap(java.lang.String xmapName,
java.lang.String xmlName)
Execute cataloged basic program XMLTODBXMAP to update the U2 server datafile using Xmap as defined relationship between the xml document and file's dictionary defines. |
Methods inherited from class asjava.uniobjects.UniBase |
---|
getEncryptionType, isCommandActive, setEncryptionType, status |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UniXML() throws UniXMLException
UniXMLException
- is thrown if an error occurspublic UniXML(UniSession aSession) throws UniXMLException
aSession
- unisession representing the parent sesion object we are created by
UniXMLException
- is thrown if an error occursMethod Detail |
public java.lang.String getXML()
generateXML
has
been executed
getXML
method, return existing strXml
public void setXML(java.lang.String axml)
setXML
axml
- String value of the xml document holderpublic java.lang.String getXsd()
generateXML
has
been executed
it should hold xml schema corresponding to strXml.
getXsd
method, return existing strXml
public void setXsd(java.lang.String axsd)
setXsd
axsd
- String value of the xml schemapublic java.lang.String getErrmsg()
public int getErrcode()
public void generateXML(java.lang.String cmd) throws UniXMLException, UniSessionException
cmd
- a String represent Uniquery/UniSql command valid for U2 server
UniXMLException
- if a server or query error occurs
UniSessionException
public void generateXML(java.lang.String cmd, java.lang.String options) throws UniXMLException, UniSessionException
cmd
- a String represent Uniquery/UniSql command valid for U2 serveroptions
- can be @FM or ' ' separated xmlout options.
UniXMLException
- if a server or query error occurs
UniSessionException
public void generateXMLUsingXmap(java.lang.String Xmapname) throws UniXMLException, UniSessionException
Xmapname
- a String represent U2 server side xmap file name.
UniXMLException
- if a server error occurs
UniSessionException
public void updateDataUsingXmap(java.lang.String xmapName) throws UniXMLException, UniSessionException
xmapName
- a String represent U2 server side xmap file name.
UniXMLException
- if a server error occurs
UniSessionException
public void updateDataUsingXmap(java.lang.String xmapName, java.lang.String xmlName) throws UniXMLException, UniSessionException
xmapName
- a String represent U2 server side xmap file name.xmlName
- a String represents U2 server side xml doc name.
UniXMLException
- if a server error occurs
UniSessionException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |