org.gnu.pilotlink
Class Record

java.lang.Object
  extended by org.gnu.pilotlink.Record
Direct Known Subclasses:
AddressRecord, DatebookRecord, FTB3CostCatRecord, FTB3TripRecord, FTB3VehicleRecord, MemoRecord, MidiRecord, RawRecord, ToDoRecord

public abstract class Record
extends java.lang.Object

Description of the Class


Field Summary
static int ARCHIVED
          Description of the Field
protected  int attribs
          Description of the Field
static int BUSY
          Description of the Field
protected  int category
          Description of the Field
static int DELETED
          Description of the Field
static int DIRTY
          Description of the Field
protected  long id
          Description of the Field
protected  int size
          Description of the Field
static int SECRET
          Description of the Field
 
Constructor Summary
Record(int i, int att, int cat, int sz)
          Constructor for the Record object
Record(Record r)
          Constructor for the Record object
Record()
          Constructor for the Record object
 
Method Summary
 int getAttribs()
          Gets the attribs attribute of the Record object
abstract  byte[] getBuffer()
          Gets the buffer attribute of the Record object
 int getCategory()
          Gets the category attribute of the Record object
static java.util.Date getDateAt(byte[] buffer, int idx)
          Gets the dateAt attribute of the Record class
 java.util.Date getDateAt(int idx)
          Gets the dateAt attribute of the Record object
static java.util.Date getDateTimeAt(byte[] buffer, int idx, int tidx)
          Gets the dateTimeAt attribute of the Record class
 java.util.Date getDateTimeAt(int idx, int tidx)
          Gets the dateTimeAt attribute of the Record object
static double getDoubleAt(byte[] buffer, int idx)
          Gets the doubleAt attribute of the Record class
static long getDoubleLongAt(byte[] buffer, int idx)
          Gets the doubleLongAt attribute of the Record class
 long getId()
          Gets the id attribute of the Record object
static int getIntAt(byte[] buffer, int idx)
          Gets the intAt attribute of the Record class
 int getIntAt(int idx)
          Gets the intAt attribute of the Record object
static long getLongAt(byte[] buffer, int idx)
          Gets the longAt attribute of the Record class
 int getSize()
          Gets the size attribute of the Record object
static java.lang.String getStringAt(byte[] buffer, int idx)
          Gets the stringAt attribute of the Record class
 java.lang.String getStringAt(int idx)
          Gets the stringAt attribute of the Record object
 boolean isArchived()
          Gets the archived attribute of the Record object
 boolean isBusy()
          Gets the busy attribute of the Record object
 boolean isDeleted()
          Gets the deleted attribute of the Record object
 boolean isDirty()
          Gets the dirty attribute of the Record object
 boolean isSecret()
          Gets the secret attribute of the Record object
 void setArchived(boolean a)
          Sets the archived attribute of the Record object
 void setAttribs(int a)
          Sets the attribs attribute of the Record object
abstract  void setBuffer(byte[] buf)
          Sets the buffer attribute of the Record object
 void setCategory(int c)
          Sets the category attribute of the Record object
static void setDateAt(byte[] buffer, java.util.Date d, int idx)
          Sets the dateAt attribute of the Record class
static void setDateTimeAt(byte[] buffer, java.util.Date d, int idx, int tidx)
          Sets the dateTimeAt attribute of the Record class
 void setDirty(boolean d)
          Sets the dirty attribute of the Record object
static void setDoubleAt(byte[] buffer, double v, int idx)
          Sets the doubleAt attribute of the Record class
static void setDoubleLongAt(byte[] buffer, long v, int idx)
          Sets the doubleLongAt attribute of the Record class
 void setId(long i)
          Sets the id attribute of the Record object
static void setIntAt(byte[] buffer, int i, int idx)
          Sets the intAt attribute of the Record class
static void setLongAt(byte[] buffer, long v, int idx)
          Sets the longAt attribute of the Record class
 void setSecret(boolean b)
           
 void setSize(int s)
          Sets the size attribute of the Record object
static int setStringAt(byte[] buffer, java.lang.String s, int idx)
          Sets the stringAt attribute of the Record class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Field Detail

DELETED

public static final int DELETED
Description of the Field

See Also:
Constant Field Values

DIRTY

public static final int DIRTY
Description of the Field

See Also:
Constant Field Values

BUSY

public static final int BUSY
Description of the Field

See Also:
Constant Field Values

SECRET

public static final int SECRET
Description of the Field

See Also:
Constant Field Values

ARCHIVED

public static final int ARCHIVED
Description of the Field

See Also:
Constant Field Values

id

protected long id
Description of the Field


attribs

protected int attribs
Description of the Field


category

protected int category
Description of the Field


size

protected int size
Description of the Field

Constructor Detail

Record

public Record()
Constructor for the Record object


Record

public Record(int i,
              int att,
              int cat,
              int sz)
Constructor for the Record object

Parameters:
i - Description of the Parameter
att - Description of the Parameter
cat - Description of the Parameter
sz - Description of the Parameter

Record

public Record(Record r)
Constructor for the Record object

Parameters:
r - Description of the Parameter
Method Detail

isDeleted

public boolean isDeleted()
Gets the deleted attribute of the Record object

Returns:
The deleted value

isSecret

public boolean isSecret()
Gets the secret attribute of the Record object

Returns:
The secret value

isArchived

public boolean isArchived()
Gets the archived attribute of the Record object

Returns:
The archived value

isDirty

public boolean isDirty()
Gets the dirty attribute of the Record object

Returns:
The dirty value

isBusy

public boolean isBusy()
Gets the busy attribute of the Record object

Returns:
The busy value

setDirty

public void setDirty(boolean d)
Sets the dirty attribute of the Record object

