| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!--NewPage--> |
| <HTML> |
| <HEAD> |
| <!-- Generated by javadoc (build 1.5.0_06) on Wed Jul 19 14:42:53 EDT 2006 --> |
| <TITLE> |
| MemoryClob (Cayenne API Documentation - v.1.2) |
| </TITLE> |
| |
| <META NAME="keywords" CONTENT="org.objectstyle.cayenne.util.MemoryClob class"> |
| |
| <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../objectstyle-javadoc.css" TITLE="Style"> |
| |
| <SCRIPT type="text/javascript"> |
| function windowTitle() |
| { |
| parent.document.title="MemoryClob (Cayenne API Documentation - v.1.2)"; |
| } |
| </SCRIPT> |
| <NOSCRIPT> |
| </NOSCRIPT> |
| |
| </HEAD> |
| |
| <BODY BGCOLOR="white" onload="windowTitle();"> |
| |
| |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <A NAME="navbar_top"><!-- --></A> |
| <A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| <TR> |
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_top_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| <TR ALIGN="center" VALIGN="top"> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../org/objectstyle/cayenne/util/MemoryBlob.html" title="class in org.objectstyle.cayenne.util"><B>PREV CLASS</B></A> |
| <A HREF="../../../../org/objectstyle/cayenne/util/NameConverter.html" title="class in org.objectstyle.cayenne.util"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../index.html?org/objectstyle/cayenne/util/MemoryClob.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="MemoryClob.html" target="_top"><B>NO FRAMES</B></A> |
| <SCRIPT type="text/javascript"> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
| </NOSCRIPT> |
| |
| |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <A NAME="skip-navbar_top"></A> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| |
| <HR> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <H2> |
| <FONT SIZE="-1"> |
| org.objectstyle.cayenne.util</FONT> |
| <BR> |
| Class MemoryClob</H2> |
| <PRE> |
| java.lang.Object |
| <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.objectstyle.cayenne.util.MemoryClob</B> |
| </PRE> |
| <DL> |
| <DT><B>All Implemented Interfaces:</B> <DD>java.sql.Clob</DD> |
| </DL> |
| <HR> |
| <DL> |
| <DT><PRE>public class <B>MemoryClob</B><DT>extends java.lang.Object<DT>implements java.sql.Clob</DL> |
| </PRE> |
| |
| <P> |
| A Clob implementation that stores contents in memory. |
| <p> |
| <i>This implementation is based on jdbcClob from HSQLDB (copyright HSQL Development |
| Group).</i> |
| </p> |
| <P> |
| |
| <P> |
| <DL> |
| <DT><B>Since:</B></DT> |
| <DD>1.2</DD> |
| <DT><B>Author:</B></DT> |
| <DD>Andrus Adamchik</DD> |
| </DL> |
| <HR> |
| |
| <P> |
| |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| |
| <A NAME="constructor_summary"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| <B>Constructor Summary</B></FONT></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/util/MemoryClob.html#MemoryClob(java.lang.String)">MemoryClob</A></B>(java.lang.String data)</CODE> |
| |
| <BR> |
| Constructs a new jdbcClob object wrapping the given character sequence.</TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ========== METHOD SUMMARY =========== --> |
| |
| <A NAME="method_summary"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| <B>Method Summary</B></FONT></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.io.InputStream</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/util/MemoryClob.html#getAsciiStream()">getAsciiStream</A></B>()</CODE> |
| |
| <BR> |
| Retrieves the <code>CLOB</code> value designated by this <code>Clob</code> |
| object as an ascii stream.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.io.Reader</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/util/MemoryClob.html#getCharacterStream()">getCharacterStream</A></B>()</CODE> |
| |
| <BR> |
| Retrieves the <code>CLOB</code> value designated by this <code>Clob</code> |
| object as a <code>java.io.Reader</code> object (or as a stream of characters).</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/util/MemoryClob.html#getSubString(long, int)">getSubString</A></B>(long pos, |
| int length)</CODE> |
| |
| <BR> |
| Retrieves a copy of the specified substring in the <code>CLOB</code> value |
| designated by this <code>Clob</code> object.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> long</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/util/MemoryClob.html#length()">length</A></B>()</CODE> |
| |
| <BR> |
| Retrieves the number of characters in the <code>CLOB</code> value designated by |
| this <code>Clob</code> object.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> long</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/util/MemoryClob.html#position(java.sql.Clob, long)">position</A></B>(java.sql.Clob searchstr, |
| long start)</CODE> |
| |
| <BR> |
| Retrieves the character position at which the specified <code>Clob</code> object |
| <code>searchstr</code> appears in this <code>Clob</code> object.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> long</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/util/MemoryClob.html#position(java.lang.String, long)">position</A></B>(java.lang.String searchstr, |
| long start)</CODE> |
| |
| <BR> |
| Retrieves the character position at which the specified substring |
| <code>searchstr</code> appears in the SQL <code>CLOB</code> value represented |
| by this <code>Clob</code> object.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.io.OutputStream</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/util/MemoryClob.html#setAsciiStream(long)">setAsciiStream</A></B>(long pos)</CODE> |
| |
| <BR> |
| Retrieves a stream to be used to write Ascii characters to the <code>CLOB</code> |
| value that this <code>Clob</code> object represents, starting at position |
| <code>pos</code>.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.io.Writer</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/util/MemoryClob.html#setCharacterStream(long)">setCharacterStream</A></B>(long pos)</CODE> |
| |
| <BR> |
| Retrieves a stream to be used to write a stream of Unicode characters to the |
| <code>CLOB</code> value that this <code>Clob</code> object represents, at |
| position <code>pos</code>.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/util/MemoryClob.html#setString(long, java.lang.String)">setString</A></B>(long pos, |
| java.lang.String str)</CODE> |
| |
| <BR> |
| Writes the given Java <code>String</code> to the <code>CLOB</code> value that |
| this <code>Clob</code> object designates at the position <code>pos</code>.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/util/MemoryClob.html#setString(long, java.lang.String, int, int)">setString</A></B>(long pos, |
| java.lang.String str, |
| int offset, |
| int len)</CODE> |
| |
| <BR> |
| Writes <code>len</code> characters of <code>str</code>, starting at character |
| <code>offset</code>, to the <code>CLOB</code> value that this |
| <code>Clob</code> represents.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/objectstyle/cayenne/util/MemoryClob.html#truncate(long)">truncate</A></B>(long len)</CODE> |
| |
| <BR> |
| Truncates the <code>CLOB</code> value that this <code>Clob</code> designates to |
| have a length of <code>len</code> characters.</TD> |
| </TR> |
| </TABLE> |
| <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> |
| </TR> |
| </TABLE> |
| |
| <P> |
| |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| |
| <A NAME="constructor_detail"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
| <B>Constructor Detail</B></FONT></TH> |
| </TR> |
| </TABLE> |
| |
| <A NAME="MemoryClob(java.lang.String)"><!-- --></A><H3> |
| MemoryClob</H3> |
| <PRE> |
| public <B>MemoryClob</B>(java.lang.String data)</PRE> |
| <DL> |
| <DD>Constructs a new jdbcClob object wrapping the given character sequence. |
| <p> |
| This constructor is used internally to retrieve result set values as Clob objects, |
| yet it must be public to allow access from other packages. As such (in the interest |
| of efficiency) this object maintains a reference to the given String object rather |
| than making a copy and so it is gently suggested (in the interest of effective |
| memory management) that extenal clients using this constructor either take pause to |
| consider the implications or at least take care to provide a String object whose |
| internal character buffer is not much larger than required to represent the value. |
| <P> |
| <DL> |
| <DT><B>Parameters:</B><DD><CODE>data</CODE> - the character sequence representing the Clob value |
| <DT><B>Throws:</B> |
| <DD><CODE>java.sql.SQLException</CODE> - if the argument is null</DL> |
| </DL> |
| |
| <!-- ============ METHOD DETAIL ========== --> |
| |
| <A NAME="method_detail"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
| <B>Method Detail</B></FONT></TH> |
| </TR> |
| </TABLE> |
| |
| <A NAME="length()"><!-- --></A><H3> |
| length</H3> |
| <PRE> |
| public long <B>length</B>() |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Retrieves the number of characters in the <code>CLOB</code> value designated by |
| this <code>Clob</code> object. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE>length</CODE> in interface <CODE>java.sql.Clob</CODE></DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>length of the <code>CLOB</code> in characters |
| <DT><B>Throws:</B> |
| <DD><CODE>java.sql.SQLException</CODE> - if there is an error accessing the length of the |
| <code>CLOB</code> value</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getSubString(long, int)"><!-- --></A><H3> |
| getSubString</H3> |
| <PRE> |
| public java.lang.String <B>getSubString</B>(long pos, |
| int length) |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Retrieves a copy of the specified substring in the <code>CLOB</code> value |
| designated by this <code>Clob</code> object. The substring begins at position |
| <code>pos</code> and has up to <code>length</code> consecutive characters. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE>getSubString</CODE> in interface <CODE>java.sql.Clob</CODE></DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE>java.sql.SQLException</CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getCharacterStream()"><!-- --></A><H3> |
| getCharacterStream</H3> |
| <PRE> |
| public java.io.Reader <B>getCharacterStream</B>() |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Retrieves the <code>CLOB</code> value designated by this <code>Clob</code> |
| object as a <code>java.io.Reader</code> object (or as a stream of characters). |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE>getCharacterStream</CODE> in interface <CODE>java.sql.Clob</CODE></DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>a <code>java.io.Reader</code> object containing the <code>CLOB</code> |
| data |
| <DT><B>Throws:</B> |
| <DD><CODE>java.sql.SQLException</CODE> - if there is an error accessing the <code>CLOB</code> |
| value</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getAsciiStream()"><!-- --></A><H3> |
| getAsciiStream</H3> |
| <PRE> |
| public java.io.InputStream <B>getAsciiStream</B>() |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Retrieves the <code>CLOB</code> value designated by this <code>Clob</code> |
| object as an ascii stream. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE>getAsciiStream</CODE> in interface <CODE>java.sql.Clob</CODE></DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>a <code>java.io.InputStream</code> object containing the |
| <code>CLOB</code> data |
| <DT><B>Throws:</B> |
| <DD><CODE>java.sql.SQLException</CODE> - if there is an error accessing the <code>CLOB</code> |
| value</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="position(java.lang.String, long)"><!-- --></A><H3> |
| position</H3> |
| <PRE> |
| public long <B>position</B>(java.lang.String searchstr, |
| long start) |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Retrieves the character position at which the specified substring |
| <code>searchstr</code> appears in the SQL <code>CLOB</code> value represented |
| by this <code>Clob</code> object. The search begins at position |
| <code>start</code>. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE>position</CODE> in interface <CODE>java.sql.Clob</CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>searchstr</CODE> - the substring for which to search<DD><CODE>start</CODE> - the position at which to begin searching; the first position is 1 |
| <DT><B>Returns:</B><DD>the position at which the substring appears or -1 if it is not present; the |
| first position is 1 |
| <DT><B>Throws:</B> |
| <DD><CODE>java.sql.SQLException</CODE> - if there is an error accessing the <code>CLOB</code> |
| value</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="position(java.sql.Clob, long)"><!-- --></A><H3> |
| position</H3> |
| <PRE> |
| public long <B>position</B>(java.sql.Clob searchstr, |
| long start) |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Retrieves the character position at which the specified <code>Clob</code> object |
| <code>searchstr</code> appears in this <code>Clob</code> object. The search |
| begins at position <code>start</code>. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE>position</CODE> in interface <CODE>java.sql.Clob</CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>searchstr</CODE> - the <code>Clob</code> object for which to search<DD><CODE>start</CODE> - the position at which to begin searching; the first position is 1 |
| <DT><B>Returns:</B><DD>the position at which the <code>Clob</code> object appears or -1 if it is |
| not present; the first position is 1 |
| <DT><B>Throws:</B> |
| <DD><CODE>java.sql.SQLException</CODE> - if there is an error accessing the <code>CLOB</code> |
| value</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setString(long, java.lang.String)"><!-- --></A><H3> |
| setString</H3> |
| <PRE> |
| public int <B>setString</B>(long pos, |
| java.lang.String str) |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Writes the given Java <code>String</code> to the <code>CLOB</code> value that |
| this <code>Clob</code> object designates at the position <code>pos</code>. |
| Calling this method always throws an <code>SQLException</code>. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE>setString</CODE> in interface <CODE>java.sql.Clob</CODE></DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE>java.sql.SQLException</CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setString(long, java.lang.String, int, int)"><!-- --></A><H3> |
| setString</H3> |
| <PRE> |
| public int <B>setString</B>(long pos, |
| java.lang.String str, |
| int offset, |
| int len) |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Writes <code>len</code> characters of <code>str</code>, starting at character |
| <code>offset</code>, to the <code>CLOB</code> value that this |
| <code>Clob</code> represents. Calling this method always throws an |
| <code>SQLException</code>. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE>setString</CODE> in interface <CODE>java.sql.Clob</CODE></DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE>java.sql.SQLException</CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setAsciiStream(long)"><!-- --></A><H3> |
| setAsciiStream</H3> |
| <PRE> |
| public java.io.OutputStream <B>setAsciiStream</B>(long pos) |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Retrieves a stream to be used to write Ascii characters to the <code>CLOB</code> |
| value that this <code>Clob</code> object represents, starting at position |
| <code>pos</code>. |
| <p> |
| Calling this method always throws an <code>SQLException</code>. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE>setAsciiStream</CODE> in interface <CODE>java.sql.Clob</CODE></DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE>java.sql.SQLException</CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setCharacterStream(long)"><!-- --></A><H3> |
| setCharacterStream</H3> |
| <PRE> |
| public java.io.Writer <B>setCharacterStream</B>(long pos) |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Retrieves a stream to be used to write a stream of Unicode characters to the |
| <code>CLOB</code> value that this <code>Clob</code> object represents, at |
| position <code>pos</code>. |
| <p> |
| Calling this method always throws an <code>SQLException</code>. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE>setCharacterStream</CODE> in interface <CODE>java.sql.Clob</CODE></DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE>java.sql.SQLException</CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="truncate(long)"><!-- --></A><H3> |
| truncate</H3> |
| <PRE> |
| public void <B>truncate</B>(long len) |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Truncates the <code>CLOB</code> value that this <code>Clob</code> designates to |
| have a length of <code>len</code> characters. |
| <p> |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE>truncate</CODE> in interface <CODE>java.sql.Clob</CODE></DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE>java.sql.SQLException</CODE></DL> |
| </DD> |
| </DL> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <HR> |
| |
| |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <A NAME="navbar_bottom"><!-- --></A> |
| <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| <TR> |
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_bottom_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| <TR ALIGN="center" VALIGN="top"> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../org/objectstyle/cayenne/util/MemoryBlob.html" title="class in org.objectstyle.cayenne.util"><B>PREV CLASS</B></A> |
| <A HREF="../../../../org/objectstyle/cayenne/util/NameConverter.html" title="class in org.objectstyle.cayenne.util"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../index.html?org/objectstyle/cayenne/util/MemoryClob.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="MemoryClob.html" target="_top"><B>NO FRAMES</B></A> |
| <SCRIPT type="text/javascript"> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
| </NOSCRIPT> |
| |
| |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <A NAME="skip-navbar_bottom"></A> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| |
| <HR> |
| |
| <!--@SFLOGO@--> <i>Copyright © 2001-2006 <a href= |
| "http://objectstyle.org" target="_top">ObjectStyle.org</a> All Rights Reserved.</i> |
| |
| </BODY> |
| </HTML> |