|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.altair.hwm.database.sql.HWMClobDB
public class HWMClobDB
Title: HWMClobDB
Description: The clob implementation for embedded databases
Company: Altair Engineering, Inc.
Constructor Summary | |
---|---|
HWMClobDB()
Constructor |
|
HWMClobDB(char[] arrChars)
Constructor |
|
HWMClobDB(java.sql.Clob clob)
Constructor |
Method Summary | |
---|---|
java.io.InputStream |
getAsciiStream()
Gets the CLOB value designated by this Clob
object as a stream of Ascii bytes. |
java.io.Reader |
getCharacterStream()
Gets the CLOB value designated by this Clob
object as a Unicode stream. |
java.lang.String |
getSubString(long nPos,
int nLength)
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(java.sql.Clob strSearch,
long nStart)
Determines the character position at which the specified Clob object searchstr appears in this
Clob object. |
long |
position(java.lang.String strSearch,
long nStart)
Determines the character position at which the specified substring searchstr appears in the SQL CLOB value
represented by this Clob object. |
java.io.OutputStream |
setAsciiStream(long pos)
|
java.io.Writer |
setCharacterStream(long pos)
|
int |
setString(long pos,
java.lang.String str)
|
int |
setString(long pos,
java.lang.String str,
int offset,
int len)
|
java.lang.String |
toString()
Returns a string representation of this class |
void |
truncate(long len)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HWMClobDB()
public HWMClobDB(java.sql.Clob clob) throws java.sql.SQLException
clob
- The clob to store
java.sql.SQLException
public HWMClobDB(char[] arrChars) throws java.sql.SQLException
char[]
- The character array to store
java.sql.SQLException
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public long length() throws java.sql.SQLException
CLOB
value
designated by this Clob
object.
length
in interface java.sql.Clob
CLOB
in characters
java.sql.SQLException
- if there is an error accessing the
length of the CLOB
public java.lang.String getSubString(long nPos, int nLength) throws java.sql.SQLException
CLOB
value
designated by this Clob
object.
The substring begins at position
pos
and has up to length
consecutive
characters.
getSubString
in interface java.sql.Clob
nPos
- the first character of the substring to be extracted.
The first character is at position 1.nLength
- the number of consecutive characters to be copied
String
that is the specified substring in
the CLOB
value designated by this Clob
object
java.sql.SQLException
- if there is an error accessing the
CLOB
public java.io.Reader getCharacterStream() throws java.sql.SQLException
CLOB
value designated by this Clob
object as a Unicode stream.
getCharacterStream
in interface java.sql.Clob
CLOB
data
java.sql.SQLException
- if there is an error accessing the
CLOB
valuepublic java.io.InputStream getAsciiStream() throws java.sql.SQLException
CLOB
value designated by this Clob
object as a stream of Ascii bytes.
getAsciiStream
in interface java.sql.Clob
CLOB
data
java.sql.SQLException
- if there is an error accessing the
CLOB
valuepublic long position(java.lang.String strSearch, long nStart) throws java.sql.SQLException
searchstr
appears in the SQL CLOB
value
represented by this Clob
object. The search
begins at position start
.
position
in interface java.sql.Clob
strSearch
- the substring for which to searchnStart
- the position at which to begin searching; the first position
is 1
java.sql.SQLException
- if there is an error accessing the
CLOB
valuepublic long position(java.sql.Clob strSearch, long nStart) throws java.sql.SQLException
Clob
object searchstr
appears in this
Clob
object. The search begins at position
start
.
position
in interface java.sql.Clob
strSearch
- the Clob
object for which to searchnStart
- the position at which to begin searching; the first
position is 1
Clob
object appears,
else -1; the first position is 1
java.sql.SQLException
- if there is an error accessing the
CLOB
valuepublic void truncate(long len) throws java.sql.SQLException
truncate
in interface java.sql.Clob
java.sql.SQLException
public java.io.OutputStream setAsciiStream(long pos) throws java.sql.SQLException
setAsciiStream
in interface java.sql.Clob
java.sql.SQLException
public java.io.Writer setCharacterStream(long pos) throws java.sql.SQLException
setCharacterStream
in interface java.sql.Clob
java.sql.SQLException
public int setString(long pos, java.lang.String str) throws java.sql.SQLException
setString
in interface java.sql.Clob
java.sql.SQLException
public int setString(long pos, java.lang.String str, int offset, int len) throws java.sql.SQLException
setString
in interface java.sql.Clob
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |