org.apache.derby.iapi.types
Class HarmonySerialClob
java.lang.Object
org.apache.derby.iapi.types.HarmonySerialClob
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.sql.Clob
public class HarmonySerialClob
- extends java.lang.Object
- implements java.sql.Clob, java.io.Serializable, java.lang.Cloneable
Copied from the Harmony project's implementation of javax.sql.rowset.serial.SerialClob
at subversion revision 946981.
- See Also:
- Serialized Form
|
Method Summary |
private void |
checkValidation()
|
void |
free()
|
java.io.InputStream |
getAsciiStream()
|
java.io.Reader |
getCharacterStream()
|
java.io.Reader |
getCharacterStream(long pos,
long length)
|
java.lang.String |
getSubString(long pos,
int length)
|
long |
length()
|
private boolean |
match(char[] chars,
int start,
char[] pattern)
|
long |
position(java.sql.Clob searchClob,
long start)
|
long |
position(java.lang.String searchString,
long start)
|
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 length)
|
void |
truncate(long length)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
buf
private char[] buf
clob
private java.sql.Clob clob
len
private long len
origLen
private long origLen
HarmonySerialClob
public HarmonySerialClob(java.lang.String raw)
HarmonySerialClob
public HarmonySerialClob(char[] ch)
HarmonySerialClob
public HarmonySerialClob(java.sql.Clob clob)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
length
public long length()
throws java.sql.SQLException
- Specified by:
length in interface java.sql.Clob
- Throws:
java.sql.SQLException
getAsciiStream
public java.io.InputStream getAsciiStream()
throws java.sql.SQLException
- Specified by:
getAsciiStream in interface java.sql.Clob
- Throws:
java.sql.SQLException
getCharacterStream
public java.io.Reader getCharacterStream()
throws java.sql.SQLException
- Specified by:
getCharacterStream in interface java.sql.Clob
- Throws:
java.sql.SQLException
getSubString
public java.lang.String getSubString(long pos,
int length)
throws java.sql.SQLException
- Specified by:
getSubString in interface java.sql.Clob
- Throws:
java.sql.SQLException
position
public long position(java.sql.Clob searchClob,
long start)
throws java.sql.SQLException
- Specified by:
position in interface java.sql.Clob
- Throws:
java.sql.SQLException
position
public long position(java.lang.String searchString,
long start)
throws java.sql.SQLException,
java.sql.SQLException
- Specified by:
position in interface java.sql.Clob
- Throws:
java.sql.SQLException
match
private boolean match(char[] chars,
int start,
char[] pattern)
setAsciiStream
public java.io.OutputStream setAsciiStream(long pos)
throws java.sql.SQLException
- Specified by:
setAsciiStream in interface java.sql.Clob
- Throws:
java.sql.SQLException
setCharacterStream
public java.io.Writer setCharacterStream(long pos)
throws java.sql.SQLException
- Specified by:
setCharacterStream in interface java.sql.Clob
- Throws:
java.sql.SQLException
setString
public int setString(long pos,
java.lang.String str)
throws java.sql.SQLException
- Specified by:
setString in interface java.sql.Clob
- Throws:
java.sql.SQLException
setString
public int setString(long pos,
java.lang.String str,
int offset,
int length)
throws java.sql.SQLException
- Specified by:
setString in interface java.sql.Clob
- Throws:
java.sql.SQLException
truncate
public void truncate(long length)
throws java.sql.SQLException
- Specified by:
truncate in interface java.sql.Clob
- Throws:
java.sql.SQLException
free
public void free()
throws java.sql.SQLException
- Specified by:
free in interface java.sql.Clob
- Throws:
java.sql.SQLException
getCharacterStream
public java.io.Reader getCharacterStream(long pos,
long length)
throws java.sql.SQLException
- Specified by:
getCharacterStream in interface java.sql.Clob
- Throws:
java.sql.SQLException
checkValidation
private void checkValidation()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
Apache Derby V10.10 Internals - Copyright © 2004,2013 The Apache Software Foundation. All Rights Reserved.