brf.j2me.dynaworks.env
Interface Dataset

All Known Implementing Classes:
Record

public interface Dataset

Database record interface.

Version:
1.0a1
Author:
Bernd R. Fix
See Also:
Record

Method Summary
 byte[] getContent()
          Get the byte array representing the record content.
 boolean setContent(byte[] data)
          update the record with new data.
 int size()
          Get the 'byte' length of the record.
 

Method Detail

size

public int size()
Get the 'byte' length of the record.

Returns:
int - Length of the record (in bytes).

getContent

public byte[] getContent()
Get the byte array representing the record content.

Returns:
byte[] - Byte array holding record data.

setContent

public boolean setContent(byte[] data)
update the record with new data. The length of the array of bytes passed in must have the same length as the old record data.

Parameters:
data - byte[] - array containing data.
Returns:
boolean - operation successful?