Package org.postgresql.jdbc
Class PgClob
- java.lang.Object
-
- org.postgresql.jdbc.AbstractBlobClob
-
- org.postgresql.jdbc.PgClob
-
- All Implemented Interfaces:
Clob
public class PgClob extends AbstractBlobClob implements 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 InputStreamgetAsciiStream()ReadergetCharacterStream()ReadergetCharacterStream(long pos, long length)StringgetSubString(long i, int j)longposition(String pattern, long start)For now, this is not implemented.longposition(Clob pattern, long start)This should be simply passing the byte value of the pattern Blob.OutputStreamsetAsciiStream(long pos)WritersetCharacterStream(long pos)intsetString(long pos, String str)intsetString(long pos, 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 SQLException
- Throws:
SQLException
-
-
Method Detail
-
getCharacterStream
public Reader getCharacterStream(long pos, long length) throws SQLException
- Specified by:
getCharacterStreamin interfaceClob- Throws:
SQLException
-
setString
public int setString(long pos, String str) throws SQLException- Specified by:
setStringin interfaceClob- Throws:
SQLException
-
setString
public int setString(long pos, String str, int offset, int len) throws SQLException- Specified by:
setStringin interfaceClob- Throws:
SQLException
-
setAsciiStream
public OutputStream setAsciiStream(long pos) throws SQLException
- Specified by:
setAsciiStreamin interfaceClob- Throws:
SQLException
-
setCharacterStream
public Writer setCharacterStream(long pos) throws SQLException
- Specified by:
setCharacterStreamin interfaceClob- Throws:
SQLException
-
getAsciiStream
public InputStream getAsciiStream() throws SQLException
- Specified by:
getAsciiStreamin interfaceClob- Throws:
SQLException
-
getCharacterStream
public Reader getCharacterStream() throws SQLException
- Specified by:
getCharacterStreamin interfaceClob- Throws:
SQLException
-
getSubString
public String getSubString(long i, int j) throws SQLException
- Specified by:
getSubStringin interfaceClob- Throws:
SQLException
-
position
public long position(String pattern, long start) throws SQLException
For now, this is not implemented.- Specified by:
positionin interfaceClob- Throws:
SQLException
-
position
public long position(Clob pattern, long start) throws SQLException
This should be simply passing the byte value of the pattern Blob.- Specified by:
positionin interfaceClob- Throws:
SQLException
-
-