org.hibernate.lob
Class ClobImpl
java.lang.Object
org.hibernate.lob.ClobImpl
- All Implemented Interfaces:
- java.sql.Clob
public class ClobImpl
- extends java.lang.Object
- implements java.sql.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(java.io.Reader reader,
int length)
|
ClobImpl(java.lang.String string)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClobImpl
public ClobImpl(java.lang.String string)
ClobImpl
public ClobImpl(java.io.Reader reader,
int length)
length
public long length()
throws java.sql.SQLException
- Specified by:
length
in interface java.sql.Clob
- Throws:
java.sql.SQLException
- See Also:
Clob.length()
truncate
public void truncate(long pos)
throws java.sql.SQLException
- Specified by:
truncate
in interface java.sql.Clob
- Throws:
java.sql.SQLException
- See Also:
Clob.truncate(long)
getAsciiStream
public java.io.InputStream getAsciiStream()
throws java.sql.SQLException
- Specified by:
getAsciiStream
in interface java.sql.Clob
- Throws:
java.sql.SQLException
- See Also:
Clob.getAsciiStream()
setAsciiStream
public java.io.OutputStream setAsciiStream(long pos)
throws java.sql.SQLException
- Specified by:
setAsciiStream
in interface java.sql.Clob
- Throws:
java.sql.SQLException
- See Also:
Clob.setAsciiStream(long)
getCharacterStream
public java.io.Reader getCharacterStream()
throws java.sql.SQLException
- Specified by:
getCharacterStream
in interface java.sql.Clob
- Throws:
java.sql.SQLException
- See Also:
Clob.getCharacterStream()
setCharacterStream
public java.io.Writer setCharacterStream(long pos)
throws java.sql.SQLException
- Specified by:
setCharacterStream
in interface java.sql.Clob
- Throws:
java.sql.SQLException
- See Also:
Clob.setCharacterStream(long)
getSubString
public java.lang.String getSubString(long pos,
int len)
throws java.sql.SQLException
- Specified by:
getSubString
in interface java.sql.Clob
- Throws:
java.sql.SQLException
- See Also:
Clob.getSubString(long, int)
setString
public int setString(long pos,
java.lang.String string)
throws java.sql.SQLException
- Specified by:
setString
in interface java.sql.Clob
- Throws:
java.sql.SQLException
- See Also:
Clob.setString(long, String)
setString
public int setString(long pos,
java.lang.String string,
int i,
int j)
throws java.sql.SQLException
- Specified by:
setString
in interface java.sql.Clob
- Throws:
java.sql.SQLException
- See Also:
Clob.setString(long, String, int, int)
position
public long position(java.lang.String string,
long pos)
throws java.sql.SQLException
- Specified by:
position
in interface java.sql.Clob
- Throws:
java.sql.SQLException
- See Also:
Clob.position(String, long)
position
public long position(java.sql.Clob colb,
long pos)
throws java.sql.SQLException
- Specified by:
position
in interface java.sql.Clob
- Throws:
java.sql.SQLException
- See Also:
Clob.position(Clob, long)
Copyright © 2008 Hibernate.org. All Rights Reserved.