| java.lang.Object org.xml.sax.helpers.DefaultHandler workbench.db.importer.XmlDataFileParser
Method Summary | |
public void | cancel() | public void | characters(char buf, int offset, int len) | public void | checkTargetColumns() Check if all columns defined for the import (through the table definition
as part of the XML file, or passed by the user on the command line) are
actually available in the target table. | public void | endDocument() | public void | endElement(String namespaceURI, String sName, String qName) | public void | error(SAXParseException e) | public void | fatalError(SAXParseException e) | public String | getColumns() | public List<ColumnIdentifier> | getColumnsFromFile() | public String | getEncoding() | public ImportFileHandler | getFileHandler() | public String | getLastRecord() | public MessageBuffer | getMessages() | public String | getMissingColumn() | public String | getSourceDirectory() | public String | getSourceFilename() | public boolean | hasErrors() | public boolean | hasWarnings() | public void | ignorableWhitespace(char[] ch, int start, int length) | public boolean | isCancelled() | public void | processingInstruction(String target, String data) | public void | setAbortOnError(boolean flag) | public void | setCheckDependencies(boolean flag) | public void | setColumns(String columnList) | public void | setColumns(List<ColumnIdentifier> cols) | public void | setConnection(WbConnection conn) | public void | setEncoding(String enc) | public void | setErrorHandler(JobErrorHandler handler) | public void | setReceiver(RowDataReceiver aReceiver) | public void | setSourceDirectory(String dir) | public void | setSourceExtension(String ext) | public void | setSourceFile(File file) | public void | setTableName(String aName) | public void | setValueConverter(ValueConverter convert) | public void | setValueModifier(ImportValueModifier mod) | public void | start() | public void | startDocument() | public void | startElement(String namespaceURI, String sName, String qName, Attributes attrs) | public void | stop() | public void | warning(SAXParseException err) |
XmlDataFileParser | public XmlDataFileParser()(Code) | | |
XmlDataFileParser | public XmlDataFileParser(File inputFile)(Code) | | |
cancel | public void cancel()(Code) | | |
checkTargetColumns | public void checkTargetColumns() throws SQLException(Code) | | Check if all columns defined for the import (through the table definition
as part of the XML file, or passed by the user on the command line) are
actually available in the target table.
For this all columns of the target table are retrieved from the database,
and each column that has been defined through setColumns() is checked
whether it exists there. Columns that are not found are dropped from
the list of import columns
If continueOnError == true, a warning is added to the messages. Otherwise
an Exception is thrown.
|
hasErrors | public boolean hasErrors()(Code) | | |
hasWarnings | public boolean hasWarnings()(Code) | | |
ignorableWhitespace | public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException(Code) | | Only implemented to have even more possibilities for cancelling the import
|
isCancelled | public boolean isCancelled()(Code) | | |
setAbortOnError | public void setAbortOnError(boolean flag)(Code) | | |
setCheckDependencies | public void setCheckDependencies(boolean flag)(Code) | | |
setSourceDirectory | public void setSourceDirectory(String dir)(Code) | | |
setSourceExtension | public void setSourceExtension(String ext)(Code) | | |
setSourceFile | public void setSourceFile(File file)(Code) | | |
Methods inherited from org.xml.sax.helpers.DefaultHandler | public void characters(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void endDocument() throws SAXException(Code)(Java Doc) public void endElement(String uri, String localName, String qName) throws SAXException(Code)(Java Doc) public void endPrefixMapping(String prefix) throws SAXException(Code)(Java Doc) public void error(SAXParseException e) throws SAXException(Code)(Java Doc) public void fatalError(SAXParseException e) throws SAXException(Code)(Java Doc) public void ignorableWhitespace(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void notationDecl(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc) public void processingInstruction(String target, String data) throws SAXException(Code)(Java Doc) public InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException(Code)(Java Doc) public void setDocumentLocator(Locator locator)(Code)(Java Doc) public void skippedEntity(String name) throws SAXException(Code)(Java Doc) public void startDocument() throws SAXException(Code)(Java Doc) public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException(Code)(Java Doc) public void startPrefixMapping(String prefix, String uri) throws SAXException(Code)(Java Doc) public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException(Code)(Java Doc) public void warning(SAXParseException e) throws SAXException(Code)(Java Doc)
|
|
|