DbStorage.driver
Class LobAddressesUnitDriver

java.lang.Object
  extended byDbStorage.driver.LobAddressesUnitDriver

public final class LobAddressesUnitDriver
extends java.lang.Object

This class drives the page of addresses in the LOB segment.


Constructor Summary
LobAddressesUnitDriver()
           
 
Method Summary
static void createAddressesUnit(DbStorageManager dbsm, long transactionNumber, DbUnitAddress newUnitAddress)
          Creates a addresses' unit.
static void getAddress(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, int position, DbUnitAddress destiny)
          Gets the address in the specified position of the page in the LOB segment.
static void setAddress(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, int position, DbUnitAddress source)
          Sets the address in the specified position of the page in the LOB segment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LobAddressesUnitDriver

public LobAddressesUnitDriver()
Method Detail

createAddressesUnit

public static void createAddressesUnit(DbStorageManager dbsm,
                                       long transactionNumber,
                                       DbUnitAddress newUnitAddress)
                                throws storage.StorageException,
                                       java.io.IOException
Creates a addresses' unit.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
newUnitAddress - The address of the created structure in the LOB segment.
Throws:
storage.StorageException
java.io.IOException

getAddress

public static void getAddress(DbStorageManager dbsm,
                              long transactionNumber,
                              DbUnitAddress unitAddress,
                              int position,
                              DbUnitAddress destiny)
                       throws storage.StorageException,
                              java.io.IOException
Gets the address in the specified position of the page in the LOB segment.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the page that contains the addresses descriptor.
position - The position of the address.
destiny - Where the retrieved unit address will be stored.
Throws:
storage.StorageException
java.io.IOException

setAddress

public static void setAddress(DbStorageManager dbsm,
                              long transactionNumber,
                              DbUnitAddress unitAddress,
                              int position,
                              DbUnitAddress source)
                       throws storage.StorageException,
                              java.io.IOException
Sets the address in the specified position of the page in the LOB segment.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the page that contains the addresses descriptor.
position - The position of the address.
source - The unit to set.
Throws:
storage.StorageException
java.io.IOException