biz.c24.io.api.data
Class SQLClob

java.lang.Object
  extended by biz.c24.io.api.data.SQLClob
All Implemented Interfaces:
Clob

public class SQLClob
extends Object
implements Clob

An object representing a SQL CLOB (Character Large OBject).

Warning: Serialized objects of this class or of a deployed class which is derived from it may not be compatible with future releases of C24 Integreation Objects. The current serialization support is appropriate for short term storage or RMI between applications running the same version of C24 Integreation Objects.

See Also:
SQLClobDataType

Constructor Summary
SQLClob()
          Constructs a new instance.
SQLClob(String str)
          Constructs a new instance from the specified string.
 
Method Summary
 boolean equals(Object obj)
           
 void free()
          Releases the underlying data.
 InputStream getAsciiStream()
           
 Reader getCharacterStream()
           
 Reader getCharacterStream(long pos, long length)
          Retrieves the value as a reader from the specified position.
 String getSubString(long pos, int length)
           
 int hashCode()
           
 long length()
           
 long position(Clob searchstr, long start)
           
 long position(String searchstr, long start)
           
 OutputStream setAsciiStream(long pos)
           
 Writer setCharacterStream(long pos)
           
 int setString(long pos, String str)
           
 int setString(long pos, String str, int offset, int len)
           
 String toString()
           
 void truncate(long len)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SQLClob

public SQLClob()
Constructs a new instance.


SQLClob

public SQLClob(String str)
Constructs a new instance from the specified string.

Parameters:
str - The string to use.
Method Detail

length

public long length()
            throws SQLException
Specified by:
length in interface Clob
Throws:
SQLException

truncate

public void truncate(long len)
              throws SQLException
Specified by:
truncate in interface Clob
Throws:
SQLException

getAsciiStream

public InputStream getAsciiStream()
                           throws SQLException
Specified by:
getAsciiStream in interface Clob
Throws:
SQLException

setAsciiStream

public OutputStream setAsciiStream(long pos)
                            throws SQLException
Specified by:
setAsciiStream in interface Clob
Throws:
SQLException

getCharacterStream

public Reader getCharacterStream()
                          throws SQLException
Specified by:
getCharacterStream in interface Clob
Throws:
SQLException

getCharacterStream

public Reader getCharacterStream(long pos,
                                 long length)
Retrieves the value as a reader from the specified position.

Specified by:
getCharacterStream in interface Clob
Parameters:
pos - The position to retrieve the data from.
length - The length of the desired stream.
Returns:
A stream containing the BLOB data.

setCharacterStream

public Writer setCharacterStream(long pos)
                          throws SQLException
Specified by:
setCharacterStream in interface Clob
Throws:
SQLException

getSubString

public String getSubString(long pos,
                           int length)
                    throws SQLException
Specified by:
getSubString in interface Clob
Throws:
SQLException

setString

public int setString(long pos,
                     String str)
              throws SQLException
Specified by:
setString in interface Clob
Throws:
SQLException

setString

public int setString(long pos,
                     String str,
                     int offset,
                     int len)
              throws SQLException
Specified by:
setString in interface Clob
Throws:
SQLException

position

public long position(String searchstr,
                     long start)
              throws SQLException
Specified by:
position in interface Clob
Throws:
SQLException

position

public long position(Clob searchstr,
                     long start)
              throws SQLException
Specified by:
position in interface Clob
Throws:
SQLException

free

public void free()
Releases the underlying data.

Specified by:
free in interface Clob

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


C24 Technologies © 2002-2012: All Rights Reserved.