Business Components

oracle.jbo.domain
Interface LobStreamInterface

All Superinterfaces:
BlobDomainInterface, DomainInterface, LobInterface, MutableDomainInterface

public interface LobStreamInterface
extends LobInterface

Provides methods to save data to, and extract data from, LOB domain classes. These methods are implemented by all LOB-based domain classes: BlobDomain, BFileDomain, and ClobDomain.

Domain classes encapsulate Oracle SQL datatypes. Domain objects can be converted to the standard JDBC data types.

Since:
JDevloper 3.0
See Also:
TypeFactory, "JboDomainValidator"

Method Summary
TypeMethod
 void closeOutputStream()
          Closes and cleansup internal reference to output stream.
 java.io.InputStream getInputStream()
          Returns a stream to be used to read bytes from this LOB.
 java.io.OutputStream getOutputStream()
          Returns a stream to be used to write bytes into this LOB.
 
Methods inherited from interface oracle.jbo.domain.LobInterface
getOwner, getOwnerAttributeIndex, getRemoteIdString, getSize, syncClientLob, syncServerLob
 
Methods inherited from interface oracle.jbo.domain.BlobDomainInterface
loadFromDatabase, prepareForDML, saveToDatabase, saveToDatabase
 
Methods inherited from interface oracle.jbo.domain.DomainInterface
getData, setContext
 

Method Detail

getOutputStream

public java.io.OutputStream getOutputStream()
Returns a stream to be used to write bytes into this LOB. This stream works in both 2/3 tiers. In 2-tier, this stream could be the same as the stream returned by the internal jdbc object. In 3-tier, this stream is a remote OutputStream that streams data from the middle-tier LOB.

closeOutputStream

public void closeOutputStream()
Closes and cleansup internal reference to output stream.

getInputStream

public java.io.InputStream getInputStream()
Returns a stream to be used to read bytes from this LOB. This stream works in both 2/3 tiers. In 2-tier, this stream could be the same as the stream returned by the internal jdbc object. In 3-tier, this stream is a remote OutputStream that streams data from the middle-tier LOB.

Business Components