Expresso 5-6

com.jcorporate.expresso.ext.xml.dbobj
Class XMLDBObject

java.lang.Object
  extended bycom.jcorporate.expresso.ext.xml.dbobj.XMLDBObject

public class XMLDBObject
extends Object

Object to "wrap" a database object and allow import and export of that object's data in XML format

Author:
Michael Nash

Constructor Summary
XMLDBObject()
          Default constructor
XMLDBObject(DataObject newDBObject)
          Default constructor
 
Method Summary
 void exportToFile(String fileName)
          Filename should NOT include an extension, as export writes a DTD and XML file
 void exportToStreamXML(PrintWriter p)
          Export the records for the current selection in the specified database object into an XML format output stream Creation date: (4/2/00 8:38:58 PM)
 String getDBName()
           
 DataObject getDBObject()
           
 Vector getErrorList()
           
 void importFromFile(String fileName)
           
 void importFromURL(String importURL)
           
 void setDBName(String newDBName)
           
 void setDBObject(DataObject newDBObject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLDBObject

public XMLDBObject()
Default constructor


XMLDBObject

public XMLDBObject(DataObject newDBObject)
Default constructor

Parameters:
newDBObject -
Method Detail

setDBName

public void setDBName(String newDBName)

getDBName

public String getDBName()

exportToFile

public void exportToFile(String fileName)
                  throws DBException,
                         IOException,
                         FileNotFoundException
Filename should NOT include an extension, as export writes a DTD and XML file

Parameters:
fileName -
Throws:
DBException
IOException
FileNotFoundException

exportToStreamXML

public void exportToStreamXML(PrintWriter p)
                       throws DBException
Export the records for the current selection in the specified database object into an XML format output stream Creation date: (4/2/00 8:38:58 PM)

Parameters:
p - java.io.PrintStream
Throws:
DBException

getDBObject

public DataObject getDBObject()
                       throws DBException
Returns:
Throws:
DBException

getErrorList

public Vector getErrorList()
Returns:

importFromFile

public void importFromFile(String fileName)
                    throws DBException
Parameters:
fileName -
Throws:
DBException

importFromURL

public void importFromURL(String importURL)
                   throws DBException
Parameters:
importURL -
Throws:
DBException

setDBObject

public void setDBObject(DataObject newDBObject)
                 throws DBException
Parameters:
newDBObject -
Throws:
DBException

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.