wt.pds
Class BasicLobHandler

java.lang.Object
  extended bywt.pds.AbstractLobHandler
      extended bywt.pds.BasicLobHandler
All Implemented Interfaces:
LobHandler

public class BasicLobHandler
extends AbstractLobHandler

This class provides a basic Lob Handler implementation using JDBC.

Supported API: false

Extendable: false


Field Summary
private static String CLASSNAME
           
static boolean DEBUG
           
private static DebugWriter LOG
           
private static String RESOURCE
           
 
Constructor Summary
BasicLobHandler()
           
 
Method Summary
 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.
 void setObjectAsLob(WTConnection a_connection, LobLocator a_lobLocator, Object a_object)
          Set the object as 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

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

DEBUG

public static final boolean DEBUG

LOG

private static final DebugWriter LOG
Constructor Detail

BasicLobHandler

public BasicLobHandler()
Method Detail

setLob

public void setLob(WTConnection a_connection,
                   LobLocator a_lobLocator,
                   InputStream a_inputStream,
                   long a_length)
            throws DatastoreException
Set the data in the InputStream to the specified LOB.

Supported API: false

Specified by:
setLob in interface LobHandler
Specified by:
setLob in class AbstractLobHandler
Parameters:
a_connection - Connection to the database
a_lobLocator - specifies the Lob column
a_inputStream - Data stream for input to the lob
a_length - Number of bytes to set
Throws:
DatastoreException

setLob

public long setLob(WTConnection a_connection,
                   LobLocator a_lobLocator,
                   InputStream a_inputStream)
            throws DatastoreException
Set the data in the InputStream to the specified LOB.

Supported API: false

Specified by:
setLob in interface LobHandler
Specified by:
setLob in class AbstractLobHandler
Parameters:
a_connection - Connection to the database
a_lobLocator - specifies the Lob column
a_inputStream - Data stream for input to the lob
Returns:
long
Throws:
DatastoreException

setObjectAsLob

public void setObjectAsLob(WTConnection a_connection,
                           LobLocator a_lobLocator,
                           Object a_object)
                    throws DatastoreException
Set the object as LOB.

Supported API: false

Specified by:
setObjectAsLob in interface LobHandler
Specified by:
setObjectAsLob in class AbstractLobHandler
Parameters:
a_connection - Connection to the database
a_lobLocator - specifies the Lob column
a_object - Object to set
Throws:
DatastoreException