uk.org.ogsadai.converters.webrowset.resultset.types
Class BlobStrategy

java.lang.Object
  extended byuk.org.ogsadai.converters.webrowset.resultset.types.TypeStrategy
      extended byuk.org.ogsadai.converters.webrowset.resultset.types.BlobStrategy

public class BlobStrategy
extends TypeStrategy

Converts a string value into a java.sql.Blob.

Author:
The OGSA-DAI Team.

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
           
 
Constructor Summary
BlobStrategy()
           
 
Method Summary
 java.io.InputStream getBinaryStream(java.lang.String data)
          Returns an input stream that reads the input string as binary data.
 java.sql.Blob getBlob(java.lang.String data)
          Returns the input string as a Blob.
 byte[] getBytes(java.lang.String data)
          Returns the input string as a byte array.
 java.lang.Object getObject(java.lang.String data)
          Returns the input string as an object.
 
Methods inherited from class uk.org.ogsadai.converters.webrowset.resultset.types.TypeStrategy
getArray, getAsciiStream, getBigDecimal, getBigDecimal, getBoolean, getByte, getCharacterStream, getClob, getDate, getDate, getDouble, getFloat, getInt, getLong, getRef, getShort, getString, getTime, getTime, getTimestamp, getTimestamp, getUnicodeStream, getURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
See Also:
Constant Field Values
Constructor Detail

BlobStrategy

public BlobStrategy()
Method Detail

getBinaryStream

public java.io.InputStream getBinaryStream(java.lang.String data)
                                    throws java.sql.SQLException
Description copied from class: TypeStrategy
Returns an input stream that reads the input string as binary data.

Overrides:
getBinaryStream in class TypeStrategy
Parameters:
data - Input data.
Returns:
an input stream.
Throws:
java.sql.SQLException - if there was a problem with the conversion.

getBlob

public java.sql.Blob getBlob(java.lang.String data)
                      throws java.sql.SQLException
Description copied from class: TypeStrategy
Returns the input string as a Blob.

Overrides:
getBlob in class TypeStrategy
Parameters:
data - Input data.
Returns:
converted input.
Throws:
java.sql.SQLException - if there was a problem with the conversion.

getBytes

public byte[] getBytes(java.lang.String data)
                throws java.sql.SQLException
Description copied from class: TypeStrategy
Returns the input string as a byte array.

Overrides:
getBytes in class TypeStrategy
Parameters:
data - Input data.
Returns:
converted input.
Throws:
java.sql.SQLException - if there was a problem with the conversion.

getObject

public java.lang.Object getObject(java.lang.String data)
                           throws java.sql.SQLException
Description copied from class: TypeStrategy
Returns the input string as an object.

Overrides:
getObject in class TypeStrategy
Parameters:
data - Input data.
Returns:
converted input.
Throws:
java.sql.SQLException - if there was a problem with the conversion.