com.ibm.ims.db
Class DLIClobMaterializer
java.lang.Object
|
+--com.ibm.ims.db.DLIClobMaterializer
- All Implemented Interfaces:
- java.sql.Clob
- public class DLIClobMaterializer
- extends java.lang.Object
- implements java.sql.Clob
Implements the CLOB interface, and is returned from a JDBC getClob call. Builds the CLOB from the existing field
and all overflow segments.
Field Summary |
protected boolean |
open
|
Constructor Summary |
DLIClobMaterializer(byte[] baseBytes,
java.lang.String overflowName,
java.lang.String pcbAlias,
DLIConnection connection)
Assumes it is over the base segment. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
open
protected boolean open
DLIClobMaterializer
public DLIClobMaterializer(byte[] baseBytes,
java.lang.String overflowName,
java.lang.String pcbAlias,
DLIConnection connection)
throws java.io.UnsupportedEncodingException
- Assumes it is over the base segment. Will end over the last overflow segment.
length
public long length()
throws java.sql.SQLException
- Specified by:
length
in interface java.sql.Clob
getSubString
public java.lang.String getSubString(long pos,
int length)
throws java.sql.SQLException
- Specified by:
getSubString
in interface java.sql.Clob
getCharacterStream
public java.io.Reader getCharacterStream()
throws java.sql.SQLException
- Specified by:
getCharacterStream
in interface java.sql.Clob
getAsciiStream
public java.io.InputStream getAsciiStream()
throws java.sql.SQLException
- Specified by:
getAsciiStream
in interface java.sql.Clob
position
public long position(java.lang.String searchstr,
long start)
throws java.sql.SQLException
- Specified by:
position
in interface java.sql.Clob
position
public long position(java.sql.Clob searchstr,
long start)
throws java.sql.SQLException
- Specified by:
position
in interface java.sql.Clob
(C) International Business Machines Corporation 2004. All rights reserved.