public class RowInserterRule extends Rule
Constructor and Description |
---|
RowInserterRule(Connection conn) |
Modifier and Type | Method and Description |
---|---|
void |
begin(String namespace,
String name,
Attributes attrs)
This method is invoked when the start tag for an xml element representing
a database row is encountered.
|
void |
end(String namespace,
String name)
This method is invoked when the end tag for an xml element representing
a database row is encountered.
|
body, finish, getDigester, getNamespaceURI, setDigester, setNamespaceURI
public RowInserterRule(Connection conn)
public void begin(String namespace, String name, Attributes attrs)
begin
in class Rule
namespace
- the namespace URI of the matching element, or an empty string if the parser is not namespace
aware or the element has no namespacename
- the local name if the parser is namespace aware, or just the element name otherwiseattrs
- The attribute list of this elementpublic void end(String namespace, String name)
Note that after this rule completes, the row/column information is discarded, ie this rule performs actions as the input is parsed. This contrasts with the more usual way digester is used, which is to build trees of objects for later use. But it's a perfectly valid use of Digester.
Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.