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

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

public class ClobStrategy
extends TypeStrategy

Converts an element of column type Clob.

Author:
The OGSA-DAI Team.

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
           
 
Constructor Summary
ClobStrategy()
           
 
Method Summary
 java.io.InputStream getAsciiStream(java.lang.String data)
          Returns an input stream that reads characters from the input string.
 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.io.Reader getCharacterStream(java.lang.String data)
          Returns a Reader that reads from the input string.
 java.sql.Clob getClob(java.lang.String data)
          Returns the input string as a Clob.
 java.lang.Object getObject(java.lang.String data)
          Returns the input string as an object.
 java.lang.String getString(java.lang.String data)
          Returns the input string.
 
Methods inherited from class uk.org.ogsadai.converters.webrowset.resultset.types.TypeStrategy
getArray, getBigDecimal, getBigDecimal, getBoolean, getByte, getDate, getDate, getDouble, getFloat, getInt, getLong, getRef, getShort, 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

ClobStrategy

public ClobStrategy()
Method Detail

getAsciiStream

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

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

getBinaryStream

public java.io.InputStream getBinaryStream(java.lang.String data)
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.

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)
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.

getCharacterStream

public java.io.Reader getCharacterStream(java.lang.String data)
                                  throws java.sql.SQLException
Description copied from class: TypeStrategy
Returns a Reader that reads from the input string.

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

getClob

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

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

getString

public java.lang.String getString(java.lang.String data)
Description copied from class: TypeStrategy
Returns the input string.

Overrides:
getString in class TypeStrategy
Parameters:
data - Input data.
Returns:
converted input.

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.