FileDocCategorySizeDatePackage
SerializableClob.javaAPI DocHibernate 3.2.51946Wed Mar 02 04:43:36 GMT 2005org.hibernate.lob

SerializableClob

public class SerializableClob extends Object implements Serializable, Clob
author
Gavin King

Fields Summary
private final transient Clob
clob
Constructors Summary
public SerializableClob(Clob blob)

		this.clob = blob;
	
Methods Summary
public java.io.InputStreamgetAsciiStream()

		return getWrappedClob().getAsciiStream();
	
public java.io.ReadergetCharacterStream()

		return getWrappedClob().getCharacterStream();
	
public java.lang.StringgetSubString(long pos, int length)

		return getWrappedClob().getSubString(pos, length);
	
public java.sql.ClobgetWrappedClob()

		if ( clob==null ) {
			throw new IllegalStateException("Clobs may not be accessed after serialization");
		}
		else {
			return clob;
		}
	
public longlength()

		return getWrappedClob().length();
	
public longposition(java.lang.String searchstr, long start)

		return getWrappedClob().position(searchstr, start);
	
public longposition(java.sql.Clob searchstr, long start)

		return getWrappedClob().position(searchstr, start);
	
public java.io.OutputStreamsetAsciiStream(long pos)

		return getWrappedClob().setAsciiStream(pos);
	
public java.io.WritersetCharacterStream(long pos)

		return getWrappedClob().setCharacterStream(pos);
	
public intsetString(long pos, java.lang.String str, int offset, int len)

		return getWrappedClob().setString(pos, str, offset, len);
	
public intsetString(long pos, java.lang.String str)

		return getWrappedClob().setString(pos, str);
	
public voidtruncate(long len)

		getWrappedClob().truncate(len);