public class MariaDbClob extends MariaDbBlob implements Clob, NClob, Serializable
actualSize, blobContent| Constructor and Description |
|---|
MariaDbClob() |
MariaDbClob(byte[] bytes) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getAsciiStream() |
Reader |
getCharacterStream() |
Reader |
getCharacterStream(long pos,
long length) |
String |
getSubString(long pos,
int length)
Get sub string.
|
long |
length()
Return character length of the Clob.
|
long |
position(Clob searchstr,
long start) |
long |
position(String searchstr,
long start) |
OutputStream |
setAsciiStream(long pos) |
Writer |
setCharacterStream(long pos)
Set character stream.
|
int |
setString(long pos,
String str)
Set String.
|
int |
setString(long pos,
String str,
int offset,
int len) |
String |
toString()
ToString implementation.
|
free, getBinaryStream, getBinaryStream, getBytes, position, position, setBinaryStream, setBytes, setBytes, truncatepublic String toString()
public String getSubString(long pos, int length) throws SQLException
getSubString in interface Clobpos - positionlength - length of sub stringSQLException - if position is not possiblepublic Reader getCharacterStream() throws SQLException
getCharacterStream in interface ClobSQLExceptionpublic Reader getCharacterStream(long pos, long length) throws SQLException
getCharacterStream in interface ClobSQLExceptionpublic Writer setCharacterStream(long pos) throws SQLException
setCharacterStream in interface Clobpos - positionSQLException - if position is invalidpublic InputStream getAsciiStream() throws SQLException
getAsciiStream in interface ClobSQLExceptionpublic long position(String searchstr, long start) throws SQLException
position in interface ClobSQLExceptionpublic long position(Clob searchstr, long start) throws SQLException
position in interface ClobSQLExceptionpublic int setString(long pos,
String str)
throws SQLException
setString in interface Clobpos - positionstr - stringSQLException - if UTF-8 convertion failedpublic int setString(long pos,
String str,
int offset,
int len)
throws SQLException
setString in interface ClobSQLExceptionpublic OutputStream setAsciiStream(long pos) throws SQLException
setAsciiStream in interface ClobSQLExceptionCopyright © 2016. All rights reserved.