|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jpalm.DataBlock net.sourceforge.jpalm.mobiledb.record.AbstractRecord net.sourceforge.jpalm.mobiledb.record.PreferencesRecord
public class PreferencesRecord
The preferences record in a MobileDB database.
There should always be 20 fields in this record. The first field contains the database info note. The remaining fields are unused.
When this class is serialized, if the field count is not 20, fields will be added or removed until the count is 20. If fields need to be added, they will be empty strings.
Field Summary | |
---|---|
static net.sourceforge.juint.UInt8 |
CATEGORY_ID
The category identifier for this record. |
Fields inherited from class net.sourceforge.jpalm.mobiledb.record.AbstractRecord |
---|
fields, header, HEADER, MAX_FIELD_WIDTH, TERIMINATOR, TRAILER |
Constructor Summary | |
---|---|
PreferencesRecord()
Creates a new preferences record. |
|
PreferencesRecord(byte[] data)
Creates a new preferences record from a byte array. |
|
PreferencesRecord(Record record)
Creates a new preferences record from a Record . |
|
PreferencesRecord(java.lang.String note)
Creates a new preferences record from a note. |
Method Summary | |
---|---|
java.lang.String |
getNote()
Gets the database info note. |
byte[] |
serialize()
Create a byte array of the class properties. |
void |
setNote(java.lang.String note)
Sets the database info note. |
Methods inherited from class net.sourceforge.jpalm.mobiledb.record.AbstractRecord |
---|
deserialize, equals, getHeader, getInternalFields, setHeader, setInternalFields, trimOrFillList |
Methods inherited from class net.sourceforge.jpalm.DataBlock |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final net.sourceforge.juint.UInt8 CATEGORY_ID
Constructor Detail |
---|
public PreferencesRecord()
public PreferencesRecord(byte[] data)
byte
array.
data
- the byte
arrayAbstractRecord.deserialize(byte[])
public PreferencesRecord(Record record)
Record
.
record
- the recordpublic PreferencesRecord(java.lang.String note)
note
- the notesetNote(String)
Method Detail |
---|
public java.lang.String getNote()
public void setNote(java.lang.String note)
note
- the note to setpublic byte[] serialize()
DataBlock
byte
array of the class properties.
serialize
in interface Record
serialize
in class AbstractRecord
byte
array
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |