|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--brf.j2me.dynaworks.db.Record
|
+--brf.j2me.dynaworks.db.palm.PalmRec
|
+--brf.j2me.dynaworks.db.palm.ExpenseRec
An ExpenseRec refers to an entry in the Palm build-in expense database.
ExpenseDB,
PalmRec| Field Summary | |
static int |
CAT_AIR
category values. |
static int |
CAT_BEVERAGES
|
static int |
CAT_BREAKFAST
|
static int |
CAT_BUS
|
static int |
CAT_CARRENTAL
|
static int |
CAT_CLEANING
|
static int |
CAT_COMPANYMEAL
|
static int |
CAT_DINNER
|
static int |
CAT_ENTERTAINMENT
|
static int |
CAT_FAX
|
static int |
CAT_FEES
|
static int |
CAT_GASOLINE
|
static int |
CAT_GIFTS
|
static int |
CAT_GUESTHOUSE
|
static int |
CAT_HOTEL
|
static int |
CAT_LUNCH
|
static int |
CAT_MILAGE
|
static int |
CAT_OFFICE
|
static int |
CAT_OTHER
|
static int |
CAT_PARKING
|
static int |
CAT_PORTO
|
static int |
CAT_SNACK
|
static int |
CAT_SPECIAL
|
static int |
CAT_TAXI
|
static int |
CAT_TELEPHONE
|
static int |
CAT_TIP
|
static int |
CAT_TRAIN
|
static int |
CTRY_AUSTRALIA
currency and country codes. |
static int |
CTRY_AUSTRIA
|
static int |
CTRY_BELGIUM
|
static int |
CTRY_BRASIL
|
static int |
CTRY_CANADA
|
static int |
CTRY_DENMARK
|
static int |
CTRY_FINLAND
|
static int |
CTRY_FRANCE
|
static int |
CTRY_GERMANY
|
static int |
CTRY_HONGKONG
|
static int |
CTRY_IRLAND
|
static int |
CTRY_ISLAND
|
static int |
CTRY_ITALY
|
static int |
CTRY_JAPAN
|
static int |
CTRY_LUXEMBURG
|
static int |
CTRY_MEXICO
|
static int |
CTRY_NETHERLANDS
|
static int |
CTRY_NEWZEALAND
|
static int |
CTRY_NORWAY
|
static int |
CTRY_SPAIN
|
static int |
CTRY_SWEDEN
|
static int |
CTRY_SWITZERLAND
|
static int |
CTRY_UK
|
static int |
CTRY_USA
|
private static java.lang.String[] |
currencies
List of currency symbols. |
private byte |
flags
bit-coded flags. |
static int |
FLD_AMOUNT
field access constants. |
static int |
FLD_CITY
|
static int |
FLD_NOTE
|
static int |
FLD_PEOPLE
|
static int |
FLD_SELLER
|
static int |
PAY_ADVANCE
|
static int |
PAY_AMEX
payment methods. |
static int |
PAY_CASH
|
static int |
PAY_CHEQUE
|
static int |
PAY_CREDITCARD
|
static int |
PAY_MASTERCARD
|
static int |
PAY_NONE
|
static int |
PAY_VISA
|
private int[] |
strLength
|
private int[] |
strStart
parameters to address strings in the record. |
| Fields inherited from class brf.j2me.dynaworks.db.Record |
content, fields, sequence |
| Constructor Summary | |
ExpenseRec()
instanciate a new record. |
|
| Method Summary | |
(package private) static void |
|
int |
getCategory()
Get the category of expense. |
int |
getCurrencyCode()
Get the currency code (0..23) |
java.lang.String |
getCurrencyTag()
Get the currency symbol for this expense. |
Date |
getDate()
Get the date for the expense. |
int |
getPayment()
Get the method of payment. |
java.lang.String |
getString(int field)
returns a field from an expense record. |
void |
update(boolean tomem)
Transfer the record content to the field variables. |
| Methods inherited from class brf.j2me.dynaworks.db.palm.PalmRec |
bitCount, intValue, shortValue |
| Methods inherited from class brf.j2me.dynaworks.db.Record |
addField, getBytes, getContent, getField, getInt, getShort, getString, readField, setBytes, setContent, setField, setInt, setShort, setString, size, writeField |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
| Field Detail |
private byte flags
private int[] strStart
private int[] strLength
public static final int CAT_AIR
public static final int CAT_BREAKFAST
public static final int CAT_BUS
public static final int CAT_COMPANYMEAL
public static final int CAT_CARRENTAL
public static final int CAT_DINNER
public static final int CAT_ENTERTAINMENT
public static final int CAT_FAX
public static final int CAT_GASOLINE
public static final int CAT_GIFTS
public static final int CAT_HOTEL
public static final int CAT_SPECIAL
public static final int CAT_CLEANING
public static final int CAT_BEVERAGES
public static final int CAT_GUESTHOUSE
public static final int CAT_LUNCH
public static final int CAT_MILAGE
public static final int CAT_OTHER
public static final int CAT_PARKING
public static final int CAT_PORTO
public static final int CAT_SNACK
public static final int CAT_TRAIN
public static final int CAT_OFFICE
public static final int CAT_TAXI
public static final int CAT_TELEPHONE
public static final int CAT_TIP
public static final int CAT_FEES
public static final int PAY_AMEX
public static final int PAY_CASH
public static final int PAY_CHEQUE
public static final int PAY_CREDITCARD
public static final int PAY_MASTERCARD
public static final int PAY_ADVANCE
public static final int PAY_VISA
public static final int PAY_NONE
public static final int FLD_AMOUNT
public static final int FLD_SELLER
public static final int FLD_CITY
public static final int FLD_PEOPLE
public static final int FLD_NOTE
public static final int CTRY_AUSTRALIA
public static final int CTRY_AUSTRIA
public static final int CTRY_BELGIUM
public static final int CTRY_BRASIL
public static final int CTRY_CANADA
public static final int CTRY_DENMARK
public static final int CTRY_FINLAND
public static final int CTRY_FRANCE
public static final int CTRY_GERMANY
public static final int CTRY_HONGKONG
public static final int CTRY_ISLAND
public static final int CTRY_IRLAND
public static final int CTRY_ITALY
public static final int CTRY_JAPAN
public static final int CTRY_LUXEMBURG
public static final int CTRY_MEXICO
public static final int CTRY_NETHERLANDS
public static final int CTRY_NEWZEALAND
public static final int CTRY_NORWAY
public static final int CTRY_SPAIN
public static final int CTRY_SWEDEN
public static final int CTRY_SWITZERLAND
public static final int CTRY_UK
public static final int CTRY_USA
private static java.lang.String[] currencies
| Constructor Detail |
public ExpenseRec()
| Method Detail |
static void()
public void update(boolean tomem)
Although an MailRecord is derived from a "normal" record, it's not using the RecordField mechanism to access its data but it stores and retreives its fields in a different way (directly from the content byte array).
update in class Recordtomem - boolean - direction of transferpublic Date getDate()
Datepublic int getCategory()
CAT_AIRpublic int getCurrencyCode()
CTRY_AUSTRALIApublic java.lang.String getCurrencyTag()
getCurrencyCode()public java.lang.String getString(int field)
The argument 'field' is an integer from the constant pool "FLD_????'. To read the name stored in the address, you use something like:
"String name = rec.getString (rec.FLD_AMOUNT);"
field - int - constant of field to accessFLD_AMOUNTpublic int getPayment()
PAY_AMEX
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||