org.postgresql.jdbc3
Class AbstractJdbc3Clob
java.lang.Object
org.postgresql.jdbc2.AbstractJdbc2BlobClob
org.postgresql.jdbc2.AbstractJdbc2Clob
org.postgresql.jdbc3.AbstractJdbc3Clob
- Direct Known Subclasses:
- AbstractJdbc4Clob, Jdbc3Clob, Jdbc3gClob
public abstract class AbstractJdbc3Clob
- extends AbstractJdbc2Clob
|
Method Summary |
OutputStream |
setAsciiStream(long pos)
Retrieves a stream to be used to write Ascii characters to the
CLOB value that this Clob object represents,
starting at position pos. |
Writer |
setCharacterStream(long pos)
Retrieves a stream to be used to write a stream of Unicode characters
to the CLOB value that this Clob object
represents, at position pos. |
int |
setString(long pos,
String str)
Writes the given Java String to the CLOB
value that this Clob object designates at the position
pos. |
int |
setString(long pos,
String str,
int offset,
int len)
Writes len characters of str, starting
at character offset, to the CLOB value
that this Clob represents. |
| Methods inherited from class org.postgresql.jdbc2.AbstractJdbc2BlobClob |
assertPosition, assertPosition, checkFreed, free, getBinaryStream, getBytes, length, position, position, setBinaryStream, truncate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractJdbc3Clob
public AbstractJdbc3Clob(BaseConnection conn,
long oid)
throws SQLException
- Throws:
SQLException
setString
public int setString(long pos,
String str)
throws SQLException
- Writes the given Java
String to the CLOB
value that this Clob object designates at the position
pos.
- Parameters:
pos - the position at which to start writing to the CLOB
value that this Clob object representsstr - the string to be written to the CLOB
value that this Clob designates
- Returns:
- the number of characters written
- Throws:
SQLException - if there is an error accessing the
CLOB value- Since:
- 1.4
setString
public int setString(long pos,
String str,
int offset,
int len)
throws SQLException
- Writes
len characters of str, starting
at character offset, to the CLOB value
that this Clob represents.
- Parameters:
pos - the position at which to start writing to this
CLOB objectstr - the string to be written to the CLOB
value that this Clob object representsoffset - the offset into str to start reading
the characters to be writtenlen - the number of characters to be written
- Returns:
- the number of characters written
- Throws:
SQLException - if there is an error accessing the
CLOB value- Since:
- 1.4
setAsciiStream
public OutputStream setAsciiStream(long pos)
throws SQLException
- Retrieves a stream to be used to write Ascii characters to the
CLOB value that this Clob object represents,
starting at position pos.
- Parameters:
pos - the position at which to start writing to this
CLOB object
- Returns:
- the stream to which ASCII encoded characters can be written
- Throws:
SQLException - if there is an error accessing the
CLOB value- Since:
- 1.4
- See Also:
AbstractJdbc2Clob.getAsciiStream()
setCharacterStream
public Writer setCharacterStream(long pos)
throws SQLException
- Retrieves a stream to be used to write a stream of Unicode characters
to the
CLOB value that this Clob object
represents, at position pos.
- Parameters:
pos - the position at which to start writing to the
CLOB value
- Returns:
- a stream to which Unicode encoded characters can be written
- Throws:
SQLException - if there is an error accessing the
CLOB value- Since:
- 1.4
- See Also:
AbstractJdbc2Clob.getCharacterStream()
Copyright © 2013. All Rights Reserved.