org.clazzes.jdbc2xml.sax.impl
Class ValueTagHandler
java.lang.Object
org.clazzes.jdbc2xml.sax.impl.ValueTagHandler
- All Implemented Interfaces:
- org.clazzes.util.xml.SAXTagHandler
public class ValueTagHandler
- extends java.lang.Object
- implements org.clazzes.util.xml.SAXTagHandler
A handler for the columnset element.
- Author:
- wglas
Constructor Summary |
ValueTagHandler(ColumnInfo ci,
java.util.TimeZone timeZone,
java.sql.PreparedStatement insert,
int column)
|
Method Summary |
void |
closeTag(java.lang.String uri,
java.lang.String localName,
java.lang.String name)
|
void |
finishTag()
Close processing a value tag. |
void |
processCharacters(char[] ch,
int start,
int length)
|
org.clazzes.util.xml.SAXTagHandler |
startChildElement(java.lang.String uri,
java.lang.String localName,
java.lang.String name,
org.xml.sax.Attributes atts)
|
void |
startTag()
Start processing a new value tag. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValueTagHandler
public ValueTagHandler(ColumnInfo ci,
java.util.TimeZone timeZone,
java.sql.PreparedStatement insert,
int column)
throws org.xml.sax.SAXException
- Parameters:
ci
- the column information on which to operate.timeZone
- The default time zone for
DeserializationHandlerFactory.newDeserializationHandler(ColumnInfo, TimeZone)
.insert
- The prepared statement, whose place holder is filled.column
- The number of the placeholder in the prepared statement to fill.
- Throws:
org.xml.sax.SAXException
- Upon errors during instantiation of a
DeserializationHandler
instance.
startTag
public void startTag()
throws org.xml.sax.SAXException
- Start processing a new value tag.
- Throws:
org.xml.sax.SAXException
finishTag
public void finishTag()
throws org.xml.sax.SAXException
- Close processing a value tag. This incurs setting the column value
of the prepared statement to null, if the tag has not yet been opened
by
startTag()
.
- Throws:
org.xml.sax.SAXException
closeTag
public void closeTag(java.lang.String uri,
java.lang.String localName,
java.lang.String name)
throws org.xml.sax.SAXException
- Specified by:
closeTag
in interface org.clazzes.util.xml.SAXTagHandler
- Throws:
org.xml.sax.SAXException
processCharacters
public void processCharacters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
- Specified by:
processCharacters
in interface org.clazzes.util.xml.SAXTagHandler
- Throws:
org.xml.sax.SAXException
startChildElement
public org.clazzes.util.xml.SAXTagHandler startChildElement(java.lang.String uri,
java.lang.String localName,
java.lang.String name,
org.xml.sax.Attributes atts)
throws org.xml.sax.SAXException
- Specified by:
startChildElement
in interface org.clazzes.util.xml.SAXTagHandler
- Throws:
org.xml.sax.SAXException
Copyright © 2008. All Rights Reserved.