|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.cjdbc.common.sql.filters.AbstractBlobFilter
This class defines a BlobFilterInterface. All implementing interface should satisfy the following: - Implementation is not dependant of the database - decode(encode(data)) = data
Constructor Summary | |
AbstractBlobFilter()
|
Method Summary | |
abstract byte[] |
decode(byte[] data)
Decode the blob data from the database. |
abstract byte[] |
decode(java.lang.String data)
Decode the blob data from the database. |
abstract java.lang.String |
encode(byte[] data)
Encode the blob data in a form that is independant of the database. |
abstract java.lang.String |
encode(java.lang.String data)
Encode the blob data in a form that is independant of the database. |
static AbstractBlobFilter |
getBlobFilterInstance(java.lang.String blobEncodingMethod)
Get an instance of an AbstractBlobFilter given the
blobEndodingMethod description. |
abstract java.lang.String |
getXml()
Get the XML attribute value of the filter as defined in the DTD. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractBlobFilter()
Method Detail |
public static AbstractBlobFilter getBlobFilterInstance(java.lang.String blobEncodingMethod)
AbstractBlobFilter
given the
blobEndodingMethod description. Currently supported are: hexa
none
escaped
NoneBlobFilter
instance is returned.
blobEncodingMethod
- the string description
AbstractBlobFilter
instancepublic abstract java.lang.String encode(byte[] data)
data
- the byte array to convert
String
object is returned for convenience as this is
the way it is going to be handled afterwards.public abstract java.lang.String encode(java.lang.String data)
data
- the byte array to convert
String
object is returned for convenience as this is
the way it is going to be handled afterwards.public abstract byte[] decode(byte[] data)
data
- the data to decode
byte[]
decoded byte array of datapublic abstract byte[] decode(java.lang.String data)
data
- the data to decode
byte[]
decoded byte array of datapublic abstract java.lang.String getXml()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |