public final class ClobType extends Streamable<Clob> implements NClob, Sequencable, Comparable<ClobType>
| Modifier and Type | Class and Description |
|---|---|
static class |
ClobType.Type |
CHARSET, ENCODING, length, reference, STREAMING_BATCH_SIZE_IN_BYTES| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ClobType 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) |
ClobType.Type |
getType() |
int |
hashCode() |
long |
position(Clob searchstr,
long start) |
long |
position(String searchstr,
long start) |
void |
readExternal(ObjectInput in) |
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 |
setType(ClobType.Type type) |
void |
truncate(long len) |
void |
writeExternal(ObjectOutput out) |
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, setReference, setReferenceStreamId, toStringpublic ClobType()
public ClobType(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(ClobType o)
compareTo in interface Comparable<ClobType>public ClobType.Type getType()
public void setType(ClobType.Type type)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class Streamable<Clob>IOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class Streamable<Clob>IOExceptionCopyright © 2017 JBoss by Red Hat. All rights reserved.