|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectDbStorage.driver.SsdDescriptorDriver
DbStorage.driver.LobPrimitiveSsdDescriptorDriver
This class drives a semistructured datum descriptor for a LOB primitive datum.
Field Summary | |
static int |
CONTENT_EXTENSION_OFFSET
|
static int |
CONTENT_OFFSET
|
static int |
CONTENT_SIZE_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 | |
LobPrimitiveSsdDescriptorDriver()
|
Method Summary | |
static int |
getContent(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
int position,
int maxLength,
byte[] b,
int off)
Gets the part of datum's content stored in the specified descriptor. |
static void |
getContentExtension(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
DbUnitAddress destiny)
Gets the content extension's address (in the CONTENT segment for simple data or LOB segment for LOB data) of the specified primitive datum. |
static long |
getContentSize(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress)
Returns the content's size of the descripted simple primitive datum. |
static int |
setContent(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
int position,
int maxLength,
byte[] b,
int off)
Sets the part of datum's content stored in the specified descriptor. |
static void |
setContentExtension(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
DbUnitAddress source)
Sets the Content Extension's address (in the CONTENT segment for simple data or LOB segment for LOB data) of the specified primitive datum. |
static void |
setContentSize(DbStorageManager dbsm,
long transactionNumber,
DbUnitAddress unitAddress,
long source)
Sets the content's size of the descripted simple primitive 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 |
public static final int CONTENT_EXTENSION_OFFSET
public static final int CONTENT_SIZE_OFFSET
public static final int CONTENT_OFFSET
Constructor Detail |
public LobPrimitiveSsdDescriptorDriver()
Method Detail |
public static void getContentExtension(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 setContentExtension(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 long getContentSize(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 setContentSize(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 size.
storage.StorageException
java.io.IOException
public static int getContent(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, int position, int maxLength, byte[] b, int off) 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.position
- The position in the page from which the reading starts.maxLength
- The maximun number of bytes to be got.b
- Where the content will be stored.off
- The begining position of b where the content will be stored.
storage.StorageException
java.io.IOException
public static int setContent(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, int position, int maxLength, byte[] b, int off) 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.position
- The position in the page from which the reading starts.maxLength
- The maximun number of bytes to be setted.b
- Where the content is stored.off
- The begining position of b where the content is stored.
storage.StorageException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |