|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectDbStorage.manager.ClobManager
This class implements the metods to storage CLOB objects.
Constructor Summary | |
ClobManager()
|
Method Summary | |
static long |
getLength(DbStorageManager dbsm,
long transactionNumber,
PhysicalID id)
Returns the length of the CLOB datum. |
static java.lang.String |
read(DbStorageManager dbsm,
long transactionNumber,
PhysicalID id,
long from,
int maxLength)
Reads from a CLOB datum and stores the readed in a string. |
static void |
setLength(DbStorageManager dbsm,
long transactionNumber,
PhysicalID id,
long newLength)
Changes the length of the CLOB datum. |
static int |
write(DbStorageManager dbsm,
long transactionNumber,
PhysicalID id,
long from,
int maxLength,
java.lang.String str,
int off)
Writes a byte array into a CLOB datum. |
static int |
write(DbStorageManager dbsm,
long transactionNumber,
PhysicalID id,
long from,
java.lang.String str)
Writes a byte array into a CLOB datum. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClobManager()
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 (in characters).
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, java.lang.String str, 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 CLOB from which the witting starts.maxLength
- The maximum number of characters to write.str
- The string contains the characters to write.off
- The offset of str
from which the characters are retrieved.
storage.StorageException
java.io.IOException
OutOfLOBException
public static int write(DbStorageManager dbsm, long transactionNumber, PhysicalID id, long from, java.lang.String str) 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 CLOB from which the witting starts.str
- The string contains the characters to write.
storage.StorageException
java.io.IOException
OutOfLOBException
public static java.lang.String read(DbStorageManager dbsm, long transactionNumber, PhysicalID id, long from, int maxLength) 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 CLOB from which the reading starts.maxLength
- The maximum number of characters to read.
storage.StorageException
java.io.IOException
OutOfLOBException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |