DbStorage.driver
Class NonPrimitiveSsdDescriptorDriver

java.lang.Object
  extended byDbStorage.driver.SsdDescriptorDriver
      extended byDbStorage.driver.NonPrimitiveSsdDescriptorDriver

public final class NonPrimitiveSsdDescriptorDriver
extends SsdDescriptorDriver

This class drives a semistructured datum descriptor for a non-primitive datum. A non-primitive datum uses 4 data structures to storage its content, a non-primitive datum descriptor poits to these structures.


Field Summary
static int IDS_HEAD_OFFSET
           
static int IDS_ROOT_OFFSET
           
static int LABELS_HEAD_OFFSET
           
static int LABELS_ROOT_OFFSET
           
 
Fields inherited from class DbStorage.driver.SsdDescriptorDriver
DICTIONARY_REFERENCES_OFFSET, FIRST_PARENT_OFFSET, HEAD_PARENTS_COLLECTION_OFFSET, ROOT_PARENTS_COLLECTION_OFFSET, TYPE_OFFSET
 
Constructor Summary
NonPrimitiveSsdDescriptorDriver()
           
 
Method Summary
static void getIdsHead(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress destiny)
          Gets the head's address (in the content segment) of the id ordered list collection of labeled SSD contained in the specified datum.
static void getIdsRoot(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress destiny)
          Gets the root's address (in the content segment) of the id ordered tree collection of labeled SSD contained in the specified datum.
static void getLabelsHead(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress destiny)
          Gets the head's address (in the content segment) of the label ordered tree collection of labeled SSD contained in the specified datum.
static void getLabelsRoot(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress destiny)
          Gets the root's address (in the content segment) of the label ordered tree collection of labeled SSD contained in the specified datum.
static void setIdsHead(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress source)
          Sets the head's address (in the content segment) of the id ordered list collection of labeled SSD contained in the specified datum.
static void setIdsRoot(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress source)
          Sets the root's address (in the content segment) of the id ordered tree collection of labeled SSD contained in the specified datum.
static void setLabelsHead(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress source)
          Sets the head's address (in the content segment) of the label ordered tree collection of labeled SSD contained in the specified datum.
static void setLabelsRoot(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress source)
          Sets the root's address (in the content segment) of the label ordered tree collection of labeled SSD contained in the specified datum.
 
Methods inherited from class DbStorage.driver.SsdDescriptorDriver
createSsdDescriptor, getDictionaryReferences, getFirstParent, getHeadParentsCollection, getRootParentsCollection, getType, setDictionaryReferences, setFirstParent, setHeadParentsCollection, setRootParentsCollection, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IDS_ROOT_OFFSET

public static final int IDS_ROOT_OFFSET
See Also:
Constant Field Values

IDS_HEAD_OFFSET

public static final int IDS_HEAD_OFFSET
See Also:
Constant Field Values

LABELS_ROOT_OFFSET

public static final int LABELS_ROOT_OFFSET
See Also:
Constant Field Values

LABELS_HEAD_OFFSET

public static final int LABELS_HEAD_OFFSET
See Also:
Constant Field Values
Constructor Detail

NonPrimitiveSsdDescriptorDriver

public NonPrimitiveSsdDescriptorDriver()
Method Detail

getIdsRoot

public static void getIdsRoot(DbStorageManager dbsm,
                              long transactionNumber,
                              DbUnitAddress unitAddress,
                              DbUnitAddress destiny)
                       throws storage.StorageException,
                              java.io.IOException
Gets the root's address (in the content segment) of the id ordered tree collection of labeled SSD contained in the specified datum.

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

setIdsRoot

public static void setIdsRoot(DbStorageManager dbsm,
                              long transactionNumber,
                              DbUnitAddress unitAddress,
                              DbUnitAddress source)
                       throws storage.StorageException,
                              java.io.IOException
Sets the root's address (in the content segment) of the id ordered tree collection of labeled SSD contained in the specified datum.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the SSD descriptor.
source - Where the unit address is stored.
Throws:
storage.StorageException
java.io.IOException

getIdsHead

public static void getIdsHead(DbStorageManager dbsm,
                              long transactionNumber,
                              DbUnitAddress unitAddress,
                              DbUnitAddress destiny)
                       throws storage.StorageException,
                              java.io.IOException
Gets the head's address (in the content segment) of the id ordered list collection of labeled SSD contained in the specified datum.

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

setIdsHead

public static void setIdsHead(DbStorageManager dbsm,
                              long transactionNumber,
                              DbUnitAddress unitAddress,
                              DbUnitAddress source)
                       throws storage.StorageException,
                              java.io.IOException
Sets the head's address (in the content segment) of the id ordered list collection of labeled SSD contained in the specified datum.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the SSD descriptor.
source - Where the unit address is stored.
Throws:
storage.StorageException
java.io.IOException

getLabelsRoot

public static void getLabelsRoot(DbStorageManager dbsm,
                                 long transactionNumber,
                                 DbUnitAddress unitAddress,
                                 DbUnitAddress destiny)
                          throws storage.StorageException,
                                 java.io.IOException
Gets the root's address (in the content segment) of the label ordered tree collection of labeled SSD contained in the specified datum.

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

setLabelsRoot

public static void setLabelsRoot(DbStorageManager dbsm,
                                 long transactionNumber,
                                 DbUnitAddress unitAddress,
                                 DbUnitAddress source)
                          throws storage.StorageException,
                                 java.io.IOException
Sets the root's address (in the content segment) of the label ordered tree collection of labeled SSD contained in the specified datum.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the SSD descriptor.
source - Where the unit address is stored.
Throws:
storage.StorageException
java.io.IOException

getLabelsHead

public static void getLabelsHead(DbStorageManager dbsm,
                                 long transactionNumber,
                                 DbUnitAddress unitAddress,
                                 DbUnitAddress destiny)
                          throws storage.StorageException,
                                 java.io.IOException
Gets the head's address (in the content segment) of the label ordered tree collection of labeled SSD contained in the specified datum.

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

setLabelsHead

public static void setLabelsHead(DbStorageManager dbsm,
                                 long transactionNumber,
                                 DbUnitAddress unitAddress,
                                 DbUnitAddress source)
                          throws storage.StorageException,
                                 java.io.IOException
Sets the head's address (in the content segment) of the label ordered tree collection of labeled SSD contained in the specified datum.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the SSD descriptor.
source - Where the unit address is stored.
Throws:
storage.StorageException
java.io.IOException