DbStorage.driver
Class DictionaryContentNodeDriver

java.lang.Object
  extended byDbStorage.driver.DictionaryContentNodeDriver

public class DictionaryContentNodeDriver
extends java.lang.Object

This class drives a dictionary content node for building the dictionary content, this is stored in the DICTIONARY segment. A dictionary contents node keeps 4 data structures to storage the dictionary entries.


Field Summary
static int ID_HEIGHT_OFFSET
           
static int ID_OFFSET
           
static int LEFT_ID_NODE_OFFSET
           
static int LEFT_NAME_NODE_OFFSET
           
static int NAME_CONTENT_EXTENSION_OFFSET
           
static int NAME_CONTENT_OFFSET
           
static int NAME_HEIGHT_OFFSET
           
static int NAME_SIZE_OFFSET
           
static int NEXT_ID_NODE_OFFSET
           
static int NEXT_NAME_NODE_OFFSET
           
static int PARENT_ID_NODE_OFFSET
           
static int PARENT_NAME_NODE_OFFSET
           
static int PREVIOUS_ID_NODE_OFFSET
           
static int PREVIOUS_NAME_NODE_OFFSET
           
static int RIGHT_ID_NODE_OFFSET
           
static int RIGHT_NAME_NODE_OFFSET
           
 
Constructor Summary
DictionaryContentNodeDriver()
           
 
Method Summary
static void createDictionaryContentNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress newUnitAddress)
          Creates a dictionary content node.
static void getId(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, PhysicalID id)
          Gets the physical id in the specified node.
static byte getIdHeight(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress)
          Gets the height of the specified node in the tree order by id.
static void getLeftIdNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress destiny)
          Gets the left node's address of the specified node, in the order by id.
static void getLeftNameNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress destiny)
          Gets the left node's address of the specified node, in the order by name.
static int getNameContent(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, int maxLength, byte[] b, int off)
          Gets the part of name's content stored in the specified node.
static void getNameContentExtension(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress destiny)
          Gets the name content extension's address (in the DICTIONARY segment) of the name in the specified node.
static byte getNameHeight(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress)
          Gets the height of the specified node in the tree order by name.
static int getNameSize(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress)
          Returns the size of the name in the specified node.
static void getNextIdNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress destiny)
          Gets the next node's address of the specified node, in the order by id.
static void getNextNameNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress destiny)
          Gets the next node's address of the specified node, in the order by name.
static void getParentIdNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress destiny)
          Gets the parent node's address of the specified node, in the tree order by id.
static void getParentNameNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress destiny)
          Gets the parent node's address of the specified node, in the tree order by name.
static void getPreviousIdNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress destiny)
          Gets the previous node's address of the specified node, in the order by id.
static void getPreviousNameNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress destiny)
          Gets the previous node's address of the specified node, in the order by name.
static void getRightIdNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress destiny)
          Gets the right node's address of the specified node, in the order by id.
static void getRightNameNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress destiny)
          Gets the right node's address of the specified node, in the order by name.
static void setId(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, PhysicalID id)
          Sets the physical id in the specified node.
static void setIdHeight(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, byte source)
          Sets the height of the specified node in the tree order by id.
static void setLeftIdNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress source)
          Sets the left node's address of the specified node, in the order by id.
static void setLeftNameNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress source)
          Sets the left node's address of the specified node, in the order by name.
static int setNameContent(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, int maxLength, byte[] b, int off)
          Sets the part of name's content stored in the specified node.
static void setNameContentExtension(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress source)
          Sets the name content extension's address (in the DICTIONARY segment) of the name in the specified node.
static void setNameHeight(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, byte source)
          Sets the height of the specified node in the tree order by name.
static void setNameSize(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, int source)
          Sets the size of the name in the specified node.
static void setNextIdNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress source)
          Sets the next node's address of the specified node, in the order by id.
static void setNextNameNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress source)
          Sets the next node's address of the specified node, in the order by name.
static void setParentIdNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress source)
          Sets the previous node's address of the specified node, in the tree order by id.
