Business Components

oracle.jbo.domain
Interface BlobDomainInterface

All Known Implementing Classes:
BlobDomain, ClobDomain, BFileDomain

public interface BlobDomainInterface
extends DomainInterface

Implemented by all "blob" based domain classes.

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
 void loadFromDatabase(Transaction transaction)
          Loads the actual data of the "blob" type database attribute into memory.
 void prepareForDML(java.lang.Object context)
           
 void saveToDatabase(Transaction transaction)
          Saves data in memory to a database "blob" type attribute.
 void saveToDatabase(Transaction transaction, java.lang.Object emptySQLObject)
           
 
Methods inherited from interface oracle.jbo.domain.DomainInterface
getData, setContext
 

Method Detail

loadFromDatabase

public void loadFromDatabase(Transaction transaction)
                      throws java.lang.Exception
Loads the actual data of the "blob" type database attribute into memory.

The transaction argument is needed to perform an additional query into the database to extract the data.

This method does not need to be invoked for a new attribute.

Parameters:
transaction - the oracle.jbo.rt.DBTransactionImpl of the current appmodule.

saveToDatabase

public void saveToDatabase(Transaction transaction)
                    throws java.lang.Exception
Saves data in memory to a database "blob" type attribute.

The transaction argument is is needed to perform an additional query into the database to write the data.

This method does not need to be invoked if this attribute's data has not changed.

Parameters:
transaction - the oracle.jbo.rt.DBTransactionImpl instance of the current application module.

saveToDatabase

public void saveToDatabase(Transaction transaction,
                           java.lang.Object emptySQLObject)
                    throws java.lang.Exception

prepareForDML

public void prepareForDML(java.lang.Object context)

Business Components