Parameters:
d - The new dirty value

setSecret

public void setSecret(boolean b)

setArchived

public void setArchived(boolean a)
Sets the archived attribute of the Record object

Parameters:
a - The new archived value

setId

public void setId(long i)
Sets the id attribute of the Record object

Parameters:
i - The new id value

getCategory

public int getCategory()
Gets the category attribute of the Record object

Returns:
The category value

setCategory

public void setCategory(int c)
Sets the category attribute of the Record object

Parameters:
c - The new category value

setAttribs

public void setAttribs(int a)
Sets the attribs attribute of the Record object

Parameters:
a - The new attribs value

getAttribs

public int getAttribs()
Gets the attribs attribute of the Record object

Returns:
The attribs value

getId

public long getId()
Gets the id attribute of the Record object

Returns:
The id value

getSize

public int getSize()
Gets the size attribute of the Record object

Returns:
The size value

setSize

public void setSize(int s)
Sets the size attribute of the Record object

Parameters:
s - The new size value

getBuffer

public abstract byte[] getBuffer()
Gets the buffer attribute of the Record object

Returns:
The buffer value

setBuffer

public abstract void setBuffer(byte[] buf)
Sets the buffer attribute of the Record object

Parameters:
buf - The new buffer value

getDateAt

public java.util.Date getDateAt(int idx)
Gets the dateAt attribute of the Record object

Parameters:
idx - Description of the Parameter
Returns:
The dateAt value

getDateAt

public static java.util.Date getDateAt(byte[] buffer,
                                       int idx)
Gets the dateAt attribute of the Record class

Parameters:
buffer - Description of the Parameter
idx - Description of the Parameter
Returns:
The dateAt value

setDateAt

public static void setDateAt(byte[] buffer,
                             java.util.Date d,
                             int idx)
Sets the dateAt attribute of the Record class

Parameters:
buffer - The new dateAt value
d - The new dateAt value
idx - The new dateAt value

setDateTimeAt

public static void setDateTimeAt(byte[] buffer,
                                 java.util.Date d,
                                 int idx,
                                 int tidx)
Sets the dateTimeAt attribute of the Record class

Parameters:
buffer - The new dateTimeAt value
d - The new dateTimeAt value
idx - The new dateTimeAt value
tidx - The new dateTimeAt value

getDateTimeAt

public java.util.Date getDateTimeAt(int idx,
                                    int tidx)
Gets the dateTimeAt attribute of the Record object

Parameters:
idx - Description of the Parameter
tidx - Description of the Parameter
Returns:
The dateTimeAt value

getDateTimeAt

public static java.util.Date getDateTimeAt(byte[] buffer,
                                           int idx,
                                           int tidx)
Gets the dateTimeAt attribute of the Record class

Parameters:
buffer - Description of the Parameter
idx - Description of the Parameter
tidx - Description of the Parameter
Returns:
The dateTimeAt value

setStringAt

public static int setStringAt(byte[] buffer,
                              java.lang.String s,
                              int idx)
Sets the stringAt attribute of the Record class

Parameters:
buffer - The new stringAt value
s - The new stringAt value
idx - The new stringAt value
Returns:
Description of the Return Value

getStringAt

public java.lang.String getStringAt(int idx)
Gets the stringAt attribute of the Record object

Parameters:
idx - Description of the Parameter
Returns:
The stringAt value

getStringAt

public static java.lang.String getStringAt(byte[] buffer,
                                           int idx)
Gets the stringAt attribute of the Record class

Parameters:
buffer - Description of the Parameter
idx - Description of the Parameter
Returns:
The stringAt value

setIntAt

public static void setIntAt(byte[] buffer,
                            int i,
                            int idx)
Sets the intAt attribute of the Record class

Parameters:
buffer - The new intAt value
i - The new intAt value
idx - The new intAt value

getIntAt

public int getIntAt(int idx)
Gets the intAt attribute of the Record object

Parameters:
idx - Description of the Parameter
Returns:
The intAt value

getIntAt

public static int getIntAt(byte[] buffer,
                           int idx)
Gets the intAt attribute of the Record class

Parameters:
buffer - Description of the Parameter
idx - Description of the Parameter
Returns:
The intAt value

getDoubleAt

public static double getDoubleAt(byte[] buffer,
                                 int idx)
Gets the doubleAt attribute of the Record class

Parameters:
buffer - Description of the Parameter
idx - Description of the Parameter
Returns:
The doubleAt value

setDoubleAt

public static void setDoubleAt(byte[] buffer,
                               double v,
                               int idx)
Sets the doubleAt attribute of the Record class

Parameters:
buffer - The new doubleAt value
v - The new doubleAt value
idx - The new doubleAt value

getDoubleLongAt

public static long getDoubleLongAt(byte[] buffer,
                                   int idx)
Gets the doubleLongAt attribute of the Record class

Parameters:
buffer - Description of the Parameter
idx - Description of the Parameter
Returns:
The doubleLongAt value

setDoubleLongAt

public static void setDoubleLongAt(byte[] buffer,
                                   long v,
                                   int idx)
Sets the doubleLongAt attribute of the Record class

Parameters:
buffer - The new doubleLongAt value
v - The new doubleLongAt value
idx - The new doubleLongAt value

setLongAt

public static void setLongAt(byte[] buffer,
                             long v,
                             int idx)
Sets the longAt attribute of the Record class

Parameters:
buffer - The new longAt value
v - The new longAt value
idx - The new longAt value

getLongAt

public static long getLongAt(byte[] buffer,
                             int idx)
Gets the longAt attribute of the Record class

Parameters:
buffer - Description of the Parameter
idx - Description of the Parameter
Returns:
The longAt value