|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectDbStorage.manager.ParentsCollectionManager
This class manages the content of a collection of identifiers. This collection is implemented using 2 data structures combined in one, an AA-tree and a double linked list are used, for ordering the collection by identifier.
Constructor Summary | |
ParentsCollectionManager()
|
Method Summary | |
static boolean |
contains(DbStorageManager dbsm,
long transactionNumber,
PhysicalID id,
PhysicalID matchID)
Checks if a specified identifier belongs to the collection. |
static void |
delete(DbStorageManager dbsm,
long transactionNumber,
PhysicalID id,
PhysicalID deletedID)
Deletes a specified identifier from the collection. |
static void |
insert(DbStorageManager dbsm,
long transactionNumber,
PhysicalID id,
PhysicalID insertedID)
Inserts a specified identifier to the collection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ParentsCollectionManager()
Method Detail |
public static boolean contains(DbStorageManager dbsm, long transactionNumber, PhysicalID id, PhysicalID matchID) throws storage.StorageException, java.io.IOException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.id
- The identifier of the datum that represents the collection.matchID
- The identifier to search.
true
if the identifier is in the collection,
false
otherwise.
storage.StorageException
java.io.IOException
public static void insert(DbStorageManager dbsm, long transactionNumber, PhysicalID id, PhysicalID insertedID) throws storage.StorageException, java.io.IOException, UnavailableUnitException, AlreadyExistingException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.id
- The identifier of the datum that represents the collection.insertedID
- The identifier to insert.
storage.StorageException
java.io.IOException
UnavailableUnitException
AlreadyExistingException
public static void delete(DbStorageManager dbsm, long transactionNumber, PhysicalID id, PhysicalID deletedID) throws storage.StorageException, java.io.IOException, NotExistingException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.id
- The identifier of datum that represents the collection.deletedID
- The identifier of the datum to delete.
storage.StorageException
java.io.IOException
NotExistingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |