public class MultipleDataEntry extends MultipleEntry
Constructor | Description |
---|---|
MultipleDataEntry() |
Construct an entry with no data.
|
MultipleDataEntry(byte[] data) |
Construct an entry with a given byte array.
|
MultipleDataEntry(byte[] data,
int offset,
int size) |
Constructs a DatabaseEntry with a given byte array, offset and size.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
append(byte[] data) |
Append an entry to the bulk buffer.
|
boolean |
append(byte[] data,
int offset,
int len) |
Append an entry to the bulk buffer.
|
boolean |
append(DatabaseEntry data) |
Append an entry to the bulk buffer.
|
boolean |
next(DatabaseEntry data) |
Get the next data element in the returned set.
|
append_internal, append_internal, setUserBuffer
equals, getBlob, getData, getDataNIO, getExternalFile, getOffset, getPartial, getPartialLength, getPartialOffset, getReadOnly, getRecordNumber, getReuseBuffer, getSize, getUserBuffer, getUserBufferLength, hashCode, setBlob, setData, setData, setDataNIO, setDataNIO, setExternalFile, setOffset, setPartial, setPartial, setPartialLength, setPartialOffset, setReadOnly, setRecordNumber, setReuseBuffer, setSize
public MultipleDataEntry()
MultipleEntry.setUserBuffer
method.public MultipleDataEntry(byte[] data)
MultipleEntry.setUserBuffer
method.
data
- Byte array wrapped by the entry.public MultipleDataEntry(byte[] data, int offset, int size)
data
- Byte array wrapped by the DatabaseEntry.offset
- Offset in the first byte in the byte array to be included.size
- Number of bytes in the byte array to be included.public boolean next(DatabaseEntry data)
Database
or
Cursor
get method with this object as the data parameter.
When used with the Queue and Recno access methods,
data.getData()
will return null
for deleted
records.
data
- an entry that is set to refer to the next data element in the returned
set.
false
indicates that the end of the set was reached.public boolean append(byte[] data, int offset, int len) throws DatabaseException
data
- an array containing the record to be added.offset
- the position in the data array where the record starts.len
- the length of the record, in bytes, to be copied from the data array.
false
indicates that the specified entry could not fit in the buffer.DatabaseException
- if a failure occurs.public boolean append(DatabaseEntry data) throws DatabaseException
data
- the record to be appended, using the offset and size specified in the
DatabaseEntry
.
false
indicates that the specified entry could not fit in the buffer.DatabaseException
- if a failure occurs.public boolean append(byte[] data) throws DatabaseException
data
- an array containing the record to be added.
false
indicates that the specified entry could not fit in the buffer.DatabaseException
- if a failure occurs.Copyright (c) 1996, 2020 Oracle and/or its affiliates. All rights reserved.