com.syncbuilder.storage.address
Class Record
java.lang.Object
|
+--com.syncbuilder.storage.Block
|
+--com.syncbuilder.storage.Record
|
+--com.syncbuilder.storage.address.Record
- public class Record
- extends Record
A representation of an address database record.
- See Also:
- Serialized Form
|
Field Summary |
java.lang.String[] |
entry
The entries, which may be null |
int[] |
phone_label
Which types of phone numbers are there (index into the phone_label String-array of the AppBlock) |
int |
show_phone
Show which phone number as the primary one (index into the phone_label String-array of the AppBlock) |
| Fields inherited from class com.syncbuilder.storage.Record |
archived,
ARCHIVED,
busy,
BUSY,
category,
CATEGORY_MASK,
deleted,
DELETED,
id,
index,
modified,
MODIFIED,
secret,
SECRET |
| Fields inherited from class com.syncbuilder.storage.Block |
raw |
|
Method Summary |
java.lang.String |
describe()
Describe the Record without any knowledge about the AppBlock. |
java.lang.String |
describe(AppBlock appblock)
Describe the Record with knowledge about the AppBlock (replace numbers with labels). |
boolean |
equals(java.lang.Object obj)
Check two Records for equality. |
void |
fill()
|
byte[] |
pack()
|
void |
unpack(byte[] data)
|
| Methods inherited from class com.syncbuilder.storage.Record |
describe,
getCategory,
getFlags,
getID,
getIndex,
hasID,
isArchived,
isBusy,
isDeleted,
isModified,
isSecret,
setArchived,
setBusy,
setCategory,
setDeleted,
setFlags,
setID,
setIndex,
setModified,
setSecret |
| Methods inherited from class com.syncbuilder.storage.Block |
toString |
| Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
phone_label
public int[] phone_label
- Which types of phone numbers are there (index into the phone_label String-array of the AppBlock)
show_phone
public int show_phone
- Show which phone number as the primary one (index into the phone_label String-array of the AppBlock)
entry
public java.lang.String[] entry
- The entries, which may be
null
Record
public Record()
Record
public Record(byte[] contents,
RecordID id,
int index,
int attr,
int cat)
unpack
public void unpack(byte[] data)
- Overrides:
- unpack in class Block
pack
public byte[] pack()
- Overrides:
- pack in class Block
fill
public void fill()
- Overrides:
- fill in class Record
describe
public java.lang.String describe()
- Describe the Record without any knowledge about the AppBlock.
- Overrides:
- describe in class Record
describe
public java.lang.String describe(AppBlock appblock)
- Describe the Record with knowledge about the AppBlock (replace numbers with labels).
equals
public boolean equals(java.lang.Object obj)
- Check two Records for equality. This is mostly for testing purposes.
- Overrides:
- equals in class Record
This material is Copyrighted (C) 1999 by Tilo Christ. All Rights Reserved.