org.clazzes.jdbc2xml.serialization.impl
Class TimestampSerializationHandler
java.lang.Object
org.clazzes.jdbc2xml.serialization.impl.TimestampSerializationHandler
- All Implemented Interfaces:
- SerializationHandler
public class TimestampSerializationHandler
- extends Object
- implements SerializationHandler
- Author:
- wglas
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimestampSerializationHandler
public TimestampSerializationHandler(TimeZone timeZone)
fetchData
public void fetchData(ResultSet rs,
int column)
throws SQLException
- Description copied from interface:
SerializationHandler
- Set the data to be serialized from the given column of an SQL result set.
After this call,
SerializationHandler.isNull()
or SerializationHandler.fetchData(ResultSet, int)
may be called.
- Specified by:
fetchData
in interface SerializationHandler
- Throws:
SQLException
isNull
public boolean isNull()
- Specified by:
isNull
in interface SerializationHandler
- Returns:
- Whether the data received through
SerializationHandler.fetchData(ResultSet, int)
is a SQL null value.
pushData
public void pushData(ContentHandler handler)
throws SAXException
- Description copied from interface:
SerializationHandler
- Write the data of the database value to the CDATA content of the currently open tag
by calling
ContentHandler.characters(char[], int, int)
.
This call resets the state of this handler, so SerializationHandler.fetchData(ResultSet, int)
my be called
again.
- Specified by:
pushData
in interface SerializationHandler
- Parameters:
handler
- The ContentHandler to push the characters to.
- Throws:
SAXException
Copyright © 2012. All Rights Reserved.