|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.unitils.dbunit.util.MultiSchemaXmlDataSetReader.DataSetContentHandler
protected static class MultiSchemaXmlDataSetReader.DataSetContentHandler
The xml content handler that is going to create the data sets.
| Constructor Summary | |
|---|---|
MultiSchemaXmlDataSetReader.DataSetContentHandler(String defaultSchemaName)
Creates a data set SAX content handler |
|
| Method Summary | |
|---|---|
protected org.dbunit.dataset.ITableMetaData |
createTableMetaData(String tableName,
Attributes attributes)
Creates meta data for a table with the given name containing columns for each of the attributes. |
void |
error(SAXParseException e)
Overriden to rethrow exception. |
MultiSchemaDataSet |
getMultiSchemaDataSet()
Gets the result data set. |
protected String[] |
getRowValues(org.dbunit.dataset.Column[] columns,
Attributes attributes)
Gets the attribute values corresponding to each of the given columns. |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
Processes an xml element. |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
characters, endDocument, endElement, endPrefixMapping, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiSchemaXmlDataSetReader.DataSetContentHandler(String defaultSchemaName)
defaultSchemaName - The schema name to use when none is specified, not null| Method Detail |
|---|
public MultiSchemaDataSet getMultiSchemaDataSet()
throws org.dbunit.dataset.DataSetException
org.dbunit.dataset.DataSetException
public void startElement(String uri,
String localName,
String qName,
Attributes attributes)
throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandleruri - the xml namespace uri (= schema name)localName - the local xml nameqName - the element name (should be table name for table rows)attributes - the attributes (should be table columns for table rows)
SAXException
protected org.dbunit.dataset.ITableMetaData createTableMetaData(String tableName,
Attributes attributes)
tableName - the table name, not nullattributes - the attributes, not null
protected String[] getRowValues(org.dbunit.dataset.Column[] columns,
Attributes attributes)
columns - the columns, not nullattributes - the attributes, not null
public void error(SAXParseException e)
throws SAXException
error in interface ErrorHandlererror in class DefaultHandlere - The exception
SAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||