|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectDbStorage.manager.BlobManager
This class implements the metods to storage BLOB objects.
Constructor Summary | |
BlobManager()
|
Method Summary | |
static long |
getLength(DbStorageManager dbsm,
long transactionNumber,
PhysicalID id)
Returns the length of the datum. |
static int |
read(DbStorageManager dbsm,
long transactionNumber,
PhysicalID id,
long from,
byte[] b)
Reads from a BLOB datum and stores the readed in a byte array. |
static int |
read(DbStorageManager dbsm,
long transactionNumber,
PhysicalID id,
long from,
int maxLength,
byte[] b,
int off)
Reads from a BLOB datum and stores the readed in a byte array. |
static void |
setLength(DbStorageManager dbsm,
long transactionNumber,
PhysicalID id,
long newLength)
Changes the length of the BLOB datum. |
static int |
write(DbStorageManager dbsm,
long transactionNumber,
PhysicalID id,
long from,
byte[] b)
Writes a byte array into a BLOB datum. |
static int |
write(DbStorageManager dbsm,
long transactionNumber,
PhysicalID id,
long from,
int maxLength,
byte[] b,
int off)
Writes a byte array into a BLOB datum. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BlobManager()
Method Detail |
public static void setLength(DbStorageManager dbsm, long transactionNumber, PhysicalID id, long newLength) throws storage.StorageException, java.io.IOException, OutOfLOBException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.id
- The identifier of the datum to resize.newLength
- The new length of the datum.
storage.StorageException
java.io.IOException
OutOfLOBException
public static long getLength(DbStorageManager dbsm, long transactionNumber, PhysicalID id) 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 to resize.
storage.StorageException
java.io.IOException
public static int write(DbStorageManager dbsm, long transactionNumber, PhysicalID id, long from, int maxLength, byte[] b, int off) throws storage.StorageException, java.io.IOException, OutOfLOBException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.id
- The identifier of the datum to wrote.from
- The position of the BLOB from which the witting starts.maxLength
- The maximum number of bytes to write.b
- The array contains the bytes to write.off
- The offset of b
from which the bytes are retrieved.
storage.StorageException
java.io.IOException
OutOfLOBException
public static int write(DbStorageManager dbsm, long transactionNumber, PhysicalID id, long from, byte[] b) throws storage.StorageException, java.io.IOException, OutOfLOBException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.id
- The identifier of the datum to wrote.from
- The position of the BLOB from which the witting starts.b
- The array contains the bytes to write.
storage.StorageException
java.io.IOException
OutOfLOBException
public static int read(DbStorageManager dbsm, long transactionNumber, PhysicalID id, long from, int maxLength, byte[] b, int off) throws storage.StorageException, java.io.IOException, OutOfLOBException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.id
- The identifier of the datum to read.from
- The position of the BLOB from which the reading starts.maxLength
- The maximum number of bytes to read.b
- The array where the readed bytes will be stored.off
- The offset of b
from which the readed bytes are stored.
storage.StorageException
java.io.IOException
OutOfLOBException
public static int read(DbStorageManager dbsm, long transactionNumber, PhysicalID id, long from, byte[] b) throws storage.StorageException, java.io.IOException, OutOfLOBException
dbsm
- The data base storage manager where the operation will be performed.transactionNumber
- The number of transaction.id
- The identifier of the datum to read.from
- The position of the BLOB from which the reading starts.b
- The array where the readed bytes will be stored.
storage.StorageException
java.io.IOException
OutOfLOBException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |