Package org.postgresql.jdbc
Class PgClob
- java.lang.Object
-
- org.postgresql.jdbc.AbstractBlobClob
-
- org.postgresql.jdbc.PgClob
-
- All Implemented Interfaces:
java.sql.Clob
public class PgClob extends AbstractBlobClob implements java.sql.Clob
-
-
Field Summary
-
Fields inherited from class org.postgresql.jdbc.AbstractBlobClob
conn
-
-
Constructor Summary
Constructors Constructor Description PgClob(BaseConnection conn, long oid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStream
getAsciiStream()
java.io.Reader
getCharacterStream()
java.io.Reader
getCharacterStream(long pos, long length)
java.lang.String
getSubString(long i, int j)
long
position(java.lang.String pattern, long start)
For now, this is not implemented.long
position(java.sql.Clob pattern, long start)
This should be simply passing the byte value of the pattern Blob.java.io.OutputStream
setAsciiStream(long pos)
java.io.Writer
setCharacterStream(long pos)
int
setString(long pos, java.lang.String str)
int
setString(long pos, java.lang.String str, int offset, int len)
-
Methods inherited from class org.postgresql.jdbc.AbstractBlobClob
addSubLO, assertPosition, assertPosition, checkFreed, free, getBinaryStream, getBytes, getLo, length, position, position, setBinaryStream, truncate
-
-
-
-
Constructor Detail
-
PgClob
public PgClob(BaseConnection conn, long oid) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
-
Method Detail
-
getCharacterStream
public java.io.Reader getCharacterStream(long pos, long length) throws java.sql.SQLException
- Specified by:
getCharacterStream
in interfacejava.sql.Clob
- Throws:
java.sql.SQLException
-
setString
public int setString(long pos, java.lang.String str) throws java.sql.SQLException
- Specified by:
setString
in interfacejava.sql.Clob
- Throws:
java.sql.SQLException
-
setString
public int setString(long pos, java.lang.String str, int offset, int len) throws java.sql.SQLException
- Specified by:
setString
in interfacejava.sql.Clob
- Throws:
java.sql.SQLException
-
setAsciiStream
public java.io.OutputStream setAsciiStream(long pos) throws java.sql.SQLException
- Specified by:
setAsciiStream
in interfacejava.sql.Clob
- Throws:
java.sql.SQLException
-
setCharacterStream
public java.io.Writer setCharacterStream(long pos) throws java.sql.SQLException
- Specified by:
setCharacterStream
in interfacejava.sql.Clob
- Throws:
java.sql.SQLException
-
getAsciiStream
public java.io.InputStream getAsciiStream() throws java.sql.SQLException
- Specified by:
getAsciiStream
in interfacejava.sql.Clob
- Throws:
java.sql.SQLException
-
getCharacterStream
public java.io.Reader getCharacterStream() throws java.sql.SQLException
- Specified by:
getCharacterStream
in interfacejava.sql.Clob
- Throws:
java.sql.SQLException
-
getSubString
public java.lang.String getSubString(long i, int j) throws java.sql.SQLException
- Specified by:
getSubString
in interfacejava.sql.Clob
- Throws:
java.sql.SQLException
-
position
public long position(java.lang.String pattern, long start) throws java.sql.SQLException
For now, this is not implemented.- Specified by:
position
in interfacejava.sql.Clob
- Throws:
java.sql.SQLException
-
position
public long position(java.sql.Clob pattern, long start) throws java.sql.SQLException
This should be simply passing the byte value of the pattern Blob.- Specified by:
position
in interfacejava.sql.Clob
- Throws:
java.sql.SQLException
-
-