static void setParentNameNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress source)
          Sets the parent node's address of the specified node, in the tree order by name.
static void setPreviousIdNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress source)
          Sets the previous node's address of the specified node, in the order by id.
static void setPreviousNameNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress source)
          Sets the previous node's address of the specified node, in the order by name.
static void setRightIdNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress source)
          Sets the right node's address of the specified node, in the order by id.
static void setRightNameNode(DbStorageManager dbsm, long transactionNumber, DbUnitAddress unitAddress, DbUnitAddress source)
          Sets the right node's address of the specified node, in the order by name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREVIOUS_ID_NODE_OFFSET

public static final int PREVIOUS_ID_NODE_OFFSET
See Also:
Constant Field Values

NEXT_ID_NODE_OFFSET

public static final int NEXT_ID_NODE_OFFSET
See Also:
Constant Field Values

LEFT_ID_NODE_OFFSET

public static final int LEFT_ID_NODE_OFFSET
See Also:
Constant Field Values

RIGHT_ID_NODE_OFFSET

public static final int RIGHT_ID_NODE_OFFSET
See Also:
Constant Field Values

PARENT_ID_NODE_OFFSET

public static final int PARENT_ID_NODE_OFFSET
See Also:
Constant Field Values

ID_HEIGHT_OFFSET

public static final int ID_HEIGHT_OFFSET
See Also:
Constant Field Values

PREVIOUS_NAME_NODE_OFFSET

public static final int PREVIOUS_NAME_NODE_OFFSET
See Also:
Constant Field Values

NEXT_NAME_NODE_OFFSET

public static final int NEXT_NAME_NODE_OFFSET
See Also:
Constant Field Values

LEFT_NAME_NODE_OFFSET

public static final int LEFT_NAME_NODE_OFFSET
See Also:
Constant Field Values

RIGHT_NAME_NODE_OFFSET

public static final int RIGHT_NAME_NODE_OFFSET
See Also:
Constant Field Values

PARENT_NAME_NODE_OFFSET

public static final int PARENT_NAME_NODE_OFFSET
See Also:
Constant Field Values

NAME_HEIGHT_OFFSET

public static final int NAME_HEIGHT_OFFSET
See Also:
Constant Field Values

ID_OFFSET

public static final int ID_OFFSET
See Also:
Constant Field Values

NAME_CONTENT_EXTENSION_OFFSET

public static final int NAME_CONTENT_EXTENSION_OFFSET
See Also:
Constant Field Values

NAME_SIZE_OFFSET

public static final int NAME_SIZE_OFFSET
See Also:
Constant Field Values

NAME_CONTENT_OFFSET

public static final int NAME_CONTENT_OFFSET
See Also:
Constant Field Values
Constructor Detail

DictionaryContentNodeDriver

public DictionaryContentNodeDriver()
Method Detail

createDictionaryContentNode

public static void createDictionaryContentNode(DbStorageManager dbsm,
                                               long transactionNumber,
                                               DbUnitAddress newUnitAddress)
                                        throws storage.StorageException,
                                               java.io.IOException
Creates a dictionary content node.

Parameters:
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 DICTIONARY segment.
Throws:
storage.StorageException
java.io.IOException

getPreviousIdNode

public static void getPreviousIdNode(DbStorageManager dbsm,
                                     long transactionNumber,
                                     DbUnitAddress unitAddress,
                                     DbUnitAddress destiny)
                              throws storage.StorageException,
                                     java.io.IOException
Gets the previous node's address of the specified node, in the order by id.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary node.
destiny - Where the retrieved unit address will be stored.
Throws:
storage.StorageException
java.io.IOException

setPreviousIdNode

public static void setPreviousIdNode(DbStorageManager dbsm,
                                     long transactionNumber,
                                     DbUnitAddress unitAddress,
                                     DbUnitAddress source)
                              throws storage.StorageException,
                                     java.io.IOException
Sets the previous node's address of the specified node, in the order by id.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary node.
source - Where the unit address is stored.
Throws:
storage.StorageException
java.io.IOException

getNextIdNode

public static void getNextIdNode(DbStorageManager dbsm,
                                 long transactionNumber,
                                 DbUnitAddress unitAddress,
                                 DbUnitAddress destiny)
                          throws storage.StorageException,
                                 java.io.IOException
Gets the next node's address of the specified node, in the order by id.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary node.
destiny - Where the retrieved unit address will be stored.
Throws:
storage.StorageException
java.io.IOException

setNextIdNode

public static void setNextIdNode(DbStorageManager dbsm,
                                 long transactionNumber,
                                 DbUnitAddress unitAddress,
                                 DbUnitAddress source)
                          throws storage.StorageException,
                                 java.io.IOException
Sets the next node's address of the specified node, in the order by id.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary node.
source - Where the unit address is stored.
Throws:
storage.StorageException
java.io.IOException

getLeftIdNode

public static void getLeftIdNode(DbStorageManager dbsm,
                                 long transactionNumber,
                                 DbUnitAddress unitAddress,
                                 DbUnitAddress destiny)
                          throws storage.StorageException,
                                 java.io.IOException
Gets the left node's address of the specified node, in the order by id.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary node.
destiny - Where the retrieved unit address will be stored.
Throws:
storage.StorageException
java.io.IOException

setLeftIdNode

public static void setLeftIdNode(DbStorageManager dbsm,
                                 long transactionNumber,
                                 DbUnitAddress unitAddress,
                                 DbUnitAddress source)
                          throws storage.StorageException,
                                 java.io.IOException
Sets the left node's address of the specified node, in the order by id.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary node.
source - Where the unit address is stored.
Throws:
storage.StorageException
java.io.IOException

getRightIdNode

public static void getRightIdNode(DbStorageManager dbsm,
                                  long transactionNumber,
                                  DbUnitAddress unitAddress,
                                  DbUnitAddress destiny)
                           throws storage.StorageException,
                                  java.io.IOException
Gets the right node's address of the specified node, in the order by id.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary node.
destiny - Where the retrieved unit address will be stored.
Throws:
storage.StorageException
java.io.IOException

setRightIdNode

public static void setRightIdNode(DbStorageManager dbsm,
                                  long transactionNumber,
                                  DbUnitAddress unitAddress,
                                  DbUnitAddress source)
                           throws storage.StorageException,
                                  java.io.IOException
Sets the right node's address of the specified node, in the order by id.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary node.
source - Where the unit address is stored.
Throws:
storage.StorageException
java.io.IOException

getParentIdNode

public static void getParentIdNode(DbStorageManager dbsm,
                                   long transactionNumber,
                                   DbUnitAddress unitAddress,
                                   DbUnitAddress destiny)
                            throws storage.StorageException,
                                   java.io.IOException
Gets the parent node's address of the specified node, in the tree order by id.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary node.
destiny - Where the retrieved unit address will be stored.
Throws:
storage.StorageException
java.io.IOException

setParentIdNode

public static void setParentIdNode(DbStorageManager dbsm,
                                   long transactionNumber,
                                   DbUnitAddress unitAddress,
                                   DbUnitAddress source)
                            throws storage.StorageException,
                                   java.io.IOException
Sets the previous node's address of the specified node, in the tree order by id.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary node.
source - Where the unit address is stored.
Throws:
storage.StorageException
java.io.IOException

getIdHeight

public static byte getIdHeight(DbStorageManager dbsm,
                               long transactionNumber,
                               DbUnitAddress unitAddress)
                        throws storage.StorageException,
                               java.io.IOException
Gets the height of the specified node in the tree order by id.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary node.
Returns:
The height in the tree id order.
Throws:
storage.StorageException
java.io.IOException

setIdHeight

public static void setIdHeight(DbStorageManager dbsm,
                               long transactionNumber,
                               DbUnitAddress unitAddress,
                               byte source)
                        throws storage.StorageException,
                               java.io.IOException
Sets the height of the specified node in the tree order by id.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary node.
source - The height in the tree id order.
Throws:
storage.StorageException
java.io.IOException

getPreviousNameNode

public static void getPreviousNameNode(DbStorageManager dbsm,
                                       long transactionNumber,
                                       DbUnitAddress unitAddress,
                                       DbUnitAddress destiny)
                                throws storage.StorageException,
                                       java.io.IOException
Gets the previous node's address of the specified node, in the order by name.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary node.
destiny - Where the retrieved unit address will be stored.
Throws:
storage.StorageException
java.io.IOException

setPreviousNameNode

public static void setPreviousNameNode(DbStorageManager dbsm,
                                       long transactionNumber,
                                       DbUnitAddress unitAddress,
                                       DbUnitAddress source)
                                throws storage.StorageException,
                                       java.io.IOException
Sets the previous node's address of the specified node, in the order by name.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary node.
source - Where the unit address is stored.
Throws:
storage.StorageException
java.io.IOException

getNextNameNode

public static void getNextNameNode(DbStorageManager dbsm,
                                   long transactionNumber,
                                   DbUnitAddress unitAddress,
                                   DbUnitAddress destiny)
                            throws storage.StorageException,
                                   java.io.IOException
Gets the next node's address of the specified node, in the order by name.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary node.
destiny - Where the retrieved unit address will be stored.
Throws:
storage.StorageException
java.io.IOException

setNextNameNode

public static void setNextNameNode(DbStorageManager dbsm,
                                   long transactionNumber,
                                   DbUnitAddress unitAddress,
                                   DbUnitAddress source)
                            throws storage.StorageException,
                                   java.io.IOException
Sets the next node's address of the specified node, in the order by name.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary node.
source - Where the unit address is stored.
Throws:
storage.StorageException
java.io.IOException

getLeftNameNode

public static void getLeftNameNode(DbStorageManager dbsm,
                                   long transactionNumber,
                                   DbUnitAddress unitAddress,
                                   DbUnitAddress destiny)
                            throws storage.StorageException,
                                   java.io.IOException
Gets the left node's address of the specified node, in the order by name.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary node.
destiny - Where the retrieved unit address will be stored.
Throws:
storage.StorageException
java.io.IOException

setLeftNameNode

public static void setLeftNameNode(DbStorageManager dbsm,
                                   long transactionNumber,
                                   DbUnitAddress unitAddress,
                                   DbUnitAddress source)
                            throws storage.StorageException,
                                   java.io.IOException
Sets the left node's address of the specified node, in the order by name.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary node.
source - Where the unit address is stored.
Throws:
storage.StorageException
java.io.IOException

getRightNameNode

public static void getRightNameNode(DbStorageManager dbsm,
                                    long transactionNumber,
                                    DbUnitAddress unitAddress,
                                    DbUnitAddress destiny)
                             throws storage.StorageException,
                                    java.io.IOException
Gets the right node's address of the specified node, in the order by name.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary node.
destiny - Where the retrieved unit address will be stored.
Throws:
storage.StorageException
java.io.IOException

setRightNameNode

public static void setRightNameNode(DbStorageManager dbsm,
                                    long transactionNumber,
                                    DbUnitAddress unitAddress,
                                    DbUnitAddress source)
                             throws storage.StorageException,
                                    java.io.IOException
Sets the right node's address of the specified node, in the order by name.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary node.
source - Where the unit address is stored.
Throws:
storage.StorageException
java.io.IOException

getParentNameNode

public static void getParentNameNode(DbStorageManager dbsm,
                                     long transactionNumber,
                                     DbUnitAddress unitAddress,
                                     DbUnitAddress destiny)
                              throws storage.StorageException,
                                     java.io.IOException
Gets the parent node's address of the specified node, in the tree order by name.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary node.
destiny - Where the retrieved unit address will be stored.
Throws:
storage.StorageException
java.io.IOException

setParentNameNode

public static void setParentNameNode(DbStorageManager dbsm,
                                     long transactionNumber,
                                     DbUnitAddress unitAddress,
                                     DbUnitAddress source)
                              throws storage.StorageException,
                                     java.io.IOException
Sets the parent node's address of the specified node, in the tree order by name.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary node.
source - Where the unit address is stored.
Throws:
storage.StorageException
java.io.IOException

getNameHeight

public static byte getNameHeight(DbStorageManager dbsm,
                                 long transactionNumber,
                                 DbUnitAddress unitAddress)
                          throws storage.StorageException,
                                 java.io.IOException
Gets the height of the specified node in the tree order by name.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary node.
Returns:
The height in the tree name order.
Throws:
storage.StorageException
java.io.IOException

setNameHeight

public static void setNameHeight(DbStorageManager dbsm,
                                 long transactionNumber,
                                 DbUnitAddress unitAddress,
                                 byte source)
                          throws storage.StorageException,
                                 java.io.IOException
Sets the height of the specified node in the tree order by name.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary node.
source - The height in the tree name order.
Throws:
storage.StorageException
java.io.IOException

getId

public static void getId(DbStorageManager dbsm,
                         long transactionNumber,
                         DbUnitAddress unitAddress,
                         PhysicalID id)
                  throws storage.StorageException,
                         java.io.IOException
Gets the physical id in the specified node.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary node.
id - Where the id will be stored.
Throws:
storage.StorageException
java.io.IOException

setId

public static void setId(DbStorageManager dbsm,
                         long transactionNumber,
                         DbUnitAddress unitAddress,
                         PhysicalID id)
                  throws storage.StorageException,
                         java.io.IOException
Sets the physical id in the specified node.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary node.
id - Where the id is stored.
Throws:
storage.StorageException
java.io.IOException

getNameContentExtension

public static void getNameContentExtension(DbStorageManager dbsm,
                                           long transactionNumber,
                                           DbUnitAddress unitAddress,
                                           DbUnitAddress destiny)
                                    throws storage.StorageException,
                                           java.io.IOException
Gets the name content extension's address (in the DICTIONARY segment) of the name in the specified node.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the name content extension.
destiny - Where the address will be stored.
Throws:
storage.StorageException
java.io.IOException

setNameContentExtension

public static void setNameContentExtension(DbStorageManager dbsm,
                                           long transactionNumber,
                                           DbUnitAddress unitAddress,
                                           DbUnitAddress source)
                                    throws storage.StorageException,
                                           java.io.IOException
Sets the name content extension's address (in the DICTIONARY segment) of the name in the specified node.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the name content extension.
source - Where the address will is stored.
Throws:
storage.StorageException
java.io.IOException

getNameSize

public static int getNameSize(DbStorageManager dbsm,
                              long transactionNumber,
                              DbUnitAddress unitAddress)
                       throws storage.StorageException,
                              java.io.IOException
Returns the size of the name in the specified node.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary node.
Returns:
The name's size.
Throws:
storage.StorageException
java.io.IOException

setNameSize

public static void setNameSize(DbStorageManager dbsm,
                               long transactionNumber,
                               DbUnitAddress unitAddress,
                               int source)
                        throws storage.StorageException,
                               java.io.IOException
Sets the size of the name in the specified node.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary node.
source - The name's size.
Throws:
storage.StorageException
java.io.IOException

getNameContent

public static int getNameContent(DbStorageManager dbsm,
                                 long transactionNumber,
                                 DbUnitAddress unitAddress,
                                 int maxLength,
                                 byte[] b,
                                 int off)
                          throws storage.StorageException,
                                 java.io.IOException
Gets the part of name's content stored in the specified node.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary node.
maxLength - The maximun number of bytes to be got.
b - Where the content will be stored.
off - The begining position of b where the name's content will be stored.
Throws:
storage.StorageException
java.io.IOException

setNameContent

public static int setNameContent(DbStorageManager dbsm,
                                 long transactionNumber,
                                 DbUnitAddress unitAddress,
                                 int maxLength,
                                 byte[] b,
                                 int off)
                          throws storage.StorageException,
                                 java.io.IOException
Sets the part of name's content stored in the specified node.

Parameters:
dbsm - The data base storage manager where the operation will be performed.
transactionNumber - The number of transaction.
unitAddress - The address of the dictionary node.
maxLength - The maximun number of bytes to be got.
b - Where the content is stored.
off - The begining position of b where the name's content is stored.
Throws:
storage.StorageException
java.io.IOException