public class BaseClobType extends Streamable<Clob> implements NClob, Sequencable, Comparable<BaseClobType>
CHARSET, ENCODING, length, reference, STREAMING_BATCH_SIZE_IN_BYTES| Constructor and Description |
|---|
BaseClobType() |
BaseClobType(Clob clob) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(BaseClobType o) |
boolean |
equals(Object obj) |
void |
free() |
InputStream |
getAsciiStream() |
Reader |
getCharacterStream() |
Reader |
getCharacterStream(long pos,
long len) |
CharSequence |
getCharSequence() |
static String |
getString(Clob clob)
Utility method to convert to String
|
String |
getSubString(long pos,
int len) |
int |
hashCode() |
long |
position(Clob searchstr,
long start) |
long |
position(String searchstr,
long start) |
protected void |
readReference(ObjectInput in) |
OutputStream |
setAsciiStream(long pos) |
Writer |
setCharacterStream(long pos) |
int |
setString(long pos,
String str) |
int |
setString(long pos,
String str,
int offset,
int len) |
void |
truncate(long len) |
protected void |
writeReference(DataOutput out)
Since we have the length in chars we'll just write out in double byte format.
|
getLength, getReference, getReferenceStreamId, isBinary, length, readExternal, setReference, setReferenceStreamId, toString, writeExternalpublic BaseClobType()
public BaseClobType(Clob clob)
public InputStream getAsciiStream() throws SQLException
getAsciiStream in interface ClobSQLExceptionClob.getAsciiStream()public Reader getCharacterStream() throws SQLException
getCharacterStream in interface ClobSQLExceptionClob.getCharacterStream()public String getSubString(long pos, int len) throws SQLException
getSubString in interface ClobSQLExceptionClob.getSubString(long, int)public long position(Clob searchstr, long start) throws SQLException
position in interface ClobSQLExceptionClob.position(java.sql.Clob, long)public long position(String searchstr, long start) throws SQLException
position in interface ClobSQLExceptionClob.position(java.lang.String, long)public OutputStream setAsciiStream(long pos) throws SQLException
setAsciiStream in interface ClobSQLExceptionClob.setAsciiStream(long)public Writer setCharacterStream(long pos) throws SQLException
setCharacterStream in interface ClobSQLExceptionClob.setCharacterStream(long)public int setString(long pos,
String str,
int offset,
int len)
throws SQLException
setString in interface ClobSQLExceptionClob.setString(long, java.lang.String, int, int)public int setString(long pos,
String str)
throws SQLException
setString in interface ClobSQLExceptionClob.setString(long, java.lang.String)public void truncate(long len)
throws SQLException
truncate in interface ClobSQLExceptionClob.truncate(long)public static String getString(Clob clob) throws SQLException, IOException
clob - SQLExceptionIOExceptionpublic CharSequence getCharSequence()
getCharSequence in interface Sequencablepublic void free()
throws SQLException
free in interface ClobSQLExceptionpublic Reader getCharacterStream(long pos, long len) throws SQLException
getCharacterStream in interface ClobSQLExceptionprotected void readReference(ObjectInput in) throws IOException
readReference in class Streamable<Clob>IOExceptionprotected void writeReference(DataOutput out) throws IOException
writeReference in class Streamable<Clob>IOExceptionpublic int compareTo(BaseClobType o)
compareTo in interface Comparable<BaseClobType>Copyright © 2020. All rights reserved.