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()
Gets the
CLOB value designated by this Clob
object as a stream of Ascii bytes. |
Reader |
getCharacterStream(long arg0,
long arg1) |
String |
getSubString(long pos,
int length)
Returns a copy of the specified substring
in the
CLOB value
designated by this Clob object. |
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, writeExternalclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfree, getCharacterStreampublic 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
CLOB value designated by this Clob
object as a stream of Ascii bytes.getAsciiStream in interface ClobCLOB dataSQLException - if there is an error accessing the
CLOB valuepublic String getSubString(long pos, int length) throws SQLException
CLOB value
designated by this Clob object.
The substring begins at position
pos and has up to length consecutive
characters.getSubString in interface Clobpos - the first character of the substring to be extracted.
The first character is at position 1.length - the number of consecutive characters to be copiedString that is the specified substring in
the CLOB value designated by this Clob objectSQLException - if there is an error accessing the CLOBpublic long length()
throws SQLException
CLOB value
designated by this Clob object.length in interface Cloblength in class BaseLobCLOB in charactersSQLExceptionpublic 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 Clobsearchstr - 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 1SQLExceptionpublic 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 Clobsearchstr - 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 ClobSQLExceptionpublic OutputStream setAsciiStream(long arg0) throws SQLException
setAsciiStream in interface ClobSQLExceptionpublic Writer setCharacterStream(long arg0) throws SQLException
setCharacterStream in interface ClobSQLExceptionpublic int setString(long arg0,
String arg1)
throws SQLException
setString in interface ClobSQLExceptionpublic int setString(long arg0,
String arg1,
int arg2,
int arg3)
throws SQLException
setString in interface ClobSQLExceptionpublic void truncate(long arg0)
throws SQLException
truncate in interface ClobSQLExceptionpublic static Clob createClob(char[] chars)
Copyright © 2019 JBoss by Red Hat. All rights reserved.