|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.firebirdsql.jdbc.FBClob
public class FBClob
The mapping in the JavaTM programming language for the SQL CLOB type. An SQL CLOB is a built-in type that stores a Character Large Object as a column value in a row of a database table. CLOBS are not currently supported by the Jaybird driver. The Clob interface provides methods for getting the length of an SQL CLOB (Character Large Object) value, for materializing a CLOB value on the client, and for searching for a substring or CLOB object within a CLOB value. Methods in the interfaces ResultSet, CallableStatement, and PreparedStatement, such as getClob and setClob allow a programmer to access an SQL CLOB value. In addition, this interface has methods for updating a CLOB value.
| Constructor Summary | |
|---|---|
FBClob()
|
|
| Method Summary | |
|---|---|
void |
free()
|
InputStream |
getAsciiStream()
Gets the CLOB value designated by this Clob
object as a stream of Ascii bytes. |
Reader |
getCharacterStream()
Gets the CLOB value designated by this Clob
object as a Unicode stream. |
Reader |
getCharacterStream(long pos,
long length)
|
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 param1)
This operation is not supported |
Writer |
setCharacterStream(long param1)
This operation is not supported |
int |
setString(long param1,
String param2)
This operation is not supported Writes the given Java String to the CLOB value that this Clob object designates at the position pos. |
int |
setString(long param1,
String param2,
int param3,
int param4)
This operation is not supported |
void |
truncate(long param1)
This operation is not currently supported Truncate this Clob to a given length. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FBClob()
| Method Detail |
|---|
public long length()
throws SQLException
CLOB value
designated by this Clob object.
length in interface ClobCLOB in characters
SQLException - if there is an error accessing the
length of the CLOB
public void truncate(long param1)
throws SQLException
Clob to a given length.
truncate in interface Clobparam1 - The length to truncate this Clob to
SQLException - this operation is not supported
public 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 copied
String that is the specified substring in
the CLOB value designated by this Clob object
SQLException - if there is an error accessing the
CLOB
public Reader getCharacterStream()
throws SQLException
CLOB value designated by this Clob
object as a Unicode stream.
getCharacterStream in interface ClobCLOB data
SQLException - if there is an error accessing the
CLOB value
public InputStream getAsciiStream()
throws SQLException
CLOB value designated by this Clob
object as a stream of Ascii bytes.
getAsciiStream in interface ClobCLOB data
SQLException - if there is an error accessing the
CLOB value
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 Clobsearchstr - the substring for which to searchstart - the position at which to begin searching; the first position
is 1
SQLException - if there is an error accessing the
CLOB value
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 Clobsearchstr - the Clob object for which to searchstart - the position at which to begin searching; the first
position is 1
Clob object appears,
else -1; the first position is 1
SQLException - if there is an error accessing the
CLOB value
public int setString(long param1,
String param2)
throws SQLException
Clob object designates at the position pos.
setString in interface Clobparam1 - position at which to start writingparam2 - The String value to write
SQLException - because this operation is not supported
public int setString(long param1,
String param2,
int param3,
int param4)
throws SQLException
setString in interface Clobparam1 - param2 - param3 - param4 - SQLException -
public OutputStream setAsciiStream(long param1)
throws SQLException
setAsciiStream in interface Clobparam1 - SQLException -
public Writer setCharacterStream(long param1)
throws SQLException
setCharacterStream in interface Clobparam1 - SQLException -
public void free()
throws SQLException
free in interface ClobSQLException
public Reader getCharacterStream(long pos,
long length)
throws SQLException
getCharacterStream in interface ClobSQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||