All Packages This Package Class Hierarchy Class Search Index
Class com.syncbuilder.storage.Record
java.lang.Object
|
+----com.syncbuilder.storage.Block
|
+----com.syncbuilder.storage.Record
public abstract class Record
extends com.syncbuilder.storage.Block
{
// Fields 5
public static final int ARCHIVED;
public static final int BUSY;
public static final int DELETED;
public static final int MODIFIED;
public static final int SECRET;
// Constructors 2
public Record();
public Record(byte[], RecordID, int, int, int) throws IllegalArgumentException;
// Methods 20
public String describe();
public boolean equals(Object);
public void fill();
public int getCategory();
public int getFlags();
public RecordID getID();
public int getIndex();
public boolean isArchived();
public boolean isBusy();
public boolean isDeleted();
public boolean isModified();
public boolean isSecret();
public void setArchived(boolean);
public void setBusy(boolean);
public void setCategory(int) throws IllegalArgumentException;
public void setDeleted(boolean);
public void setID(RecordID);
public void setIndex(int);
public void setModified(boolean);
public void setSecret(boolean);
}
The base-class for representations of a database-record.
This type is meant for storage-databases.
The content of resource-databases is represented by com.syncbuilder.storage.Resource.
See Also:
Resource
- Extended By:
- Record, Record, Record, Record, Record, Record, Record
- Returned By:
- Many
public static final int DELETED
public static final int MODIFIED
public static final int BUSY
public static final int SECRET
public static final int ARCHIVED
public Record()
public Record(byte[] contents,
RecordID id,
int index,
int attr,
int category) throws IllegalArgumentException
Create a Record with the specified content and attributes.
The content which you specify as raw bytes is automatically
processed by the unpack()
-method to distribute it to the
properties of the Record.
Parameter | Description |
contents | the content in the native format of the PalmPilot application |
id | the ID of the Record, or null if the ID shall be assigned by the PalmOS during HotSync. |
index | the index of the Record |
attr | the attributes. Use the DELETED, MODIFIED, BUSY, SECRET, and ARCHIVED flags. |
category | the category of the Record. Use values from 0-15. |
public void fill()
Initialize the Record.
All attributes are set to false. Index will be 0. Category is 0.
ID will be assigned by the PalmOS when the Record is written to the device.
- Overrides:
- fill in class Block
public String describe()
- Overrides:
- describe in class Block
public boolean equals(Object obj)
Determine the equality of this Record and some other Object.
- Overrides:
- equals in class Object
public boolean isDeleted()
public boolean isModified()
public boolean isBusy()
public boolean isSecret()
public boolean isArchived()
public void setDeleted(boolean flag)
public void setModified(boolean flag)
public void setBusy(boolean flag)
public void setSecret(boolean flag)
public void setArchived(boolean flag)
public int getFlags()
Get a numerical representation of the flags
public int getIndex()
public void setIndex(int index)
public RecordID getID()
public void setID(RecordID id)
public int getCategory()
public void setCategory(int category) throws IllegalArgumentException
All Packages This Package Class Hierarchy Class Search Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7