com.syncbuilder.storage.appointment
Class Record

java.lang.Object
  |
  +--com.syncbuilder.storage.Block
        |
        +--com.syncbuilder.storage.Record
              |
              +--com.syncbuilder.storage.appointment.Record

public class Record
extends Record

A representation of a datebook database record.

See Also:
Serialized Form

Field Summary
 int advance
           
 time advanceUnits
           
 boolean alarm
           
 java.util.Date begin
           
 java.lang.String description
          The description of the appointment.
 java.util.Date end
           
 java.util.Date[] exceptions
           
 java.lang.String note
          An extra note for this appointment.
 int repeatDay
           
 java.util.Date repeatEnd
           
 int repeatFrequency
           
 repeat repeatType
           
 boolean[] repeatWeekdays
           
 int repeatWeekStart
           
 
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
 
Constructor Summary
Record()
          Create an appointment Record, filled with default-values
Record(byte[] contents, RecordID id, int index, int attr, int cat)
           
 
Method Summary
 java.lang.String describe()
           
 boolean equals(java.lang.Object obj)
          Check two Records for equality.
 void fill()
          Fill in the Record for a single appointment at the current date and time, with no description.
 byte[] pack()
          Turn the settings of the Record's attributes into the native format of the PalmPilot's Datebook-application.
 void unpack(byte[] data)
          Turn the native format of a datebook-record into proper settings for this object's attributes.
 
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
 

Field Detail

description

public java.lang.String description
The description of the appointment. Is never null

note

public java.lang.String note
An extra note for this appointment. Is null if there is no note

begin

public java.util.Date begin

end

public java.util.Date end

alarm

public boolean alarm

advance

public int advance

advanceUnits

public time advanceUnits

repeatType

public repeat repeatType

repeatEnd

public java.util.Date repeatEnd

repeatFrequency

public int repeatFrequency

repeatWeekdays

public boolean[] repeatWeekdays

repeatDay

public int repeatDay

repeatWeekStart

public int repeatWeekStart

exceptions

public java.util.Date[] exceptions
Constructor Detail

Record

public Record()
Create an appointment Record, filled with default-values
See Also:
fill()

Record

public Record(byte[] contents,
              RecordID id,
              int index,
              int attr,
              int cat)
Method Detail

unpack

public void unpack(byte[] data)
Turn the native format of a datebook-record into proper settings for this object's attributes.
Parameters:
data - the array of bytes in native format
Overrides:
unpack in class Block

pack

public byte[] pack()
Turn the settings of the Record's attributes into the native format of the PalmPilot's Datebook-application.
Overrides:
pack in class Block

fill

public void fill()
Fill in the Record for a single appointment at the current date and time, with no description.
Overrides:
fill in class Record

describe

public java.lang.String describe()
Overrides:
describe in class Record

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.