|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.pds.AbstractLobHandler
This abstract class provides common basic Lob handling operations in
terms of low level access APIs that must be implemented by concrete subclasses.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
static boolean |
DEBUG
|
private static DebugWriter |
LOG
|
private static String |
RESOURCE
|
Constructor Summary | |
AbstractLobHandler()
|
Method Summary | |
protected Object |
findLocator(WTConnection a_connection,
LobLocator a_lobLocator)
This method retrieves the Blob object from the database for the specified LobLocator. |
Object |
getBlob(ResultSet a_resultSet,
int a_index)
Gets the Blob object from the ResultSet. |
InputStream |
getLob(WTConnection a_connection,
Object a_blob)
Gets the data from the specified LOB as an InputStream. |
byte[] |
getLobAsByteArray(WTConnection a_connection,
Object a_blob)
Gets the Lob as a byte array. |
Object |
getLobAsObject(WTConnection a_connection,
Object a_blob)
Gets the Lob as an object. |
void |
setBlob(CallableStatement a_statement,
int a_index,
Object a_blob)
Sets the Blob object in the CallableStatement. |
abstract long |
setLob(WTConnection a_connection,
LobLocator a_lobLocator,
InputStream a_inputStream)
Set the data in the InputStream to the specified LOB. |
abstract void |
setLob(WTConnection a_connection,
LobLocator a_lobLocator,
InputStream a_inputStream,
long a_length)
Set the data in the InputStream to the specified LOB. |
abstract void |
setObjectAsLob(WTConnection a_connection,
LobLocator a_lobLocator,
Object a_object)
Set the object as LOB. |
boolean |
streamAvailable(InputStream a_inputStream)
Supported API: false |
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
public static final boolean DEBUG
private static final DebugWriter LOG
Constructor Detail |
public AbstractLobHandler()
Method Detail |
protected Object findLocator(WTConnection a_connection, LobLocator a_lobLocator) throws DatastoreException
a_connection
- a_lobLocator
-
DatastoreException
public Object getLobAsObject(WTConnection a_connection, Object a_blob) throws DatastoreException
getLobAsObject
in interface LobHandler
a_connection
- Connection to the databasea_blob
- Blob reference to the data
DatastoreException
public byte[] getLobAsByteArray(WTConnection a_connection, Object a_blob) throws DatastoreException
getLobAsByteArray
in interface LobHandler
a_connection
- Connection to the databasea_blob
- Blob reference to the data
DatastoreException
public abstract void setLob(WTConnection a_connection, LobLocator a_lobLocator, InputStream a_inputStream, long a_length) throws DatastoreException
setLob
in interface LobHandler
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 abstract long setLob(WTConnection a_connection, LobLocator a_lobLocator, InputStream a_inputStream) throws DatastoreException
setLob
in interface LobHandler
a_connection
- Connection to the databasea_lobLocator
- specifies the Lob columna_inputStream
- Data stream for input to the lob
DatastoreException
public abstract void setObjectAsLob(WTConnection a_connection, LobLocator a_lobLocator, Object a_object) throws DatastoreException
setObjectAsLob
in interface LobHandler
a_connection
- Connection to the databasea_lobLocator
- specifies the Lob columna_object
- Object to set
DatastoreException
public InputStream getLob(WTConnection a_connection, Object a_blob) throws DatastoreException
getLob
in interface LobHandler
a_connection
- Connection to the databasea_blob
- Blob reference to the data
DatastoreException
public void setBlob(CallableStatement a_statement, int a_index, Object a_blob) throws SQLException
setBlob
in interface LobHandler
a_statement
- instance to get Blob froma_index
- Index in result set to get Blob ata_blob
-
SQLException
public Object getBlob(ResultSet a_resultSet, int a_index) throws SQLException
getBlob
in interface LobHandler
a_resultSet
- instance to get Blob froma_index
- Index in result set to get Blob at
SQLException
public boolean streamAvailable(InputStream a_inputStream) throws DatastoreException
a_inputStream
-
DatastoreException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |