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 Object
- implements org.clazzes.util.xml.SAXTagHandler
A handler for the columnset element.
- Author:
- wglas
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValueTagHandler
public ValueTagHandler(ColumnInfo ci,
TimeZone timeZone,
PreparedStatement insert,
int column)
throws SAXException
- Parameters:
ci
- the column information on which to operate.timeZone
- The default time zone for
IDeserializationHandlerFactory.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:
SAXException
- Upon errors during instantiation of a
DeserializationHandler
instance.
startTag
public void startTag()
throws SAXException
- Start processing a new value tag.
- Throws:
SAXException
finishTag
public void finishTag()
throws 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:
SAXException
closeTag
public void closeTag(String uri,
String localName,
String name)
throws SAXException
- Specified by:
closeTag
in interface org.clazzes.util.xml.SAXTagHandler
- Throws:
SAXException
processCharacters
public void processCharacters(char[] ch,
int start,
int length)
throws SAXException
- Specified by:
processCharacters
in interface org.clazzes.util.xml.SAXTagHandler
- Throws:
SAXException
startChildElement
public org.clazzes.util.xml.SAXTagHandler startChildElement(String uri,
String localName,
String name,
Attributes atts)
throws SAXException
- Specified by:
startChildElement
in interface org.clazzes.util.xml.SAXTagHandler
- Throws:
SAXException
Copyright © 2011. All Rights Reserved.