|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.pds.AbstractLobHandler
wt.pds.ChunkLobHandler
This abstract class provides capabilities for reading and writing Lob
data in chunks. Subclass implementations must provide a mechanism for
this capability.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static String |
RESOURCE
|
Fields inherited from class wt.pds.AbstractLobHandler |
DEBUG |
Constructor Summary | |
ChunkLobHandler()
|
Method Summary | |
protected abstract long |
getLobLength(WTConnection a_connection,
Object a_blob)
Returns the length of the specified LOB. |
long |
setLob(WTConnection a_connection,
LobLocator a_lobLocator,
InputStream a_inputStream)
Set the data in the InputStream to the specified LOB. |
void |
setLob(WTConnection a_connection,
LobLocator a_lobLocator,
InputStream a_inputStream,
long a_length)
Set the data in the InputStream to the specified LOB. |
protected abstract void |
setLobLength(WTConnection a_connection,
Object a_blob,
long a_length)
Set the length of the specified LOB. |
void |
setObjectAsLob(WTConnection a_connection,
LobLocator a_lobLocator,
Object a_object)
Set the object as LOB. |
protected abstract void |
write(WTConnection a_connection,
Object a_blob,
long a_blobOffset,
InputStream a_inputStream,
long a_length)
Writes the data to the specified LOB. |
Methods inherited from class wt.pds.AbstractLobHandler |
findLocator, getBlob, getLob, getLobAsByteArray, getLobAsObject, setBlob, streamAvailable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
Constructor Detail |
public ChunkLobHandler()
Method Detail |
protected abstract void setLobLength(WTConnection a_connection, Object a_blob, long a_length) throws DatastoreException
a_connection
- a_blob
- a_length
-
DatastoreException
protected abstract long getLobLength(WTConnection a_connection, Object a_blob) throws DatastoreException
a_connection
- a_blob
-
DatastoreException
protected abstract void write(WTConnection a_connection, Object a_blob, long a_blobOffset, InputStream a_inputStream, long a_length) throws WTIOException
a_connection
- Connection to the database.a_blob
- Blob object reference to the dataa_blobOffset
- Offset into the Blob data to begin writinga_inputStream
- Offset into the buffer data to begin writing froma_length
- Number of bytes to write
WTIOException
public void setLob(WTConnection a_connection, LobLocator a_lobLocator, InputStream a_inputStream, long a_length) throws DatastoreException
setLob
in interface LobHandler
setLob
in class AbstractLobHandler
a_connection
- Connection to the databasea_lobLocator
- specifies the Lob columna_inputStream
- Data stream for input to the loba_length
- Number of bytes to set
DatastoreException
public long setLob(WTConnection a_connection, LobLocator a_lobLocator, InputStream a_inputStream) throws DatastoreException
setLob
in interface LobHandler
setLob
in class AbstractLobHandler
a_connection
- Connection to the databasea_lobLocator
- specifies the Lob columna_inputStream
- Data stream for input to the lob
DatastoreException
public void setObjectAsLob(WTConnection a_connection, LobLocator a_lobLocator, Object a_object) throws DatastoreException
setObjectAsLob
in interface LobHandler
setObjectAsLob
in class AbstractLobHandler
a_connection
- Connection to the databasea_lobLocator
- specifies the Lob columna_object
- Object to set
DatastoreException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |