Database operation interfaces of large object.
More...
|
void | Close () |
| Close the lob.
|
|
int | Read (byte[] b) |
| Reads up to b.length bytes of data from this lob into an array of bytes.
|
|
int | Read (byte[] b, int off, int len) |
| Reads up to.
|
|
void | Write (byte[] b) |
| Writes b.length bytes from the specified byte array to this lob.
|
|
void | Write (byte[] b, int off, int len) |
| Writes len bytes from the specified byte array to this lob.
|
|
void | Seek (long size, int seekType) |
| Change the read/write position of the lob. The new position is obtained by adding.
|
|
void | Lock (long offset, long length) |
| Lock LOB section for writing.
|
|
void | LockAndSeek (long offset, long length) |
| Lock LOB section for writing and seek to the offset position.
|
|
bool | IsClosed () |
| Test whether lob has been closed or not.
|
|
ObjectId | GetID () |
| Get the lob's id.
|
|
long | GetSize () |
| Get the size of lob.
|
|
long | GetCreateTime () |
| get the create time of lob
|
|
long | GetModificationTime () |
| get the last modification time of lob
|
|
bool | IsEof () |
| Check whether current offset has reached to the max size of current lob.
|
|
Database operation interfaces of large object.
SequoiaDB.DBLob.Close |
( |
| ) |
|
|
inline |
Close the lob.
- Returns
- void
- Exceptions
-
long SequoiaDB.DBLob.GetCreateTime |
( |
| ) |
|
|
inline |
get the create time of lob
- Returns
- The lob's create time
- Exceptions
-
Get the lob's id.
- Returns
- the lob's id
long SequoiaDB.DBLob.GetModificationTime |
( |
| ) |
|
|
inline |
get the last modification time of lob
- Returns
- The lob's last modification time
- Exceptions
-
long SequoiaDB.DBLob.GetSize |
( |
| ) |
|
|
inline |
Get the size of lob.
- Returns
- the lob's size
bool SequoiaDB.DBLob.IsClosed |
( |
| ) |
|
|
inline |
Test whether lob has been closed or not.
- Returns
- true for lob has been closed, false for not
bool SequoiaDB.DBLob.IsEof |
( |
| ) |
|
|
inline |
Check whether current offset has reached to the max size of current lob.
- Returns
- Return true if yes while false for not.
void SequoiaDB.DBLob.Lock |
( |
long |
offset, |
|
|
long |
length |
|
) |
| |
|
inline |
Lock LOB section for writing.
- Parameters
-
offset | Lock start position. |
length | Lock length, -1 means lock to the end of lob. |
- Returns
- void
- Exceptions
-
void SequoiaDB.DBLob.LockAndSeek |
( |
long |
offset, |
|
|
long |
length |
|
) |
| |
|
inline |
Lock LOB section for writing and seek to the offset position.
- Parameters
-
offset | Lock start position. |
length | Lock length, -1 means lock to the end of lob. |
- Returns
- void
- Exceptions
-
SequoiaDB.DBLob.Read |
( |
byte[] |
b | ) |
|
|
inline |
Reads up to b.length bytes of data from this lob into an array of bytes.
- Parameters
-
b | the buffer into which the data is read. |
- Returns
- the total number of bytes read into the buffer, or
-1
if there is no more data because the end of the file has been reached, or 0 if b.length
is Zero.
- Exceptions
-
SequoiaDB.DBLob.Read |
( |
byte[] |
b, |
|
|
int |
off, |
|
|
int |
len |
|
) |
| |
|
inline |
Reads up to.
len
bytes of data from this lob into an array of bytes.
- Parameters
-
b | the buffer into which the data is read. |
off | the start offset in the destination array b . |
len | the maximum number of bytes read. |
- Returns
- the total number of bytes read into the buffer, or
-1
if there is no more data because the end of the file has been reached, or 0 if b.length
is Zero.
- Exceptions
-
void SequoiaDB.DBLob.Seek |
( |
long |
size, |
|
|
int |
seekType |
|
) |
| |
|
inline |
Change the read/write position of the lob. The new position is obtained by adding.
size
to the position specified by seekType
. If seekType
is set to SDB_LOB_SEEK_SET, SDB_LOB_SEEK_CUR, or SDB_LOB_SEEK_END, the offset is relative to the start of the lob, the current position of lob, or the end of lob.
- Parameters
-
size | the adding size. |
seekType | SDB_LOB_SEEK_SET/SDB_LOB_SEEK_CUR/SDB_LOB_SEEK_END |
- Returns
- void
- Exceptions
-
SequoiaDB.DBLob.Write |
( |
byte[] |
b | ) |
|
|
inline |
Writes b.length bytes from the specified byte array to this lob.
- Parameters
-
- Exceptions
-
SequoiaDB.DBLob.Write |
( |
byte[] |
b, |
|
|
int |
off, |
|
|
int |
len |
|
) |
| |
|
inline |
Writes len bytes from the specified byte array to this lob.
- Parameters
-
b | The data. |
off | The offset of the data buffer. |
len | The lenght to write. |
- Exceptions
-
const int SDB_LOB_READ = 0x00000004 |
LOB open mode for reading.
0x00000004
const int SDB_LOB_SEEK_CUR = 1 |
Change the position from the current position of lob.
1
const int SDB_LOB_SEEK_END = 2 |
Change the position from the end of lob.
2
const int SDB_LOB_SEEK_SET = 0 |
Change the position from the beginning of lob.
0
const int SDB_LOB_WRITE = 0x00000008 |
LOB open mode for writing.
0x00000008
The documentation for this class was generated from the following file: