org.osesb.connectors.jdbc.relationalxml.columnhandlers
Class BLOBColumnToDOMElementHandler
java.lang.Object
org.osesb.connectors.jdbc.relationalxml.columnhandlers.ResultSetColumnToDOMElementHandler
org.osesb.connectors.jdbc.relationalxml.columnhandlers.BLOBColumnToDOMElementHandler
public class BLOBColumnToDOMElementHandler
- extends ResultSetColumnToDOMElementHandler
This descendant of ResultSetColumnToDOMElementHandler
converts a java.sql.Blob to a DOM CDATA Section.
- See Also:
ResultSetToXMLTransformer
|
Method Summary |
void |
handleElement(org.w3c.dom.Element element,
java.lang.Object columnValue)
Converts a ResultSet column value to a DOM Element value. |
void |
handleElement(org.w3c.dom.Element element,
java.sql.ResultSet rs,
java.lang.String columnName)
Converts a ResultSet column value to a DOM Element value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BLOBColumnToDOMElementHandler
public BLOBColumnToDOMElementHandler()
handleElement
public void handleElement(org.w3c.dom.Element element,
java.lang.Object columnValue)
throws java.lang.Exception
- Description copied from class:
ResultSetColumnToDOMElementHandler
- Converts a ResultSet column value to a DOM Element value.
This method is implemented by most built-in (standard) handlers in the
org.osesb.connectors.jdbc.relationalxml.columnhandlers
package. It can also be implemented by custom column handlers.
columnValue is usually obtained by invoking getObject()
on the resultSet, therefore, this method is less specific than
the other handleElement() siganture.
- Specified by:
handleElement in class ResultSetColumnToDOMElementHandler
- Parameters:
element - The org.w3c.dom.Element.columnValue - The column value as an Object.
- Throws:
java.lang.Exception
handleElement
public void handleElement(org.w3c.dom.Element element,
java.sql.ResultSet rs,
java.lang.String columnName)
throws java.lang.Exception
- Converts a ResultSet column value to a DOM Element value.
This method can be implemented by custom column handlers.
This method allows handlers to invoke specific
getXXXX() methods on the ResultSet. For example, use
this method to get the date or time portion of an Oracle
Date column.
- Specified by:
handleElement in class ResultSetColumnToDOMElementHandler
- Parameters:
element - The org.w3c.dom.Element.rs - The ResultSet that contains the column.columnName - The name of the column to convert.
- Throws:
java.lang.Exception