DbStorage.manager
Class IdManager

java.lang.Object
  extended byDbStorage.manager.IdManager

public final class IdManager
extends java.lang.Object

This class is used to create new semistructured data.


Constructor Summary
IdManager()
           
 
Method Summary
static void createBLOB(DbStorageManager dbsm, long transactionNumber, PhysicalID newID)
          Creates a primitive BLOB datum.
static void createByteSequence(DbStorageManager dbsm, long transactionNumber, byte[] value, PhysicalID newID)
          Creates a byte sequence primitive datum.
static void createCLOB(DbStorageManager dbsm, long transactionNumber, PhysicalID newID)
          Creates a primitive CLOB datum.
static void createInteger(DbStorageManager dbsm, long transactionNumber, long value, PhysicalID newID)
          Creates a integer primitive datum.
static void createNonPrimitive(DbStorageManager dbsm, long transactionNumber, PhysicalID newID)
          Creates a non primitive datum.
static void createReal(DbStorageManager dbsm, long transactionNumber, double value, PhysicalID newID)
          Creates a real primitive datum.
static void createString(DbStorageManager dbsm, long transactionNumber, java.lang.String value, PhysicalID newID)
          Creates a strin primitive datum.
static byte[] getSimpleContent(DbStorageManager dbsm, long transactionNumber, PhysicalID id)
          Returns the byte representation of the content of a simple primitive datum.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdManager

public IdManager()
Method Detail

createNonPrimitive

public static void createNonPrimitive(DbStorageManager dbsm,
                                      long transactionNumber,
                                      PhysicalID newID)
                               throws storage.StorageException,
                                      java.io.IOException,
                                      UnavailableUnitException
Creates a non primitive datum.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
newID - Where the identifier of the new datum is stored.
Throws:
storage.StorageException
java.io.IOException
UnavailableUnitException

createBLOB

public static void createBLOB(DbStorageManager dbsm,
                              long transactionNumber,
                              PhysicalID newID)
                       throws storage.StorageException,
                              java.io.IOException,
                              UnavailableUnitException
Creates a primitive BLOB datum.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
newID - Where the identifier of the new datum is stored.
Throws:
storage.StorageException
java.io.IOException
UnavailableUnitException

createCLOB

public static void createCLOB(DbStorageManager dbsm,
                              long transactionNumber,
                              PhysicalID newID)
                       throws storage.StorageException,
                              java.io.IOException,
                              UnavailableUnitException
Creates a primitive CLOB datum.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
newID - Where the identifier of the new datum is stored.
Throws:
storage.StorageException
java.io.IOException
UnavailableUnitException

getSimpleContent

public static byte[] getSimpleContent(DbStorageManager dbsm,
                                      long transactionNumber,
                                      PhysicalID id)
                               throws storage.StorageException,
                                      java.io.IOException
Returns the byte representation of the content of a simple primitive datum.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
id - The identifier of the simple primitive datum.
Returns:
A byte array with the content of the datum.
Throws:
storage.StorageException
java.io.IOException

createInteger

public static void createInteger(DbStorageManager dbsm,
                                 long transactionNumber,
                                 long value,
                                 PhysicalID newID)
                          throws storage.StorageException,
                                 java.io.IOException,
                                 UnavailableUnitException
Creates a integer primitive datum.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
value - The value of the datum.
newID - Where the identifier of the new datum is stored.
Throws:
storage.StorageException
java.io.IOException
UnavailableUnitException

createReal

public static void createReal(DbStorageManager dbsm,
                              long transactionNumber,
                              double value,
                              PhysicalID newID)
                       throws storage.StorageException,
                              java.io.IOException,
                              UnavailableUnitException
Creates a real primitive datum.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
value - The value of the datum.
newID - Where the identifier of the new datum is stored.
Throws:
storage.StorageException
java.io.IOException
UnavailableUnitException

createString

public static void createString(DbStorageManager dbsm,
                                long transactionNumber,
                                java.lang.String value,
                                PhysicalID newID)
                         throws storage.StorageException,
                                java.io.IOException,
                                UnavailableUnitException
Creates a strin primitive datum.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
value - The value of the datum.
newID - Where the identifier of the new datum is stored.
Throws:
storage.StorageException
java.io.IOException
UnavailableUnitException

createByteSequence

public static void createByteSequence(DbStorageManager dbsm,
                                      long transactionNumber,
                                      byte[] value,
                                      PhysicalID newID)
                               throws storage.StorageException,
                                      java.io.IOException,
                                      UnavailableUnitException
Creates a byte sequence primitive datum.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
value - The value of the datum.
newID - Where the identifier of the new datum is stored.
Throws:
storage.StorageException
java.io.IOException
UnavailableUnitException