public class ImportDatabaseCH extends SaxParserDbCH
ImportDatabaseCH
class imports a xml file to table of database.debug
Constructor and Description |
---|
ImportDatabaseCH(DatabaseConnection conn,
n4e.core.list.List4SysUser sysUser,
java.lang.String idclientkey,
java.lang.String dbpackage)
The constructor
ImportDatabaseCH creates a new instance(object) of the class. |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int end)
The method
characters is called, if data is placed between start and end tooken. |
void |
endDocument()
The method
endDocument is called if document ends. |
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String rawName)
The method
endElement is called, if xml-token ends. |
void |
startDocument()
The method
startDocument is called if document starts. |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String rawName,
org.xml.sax.Attributes atts)
The method
startElement is called, if xml-token starts. |
endPrefixMapping, getListing, ignorableWhitespace, processingInstruction, putListing, setDocumentLocator, skippedEntity, startPrefixMapping
public ImportDatabaseCH(DatabaseConnection conn, n4e.core.list.List4SysUser sysUser, java.lang.String idclientkey, java.lang.String dbpackage)
ImportDatabaseCH
creates a new instance(object) of the class.conn
- the current connection to the database system.sysUser
- the current user object.idclientkey
- the uniqueid of the current client.dbpackage
- the package of the database access module.public void startDocument() throws org.xml.sax.SAXException
startDocument
is called if document starts.startDocument
in interface org.xml.sax.ContentHandler
startDocument
in class SaxParserDbCH
org.xml.sax.SAXException
- if errorpublic void endDocument() throws org.xml.sax.SAXException
endDocument
is called if document ends.endDocument
in interface org.xml.sax.ContentHandler
endDocument
in class SaxParserDbCH
org.xml.sax.SAXException
- if errorpublic void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String rawName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
startElement
is called, if xml-token starts.startElement
in interface org.xml.sax.ContentHandler
startElement
in class SaxParserDbCH
namespaceURI
- name space.localName
- locale.rawName
- name of token.atts
- attributes of token.org.xml.sax.SAXException
- if error.public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String rawName) throws org.xml.sax.SAXException
endElement
is called, if xml-token ends.endElement
in interface org.xml.sax.ContentHandler
endElement
in class SaxParserDbCH
namespaceURI
- name space.localName
- locale.rawName
- name of token.org.xml.sax.SAXException
- if error.public void characters(char[] ch, int start, int end) throws org.xml.sax.SAXException
characters
is called, if data is placed between start and end tooken.characters
in interface org.xml.sax.ContentHandler
characters
in class SaxParserDbCH
ch
- character.start
- index start.end
- index end.org.xml.sax.SAXException
- if error.