java.sql.CLOB interface .
Objects created using the ImportClob class are
intended to be be used to create a clob object of the data stored
in an import file. Only the routines that are needed to read the
clob data for the clob columns by the inserts done through the VTI
have real implementations, Other routines are dummy ones to satisfy
java.sql.Clob interface.
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private long | |
| private long | |
| private ImportLobFile | |
| private long |
| Access | Constructor and Description |
|---|---|
| public | ImportClob(ImportLobFile
lob file resource object, using which data is read. lobFile, long byte offset in the file, of this clob column data. position, long length of this clob object data in bytes. length)Create a import Clob object, that reads |
| public | ImportClob(String
String that contains the clob data. data)Create a Clob object, whose value is given as string. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public InputStream | getAsciiStream()
Implements java. This routine is not used by the VTI to read the data, so no implementation is provided, an exception is thrown if it is called. |
| public Reader | Returns: a Reader containing theCLOB data.Implements java. Returns |
| public Reader | getCharacterStream(long
the offset to the first character of the partial value to
be retrieved. The first character in the Clob is at position 1. pos, long the length in characters of the partial value to be retrieved. length)Implements java. Raise error, not used by import |
| public String | getSubString(long
the first character of the substring to be extracted.
The first character is at position 1. pos, int the number of consecutive characters to be copied;
the value for length must be 0 or greater length)Implements java. This routine is not used by the VTI to read the data, so no implementation is provided, an exception is thrown if it is called. |
| public long | Returns: length of theCLOB in charactersImplements java. Returns the number of characters in this |
| private SQLException | |
| public long | position(String
the substring for which to search searchstr, long the position at which to begin searching;
the first position is 1 start)Implements java. This routine is not used by the VTI to read the data, so no implementation is provided, an exception is thrown if it is called. |
| public long | position(Clob
the searchstr, long Clob object for which to searchthe position at which to begin searching; the first
position is 1 start)Implements java. This routine is not used by the VTI to read the data, so no implementation is provided, an exception is thrown if it is called. |
| public OutputStream | setAsciiStream(long
the position at which to start writing to this
pos)CLOB object; The first position is 1Implements java. This routine is not used by the VTI to read the data, so no implementation is provided, an exception is thrown if it is called. |
| public Writer | setCharacterStream(long
the position at which to start writing to the
pos)CLOB value; The first position is 1Implements java. This routine is not used by the VTI to read the data, so no implementation is provided, an exception is thrown if it is called. |
| public int | setString(long
the position at which to start writing to the pos, String CLOB
value that this Clob object represents;
the first position is 1.the string to be written to the str)CLOB
value that this Clob designatesImplements java. This routine is not used by the VTI to read the data, so no implementation is provided, an exception is thrown if it is called. |
| public int | setString(long
the position at which to start writing to this
pos, String CLOB object; The first position is 1the string to be written to the str, int CLOB
value that this Clob object representsthe offset into offset, int str to start reading
the characters to be writtenthe number of characters to be written len)Implements java. This routine is not used by the VTI to read the data, so no implementation is provided, an exception is thrown if it is called. |
| public void | truncate(long
the length, in characters, to which the len)CLOB value
should be truncatedImplements java. This routine is not used by the VTI to read the data, so no implementation is provided, an exception is thrown if it is called. |
| clobData | back to summary |
|---|---|
| private String clobData | |
| clobLength | back to summary |
|---|---|
| private long clobLength | |
| length | back to summary |
|---|---|
| private long length | |
| lobFile | back to summary |
|---|---|
| private ImportLobFile lobFile | |
| position | back to summary |
|---|---|
| private long position | |
| ImportClob | back to summary |
|---|---|
| public ImportClob(ImportLobFile lobFile, long position, long length) throws IOException Create a import Clob object, that reads
| |
| ImportClob | back to summary |
|---|---|
| public ImportClob(String data) Create a Clob object, whose value is given as string.
| |
| free | back to summary |
|---|---|
| public void free() throws SQLException Implements java. Raise error, not used by import
| |
| getAsciiStream | back to summary |
|---|---|
| public InputStream getAsciiStream() throws SQLException Implements java. This routine is not used by the VTI to read the data, so no implementation is provided, an exception is thrown if it is called.
| |
| getCharacterStream | back to summary |
|---|---|
| public Reader getCharacterStream() throws SQLException Implements java. Returns
| |
| getCharacterStream | back to summary |
|---|---|
| public Reader getCharacterStream(long pos, long length) throws SQLException Implements java. Raise error, not used by import
| |
| getSubString | back to summary |
|---|---|
| public String getSubString(long pos, int length) throws SQLException Implements java. This routine is not used by the VTI to read the data, so no implementation is provided, an exception is thrown if it is called.
| |
| length | back to summary |
|---|---|
| public long length() throws SQLException Implements java. Returns the number of characters in this
| |
| methodNotImplemented | back to summary |
|---|---|
| private SQLException methodNotImplemented() Return an unimplemented feature error | |
| position | back to summary |
|---|---|
| public long position(String searchstr, long start) throws SQLException Implements java. This routine is not used by the VTI to read the data, so no implementation is provided, an exception is thrown if it is called.
| |
| position | back to summary |
|---|---|
| public long position(Clob searchstr, long start) throws SQLException Implements java. This routine is not used by the VTI to read the data, so no implementation is provided, an exception is thrown if it is called.
| |
| setAsciiStream | back to summary |
|---|---|
| public OutputStream setAsciiStream(long pos) throws SQLException Implements java. This routine is not used by the VTI to read the data, so no implementation is provided, an exception is thrown if it is called.
| |
| setCharacterStream | back to summary |
|---|---|
| public Writer setCharacterStream(long pos) throws SQLException Implements java. This routine is not used by the VTI to read the data, so no implementation is provided, an exception is thrown if it is called.
| |
| setString | back to summary |
|---|---|
| public int setString(long pos, String str) throws SQLException Implements java. This routine is not used by the VTI to read the data, so no implementation is provided, an exception is thrown if it is called.
| |
| setString | back to summary |
|---|---|
| public int setString(long pos, String str, int offset, int len) throws SQLException Implements java. This routine is not used by the VTI to read the data, so no implementation is provided, an exception is thrown if it is called.
| |
| truncate | back to summary |
|---|---|
| public void truncate(long len) throws SQLException Implements java. This routine is not used by the VTI to read the data, so no implementation is provided, an exception is thrown if it is called.
| |