org.objectweb.cjdbc.common.sql.filters
Class HexaBlobFilter

java.lang.Object
  extended byorg.objectweb.cjdbc.common.sql.filters.AbstractBlobFilter
      extended byorg.objectweb.cjdbc.common.sql.filters.HexaBlobFilter

public class HexaBlobFilter
extends AbstractBlobFilter

This class defines a HexaBlobFilterInterface. It encodes the blobs in hexa values

Version:
1.0
Author:
Nicolas Modrzyk

Constructor Summary
HexaBlobFilter()
           
 
Method Summary
 byte[] decode(byte[] data)
          Decode the blob data from the database.
 byte[] decode(java.lang.String data)
          Decode the blob data from the database.
 java.lang.String encode(byte[] data)
          Encode the blob data in a form that is independant of the database.
 java.lang.String encode(java.lang.String data)
          Encode the blob data in a form that is independant of the database.
 java.lang.String getXml()
          Get the XML attribute value of the filter as defined in the DTD.
 
Methods inherited from class org.objectweb.cjdbc.common.sql.filters.AbstractBlobFilter
getBlobFilterInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HexaBlobFilter

public HexaBlobFilter()
Method Detail

decode

public byte[] decode(byte[] data)
Description copied from class: AbstractBlobFilter
Decode the blob data from the database. This must done in a database independant manner.

Specified by:
decode in class AbstractBlobFilter
Parameters:
data - the data to decode
Returns:
byte[] decoded byte array of data
See Also:
AbstractBlobFilter.decode(java.lang.String)

encode

public java.lang.String encode(java.lang.String data)
Description copied from class: AbstractBlobFilter
Encode the blob data in a form that is independant of the database.

Specified by:
encode in class AbstractBlobFilter
Parameters:
data - the byte array to convert
Returns:
String object is returned for convenience as this is the way it is going to be handled afterwards.
See Also:
AbstractBlobFilter.encode(java.lang.String)

decode

public byte[] decode(java.lang.String data)
Description copied from class: AbstractBlobFilter
Decode the blob data from the database. This must done in a database independant manner.

Specified by:
decode in class AbstractBlobFilter
Parameters:
data - the data to decode
Returns:
byte[] decoded byte array of data
See Also:
AbstractBlobFilter.decode(java.lang.String)

encode

public java.lang.String encode(byte[] data)
Description copied from class: AbstractBlobFilter
Encode the blob data in a form that is independant of the database.

Specified by:
encode in class AbstractBlobFilter
Parameters:
data - the byte array to convert
Returns:
String object is returned for convenience as this is the way it is going to be handled afterwards.
See Also:
AbstractBlobFilter.encode(byte[])

getXml

public java.lang.String getXml()
Description copied from class: AbstractBlobFilter
Get the XML attribute value of the filter as defined in the DTD.

Specified by:
getXml in class AbstractBlobFilter
Returns:
XML attribute value
See Also:
AbstractBlobFilter.getXml()


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.