public class ClobImpl extends BaseLob implements Clob
Constructor and Description |
---|
ClobImpl() |
ClobImpl(char[] chars) |
ClobImpl(InputStreamFactory streamFactory,
long length)
Creates a new ClobImpl.
|
ClobImpl(String str) |
Modifier and Type | Method and Description |
---|---|
static Clob |
createClob(char[] chars) |
InputStream |
getAsciiStream() |
Reader |
getCharacterStream(long arg0,
long arg1) |
String |
getSubString(long pos,
int length) |
long |
length()
Returns the number of characters in the
CLOB value
designated by this Clob object. |
long |
position(Clob searchstr,
long start)
Determines the character position at which the specified
Clob object searchstr appears in this
Clob object. |
long |
position(String searchstr,
long start)
Determines the character position at which the specified substring
searchstr appears in the SQL CLOB value
represented by this Clob object. |
OutputStream |
setAsciiStream(long arg0) |
Writer |
setCharacterStream(long arg0) |
int |
setString(long arg0,
String arg1) |
int |
setString(long arg0,
String arg1,
int arg2,
int arg3) |
void |
truncate(long arg0) |
free, getBinaryStream, getCharacterStream, getCharset, getStreamFactory, readExternal, setCharset, setEncoding, setStreamFactory, writeExternal
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
free, getCharacterStream
public ClobImpl()
public ClobImpl(InputStreamFactory streamFactory, long length)
InputStreamFactory
since
it refers to bytes and not chars.streamFactory
- length
- public ClobImpl(char[] chars)
public ClobImpl(String str)
public InputStream getAsciiStream() throws SQLException
getAsciiStream
in interface Clob
SQLException
public String getSubString(long pos, int length) throws SQLException
getSubString
in interface Clob
SQLException
public long length() throws SQLException
CLOB
value
designated by this Clob
object.length
in interface Clob
length
in class BaseLob
CLOB
in charactersSQLException
public long position(Clob searchstr, long start) throws SQLException
Clob
object searchstr
appears in this
Clob
object. The search begins at position
start
.position
in interface Clob
searchstr
- the Clob
object for which to searchstart
- the position at which to begin searching; the first
position is 1Clob
object appears,
else -1; the first position is 1SQLException
public long position(String searchstr, long start) throws SQLException
searchstr
appears in the SQL CLOB
value
represented by this Clob
object. The search
begins at position start
.position
in interface Clob
searchstr
- the substring for which to searchstart
- the position at which to begin searching; the first position
is 1SQLException
- if there is an error accessing the
CLOB
valuepublic Reader getCharacterStream(long arg0, long arg1) throws SQLException
getCharacterStream
in interface Clob
SQLException
public OutputStream setAsciiStream(long arg0) throws SQLException
setAsciiStream
in interface Clob
SQLException
public Writer setCharacterStream(long arg0) throws SQLException
setCharacterStream
in interface Clob
SQLException
public int setString(long arg0, String arg1) throws SQLException
setString
in interface Clob
SQLException
public int setString(long arg0, String arg1, int arg2, int arg3) throws SQLException
setString
in interface Clob
SQLException
public void truncate(long arg0) throws SQLException
truncate
in interface Clob
SQLException
public static Clob createClob(char[] chars)
Copyright © 2020. All rights reserved.