org.clazzes.jdbc2xml.deserialization.impl
Class BinaryDeserializationHandler

java.lang.Object
  extended by org.clazzes.jdbc2xml.deserialization.impl.AbstractSbDeserializationHandler
      extended by org.clazzes.jdbc2xml.deserialization.impl.BinaryDeserializationHandler
All Implemented Interfaces:
DeserializationHandler

public class BinaryDeserializationHandler
extends AbstractSbDeserializationHandler

A DeserializationHandler for binary values like BLOBs or binary string, which are base64-encoded inside XML files.

Author:
wglas

Field Summary
 
Fields inherited from class org.clazzes.jdbc2xml.deserialization.impl.AbstractSbDeserializationHandler
type
 
Constructor Summary
BinaryDeserializationHandler(int type)
          Default constructor.
 
Method Summary
protected  void fillColumnValue(java.sql.PreparedStatement ps, int column, java.lang.String value)
          Fill in a column value into the given PreparedStatment.
 
Methods inherited from class org.clazzes.jdbc2xml.deserialization.impl.AbstractSbDeserializationHandler
addCharacters, fillColumn, startCharacters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryDeserializationHandler

public BinaryDeserializationHandler(int type)
Default constructor.

Method Detail

fillColumnValue

protected void fillColumnValue(java.sql.PreparedStatement ps,
                               int column,
                               java.lang.String value)
                        throws java.sql.SQLException
Description copied from class: AbstractSbDeserializationHandler
Fill in a column value into the given PreparedStatment.

Specified by:
fillColumnValue in class AbstractSbDeserializationHandler
Parameters:
ps - The statement to fill.
column - The number of the column to fill.
value - The string value to set or null, if the column has to be nulled.
Throws:
java.sql.SQLException


Copyright © 2007. All Rights Reserved.