public class ImportDatabase
extends java.lang.Object
ImportDatabase
class imports xml file to database table.Modifier and Type | Field and Description |
---|---|
int |
errCode
internal error code of class.
|
java.lang.String |
errMess
internal error message of class.
|
boolean |
success
true, if success.
|
Constructor and Description |
---|
ImportDatabase(DatabaseConnection conn,
n4e.core.list.List4SysUser sysUser,
java.lang.String idclient)
The constructor
ImportDatabase creates a new instance(object) of the class. |
Modifier and Type | Method and Description |
---|---|
void |
parseDocument(java.lang.String pathfrom,
java.lang.String file,
java.lang.String dbpackage)
The method
parseDocument reads an xml listing of keyset and put it into database. |
public int errCode
public java.lang.String errMess
public boolean success
public ImportDatabase(DatabaseConnection conn, n4e.core.list.List4SysUser sysUser, java.lang.String idclient)
ImportDatabase
creates a new instance(object) of the class.conn
- the current connection to the database system.sysUser
- the current user object.idclient
- the uniqueid of the current client.public void parseDocument(java.lang.String pathfrom, java.lang.String file, java.lang.String dbpackage) throws java.lang.Exception
parseDocument
reads an xml listing of keyset and put it into database.pathfrom
- path to xml listing.file
- name of file of xml listing.dbpackage
- the database package of the access module.java.lang.Exception
- if error