All Packages  This Package  Class Hierarchy  Class Search  Index

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

  Summary

public class  Record
     extends com.syncbuilder.storage.Record
{
          // Fields 14
     public int advance;
     public time advanceUnits;
     public boolean alarm;
     public Date begin;
     public String description;
     public Date end;
     public Date[] exceptions;
     public String note;
     public int repeatDay;
     public Date repeatEnd;
     public int repeatFrequency;
     public repeat repeatType;
     public int repeatWeekStart;
     public boolean[] repeatWeekdays;

          // Constructors 2
     public Record();
     public Record(byte[], RecordID, int, int, int);

          // Methods 5
     public String describe();
     public boolean equals(Object);
     public void fill();
     public byte[] pack();
     public void unpack(byte[]);
}

A representation of a datebook database record.




  Fields

· description

Summary  |  Top

   public String description

The description of the appointment. Is never null


· note

Summary  |  Top
   public String note

An extra note for this appointment. Is null if there is no note


· begin

Summary  |  Top
   public Date begin


· end

Summary  |  Top
   public Date end


· alarm

Summary  |  Top
   public boolean alarm


· advance

Summary  |  Top
   public int advance


· advanceUnits

Summary  |  Top
   public time advanceUnits


· repeatType

Summary  |  Top
   public repeat repeatType


· repeatEnd

Summary  |  Top
   public Date repeatEnd


· repeatFrequency

Summary  |  Top
   public int repeatFrequency


· repeatWeekdays

Summary  |  Top
   public boolean[] repeatWeekdays


· repeatDay

Summary  |  Top
   public int repeatDay


· repeatWeekStart

Summary  |  Top
   public int repeatWeekStart


· exceptions

Summary  |  Top
   public Date[] exceptions


  Constructors

· Record

Summary  |  Top

   public Record() 

Create an appointment Record, filled with default-values

See Also: fill



· Record

Summary  |  Top
   public Record(byte[] contents, 
                 RecordID id, 
                 int index, 
                 int attr, 
                 int cat) 


  Methods

· unpack

Summary  |  Top
   public void unpack(byte[] data) 

Turn the native format of a datebook-record into proper settings for this object's attributes.

Parameter Description
data the array of bytes in native format

Overrides:
unpack in class Block


· pack

Summary  |  Top
   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

Summary  |  Top
   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

Summary  |  Top
   public String describe() 
Overrides:
describe in class Record


· equals

Summary  |  Top
   public boolean equals(Object obj) 

Check two Records for equality. This is mostly for testing purposes.

Overrides:
equals in class Record


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7