|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectDbStorage.driver.SsdDescriptorDriver
This class drives a semistructured datum descriptor, this is stored in the ID segment.
Field Summary | |
static int |
DICTIONARY_REFERENCES_OFFSET
|
static int |
FIRST_PARENT_OFFSET
|
static int |
HEAD_PARENTS_COLLECTION_OFFSET
|
static int |
ROOT_PARENTS_COLLECTION_OFFSET
|
static int |
TYPE_OFFSET
|
Constructor Summary | |
SsdDescriptorDriver()
|
Method Summary | |
static void |
createSsdDescriptor(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress newUnitAddress)
Creates a SSD descriptor. |
static long |
getDictionaryReferences(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress)
Returns the number of times that the dictionary references the descripted datum. |
static void |
getFirstParent(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
PhysicalID destiny)
Gets the physical id of the first parent. |
static void |
getHeadParentsCollection(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
DbUnitAddress destiny)
Gets the unit addres in the parent's segment where the parents' collection is. |
static void |
getRootParentsCollection(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
DbUnitAddress destiny)
Gets the unit addres in the parent's segment where the parents' collection is. |
static int |
getType(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress)
Returns the type of the descripted datum. |
static void |
setDictionaryReferences(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
long source)
Sets the number of times that the dictionary references the descripted datum. |
static void |
setFirstParent(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
PhysicalID source)
Sets the physical id of the first parent. |
static void |
setHeadParentsCollection(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
DbUnitAddress source)
Sets the unit addres in the parentīs segment where the parents' collection is. |
static void |
setRootParentsCollection(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
DbUnitAddress source)
Sets the unit addres in the parentīs segment where the parents' collection is. |
static void |
setType(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
int source)
Sets the type of the descripted datum. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int DICTIONARY_REFERENCES_OFFSET
public static final int FIRST_PARENT_OFFSET
public static final int ROOT_PARENTS_COLLECTION_OFFSET
public static final int HEAD_PARENTS_COLLECTION_OFFSET
public static final int TYPE_OFFSET
Constructor Detail |
public SsdDescriptorDriver()
Method Detail |
public static void createSsdDescriptor(DbStorageManager dbsm, long transactionNumber, DbUnitAddress newUnitAddress) throws storage.StorageException, java.io.IOException
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 ID segment.
storage.StorageException
java.io.IOException
public static long getDictionaryReferences(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.unitAddress
- The address of the SSD descriptor.
storage.StorageException
java.io.IOException
public static void setDictionaryReferences(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, long source) throws storage.StorageException, java.io.IOException
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
- The number of datum's references in the dictionary.
storage.StorageException
java.io.IOException
public static void getFirstParent(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, PhysicalID destiny) throws storage.StorageException, java.io.IOException
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 Id will be stored.
storage.StorageException
java.io.IOException
public static void setFirstParent(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, PhysicalID source) throws storage.StorageException, java.io.IOException
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 Id is stored.
storage.StorageException
java.io.IOException
public static void getRootParentsCollection(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress destiny) throws storage.StorageException, java.io.IOException
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.
storage.StorageException
java.io.IOException
public static void setRootParentsCollection(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress source) throws storage.StorageException, java.io.IOException
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.
storage.StorageException
java.io.IOException
public static void getHeadParentsCollection(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress destiny) throws storage.StorageException, java.io.IOException
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.
storage.StorageException
java.io.IOException
public static void setHeadParentsCollection(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress source) throws storage.StorageException, java.io.IOException
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.
storage.StorageException
java.io.IOException
public static int getType(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.unitAddress
- The address of the SSD descriptor.
storage.StorageException
java.io.IOException
public static void setType(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, int source) throws storage.StorageException, java.io.IOException
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
- The type.
storage.StorageException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |