org.hibernate.lob

Class ClobImpl

Implemented Interfaces:
Clob

public class ClobImpl
extends java.lang.Object
implements Clob

A dummy implementation of java.sql.Clob that may be used to insert new data into a CLOB.
Author:
Gavin King

Constructor Summary

ClobImpl(Reader reader, int length)
ClobImpl(String string)

Method Summary

InputStream
getAsciiStream()
Reader
getCharacterStream()
String
getSubString(long pos, int len)
long
length()
long
position(Clob colb, long pos)
long
position(String string, long pos)
OutputStream
setAsciiStream(long pos)
Writer
setCharacterStream(long pos)
int
setString(long pos, String string)
int
setString(long pos, String string, int i, int j)
void
truncate(long pos)

Constructor Details

ClobImpl

public ClobImpl(Reader reader,
                int length)

ClobImpl

public ClobImpl(String string)

Method Details

getAsciiStream

public InputStream getAsciiStream()
            throws SQLException
See Also:
java.sql.Clob.getAsciiStream()

getCharacterStream

public Reader getCharacterStream()
            throws SQLException
See Also:
java.sql.Clob.getCharacterStream()

getSubString

public String getSubString(long pos,
                           int len)
            throws SQLException
See Also:
java.sql.Clob.getSubString(long, int)

length

public long length()
            throws SQLException
See Also:
java.sql.Clob.length()

position

public long position(Clob colb,
                     long pos)
            throws SQLException
See Also:
java.sql.Clob.position(Clob, long)

position

public long position(String string,
                     long pos)
            throws SQLException
See Also:
java.sql.Clob.position(String, long)

setAsciiStream

public OutputStream setAsciiStream(long pos)
            throws SQLException
See Also:
java.sql.Clob.setAsciiStream(long)

setCharacterStream

public Writer setCharacterStream(long pos)
            throws SQLException
See Also:
java.sql.Clob.setCharacterStream(long)

setString

public int setString(long pos,
                     String string)
            throws SQLException
See Also:
java.sql.Clob.setString(long, String)

setString

public int setString(long pos,
                     String string,
                     int i,
                     int j)
            throws SQLException
See Also:
java.sql.Clob.setString(long, String, int, int)

truncate

public void truncate(long pos)
            throws SQLException
See Also:
java.sql.Clob.truncate(long)