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, writeExternal
public BaseClobType()
public BaseClobType(Clob clob)
public InputStream getAsciiStream() throws SQLException
getAsciiStream
in interface Clob
SQLException
Clob.getAsciiStream()
public Reader getCharacterStream() throws SQLException
getCharacterStream
in interface Clob
SQLException
Clob.getCharacterStream()
public String getSubString(long pos, int len) throws SQLException
getSubString
in interface Clob
SQLException
Clob.getSubString(long, int)
public long position(Clob searchstr, long start) throws SQLException
position
in interface Clob
SQLException
Clob.position(java.sql.Clob, long)
public long position(String searchstr, long start) throws SQLException
position
in interface Clob
SQLException
Clob.position(java.lang.String, long)
public OutputStream setAsciiStream(long pos) throws SQLException
setAsciiStream
in interface Clob
SQLException
Clob.setAsciiStream(long)
public Writer setCharacterStream(long pos) throws SQLException
setCharacterStream
in interface Clob
SQLException
Clob.setCharacterStream(long)
public int setString(long pos, String str, int offset, int len) throws SQLException
setString
in interface Clob
SQLException
Clob.setString(long, java.lang.String, int, int)
public int setString(long pos, String str) throws SQLException
setString
in interface Clob
SQLException
Clob.setString(long, java.lang.String)
public void truncate(long len) throws SQLException
truncate
in interface Clob
SQLException
Clob.truncate(long)
public static String getString(Clob clob) throws SQLException, IOException
clob
- SQLException
IOException
public CharSequence getCharSequence()
getCharSequence
in interface Sequencable
public void free() throws SQLException
free
in interface Clob
SQLException
public Reader getCharacterStream(long pos, long len) throws SQLException
getCharacterStream
in interface Clob
SQLException
protected void readReference(ObjectInput in) throws IOException
readReference
in class Streamable<Clob>
IOException
protected void writeReference(DataOutput out) throws IOException
writeReference
in class Streamable<Clob>
IOException
public int compareTo(BaseClobType o)
compareTo
in interface Comparable<BaseClobType>
Copyright © 2019. All rights reserved.