|
jxDBCon 0.9z | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.sourceforge.jxdbcon.AbstractClob
AbstractClob implements generics of the Clob interface.
It defines the (get|set)(Ascii|Character)Stream accessor functions
which delegate their work to the getSubString|setString functions.
When extending this class, You still have to define:
TODO:
| Constructor Summary | |
AbstractClob()
|
|
| Method Summary | |
InputStream |
getAsciiStream()
Gets the CLOB value designated by this Clob object as a stream of Ascii bytes. |
Reader |
getCharacterStream()
Gets the CLOB value designated by this Clob object as a Unicode stream. |
private static void |
reThrow(SQLException ex)
|
OutputStream |
setAsciiStream(long opos)
Returns a stream to be used to write Ascii characters to the CLOB value that this Clob designates, starting at position pos. |
Writer |
setCharacterStream(long opos)
Returns a stream to be used to write a stream of Unicode characters to the CLOB value that this Clob designates, at position pos. |
abstract int |
setString(long pos,
String string)
Writes len characters of str, starting at character offset, to the CLOB value that this Clob represents. |
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 designates. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.sql.Clob |
getSubString, length, position, position, truncate |
| Constructor Detail |
public AbstractClob()
| Method Detail |
public InputStream getAsciiStream()
throws SQLException
getAsciiStream in interface ClobSQLException - if there is an error accessing the CLOB value.Clob.length(),
Clob.getSubString(long,int)
public Reader getCharacterStream()
throws SQLException
getCharacterStream in interface ClobSQLException - if there is an error accessing the CLOB valueClob.length(),
Clob.getSubString(long,int)
private static final void reThrow(SQLException ex)
throws IOException
IOException
public OutputStream setAsciiStream(long opos)
throws SQLException
setAsciiStream in interface ClobSQLExceptionsetString(long,String)
public Writer setCharacterStream(long opos)
throws SQLException
setCharacterStream in interface ClobSQLExceptionsetString(long,String)
public abstract int setString(long pos,
String string)
throws SQLException
setString in interface Clobpos - the position at which to start writing to this CLOB objectstring - the string to be written to the CLOB value that this Clob
object represents
SQLException - if there is an error accessing the CLOB value.
public int setString(long pos,
String str,
int offset,
int len)
throws SQLException
setString in interface ClobSQLExceptionsetString(long,String)
|
jxDBCon 0.9z | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||