|
jSyncManager | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jSyncManager.API.Protocol.Util.DLPRecord | +--org.jSyncManager.API.Protocol.Util.StdApps.ExpenseRecord
Expense Record for the Palm Expense database.
Field Summary | |
---|---|
static byte |
AIRFARE
The Airfare expense type. |
static byte |
AMEX
The American Express payment type. |
static byte |
BREAKFAST
The Breakfast expense type. |
static byte |
BUS
The Bus expense type. |
static byte |
BUSINESS_MEALS
The Business Meal expense type. |
static byte |
CAR_RENTAL
The Car Rental expense type. |
static byte |
CASH
The Cash payment type. |
static byte |
CHEQUE
The Cheque payment type. |
static byte |
CREDIT_CARD
The generic Credit Card payment type. |
static byte |
DINNER
The Dinner expense type. |
static byte |
ENTERTAINMENT
The Entertainment expense type. |
static byte |
FAX
The fascimilie (fax) expense type. |
static byte |
GAS
The Gasoline expense type. |
static byte |
GIFTS
The Gifts expense type. |
static byte |
HOTEL
The Hotel expense type. |
static byte |
INCIDENTALS
The Incedentals expense type. |
static byte |
LAUNDRY
The Laundry expense type. |
static byte |
LIMO
The Limosine expense type. |
static byte |
LODGING
The Lodging expense type. |
static byte |
LUNCH
The Lunch expense type. |
static byte |
MASTERCARD
The Mastercard payment type. |
static byte |
MILEAGE
The Milage expense type. |
static byte |
OTHER
The Other expense type. |
static byte |
PARKING
The Parking expense type. |
static byte |
POSTAGE
The Postage expense type. |
static byte |
PREPAID
The prepaid payment type. |
static byte |
SNACK
The Snack expense type. |
static byte |
SUBWAY
The Subway expense type. |
static byte |
SUPPLIES
The Supplies expense type. |
static byte |
TAXI
The Taxi expense type. |
static byte |
TELEPHONE
The Telephone expense type. |
static byte |
TIPS
The Tips expense type. |
static byte |
TOLLS
The Tolls expense type. |
static byte |
TRAIN
The Train expense type. |
static byte |
UNFILED
The unspecified/unfiled payment type. |
static byte |
VISA
The Visa payment type. |
Fields inherited from class org.jSyncManager.API.Protocol.Util.DLPRecord |
---|
ARCHIVED, attributes, BUSY, category, data, DATA_INCLUDED, DELETE_ALL_IN_CATEGORY, DELETE_ALL_RECORDS, DELETED, DIRTY, index, inputData, recordID, recordSize, SECRET, SORT_DATABASE |
Constructor Summary | |
---|---|
ExpenseRecord()
ExpenseRecord default constructor. |
|
ExpenseRecord(DLPRecord record)
Construct a new Expense Record using the specified DLPRecord read form the expense database. |
Method Summary | |
---|---|
protected void |
generateData()
Generate the raw data block from the existing fields. |
byte |
getCurrencyType()
Return the currency type byte data value. |
java.lang.String |
getCurrencyTypeAsString()
Return the currency type as a String representation. |
java.lang.String |
getExpenseAmount()
Get the expense amount value. |
float |
getExpenseAmountAsFloat()
Get the expense amount as a float value. |
java.lang.String |
getExpenseAttendees()
Get the String representation of the attendees. |
java.lang.String |
getExpenseCity()
Get the city for this expense record. |
java.util.Calendar |
getExpenseDate()
Get the date of this expense record as a Calendar type. |
java.lang.String |
getExpenseNote()
Get the note associated with this expense record. |
byte |
getExpenseType()
Get the expense type of this expense record. |
java.lang.String |
getExpenseTypeAsString()
Get the expense type as a String representation. |
java.lang.String |
getExpenseVendor()
Get the vendor associated with this expense record as a String value. |
byte |
getPaymentType()
Get the payment type for this expense reocrd. |
java.lang.String |
getPaymentTypeAsString()
Get the payment type of this expense record as a String representation. |
protected void |
parseFields()
Parse the data fields. |
void |
setCurrencyType(byte type)
Set the currency type for this record as a byte value. |
void |
setExpenseAmount(float f)
Set the expense amount from a float value. |
void |
setExpenseAmount(java.lang.String s)
Set the expense amount from a String value. |
void |
setExpenseAttendees(java.lang.String s)
Set the attendees value from a String. |
void |
setExpenseCity(java.lang.String s)
Set the city for this expense record. |
void |
setExpenseDate(java.util.Calendar calendar)
Set the date for this expense record from a Calendar value. |
void |
setExpenseNote(java.lang.String s)
Set the note value for this expense record. |
void |
setExpenseType(byte type)
Set the type of this expense record from a byte value. |
void |
setExpenseVendor(java.lang.String s)
Set the vendor for this expense record. |
void |
setPaymentType(byte type)
Set the payment type of this expense record from a byte value. |
java.lang.String |
toString()
Return a human-readable String representation of this expense record. |
Methods inherited from class org.jSyncManager.API.Protocol.Util.DLPRecord |
---|
checkAttribute, getAttributes, getCategory, getData, getIndex, getRecordID, getRecordSize, setAttributes, setCategory, setData, setIndex, setRecordID, setRecordSize |
Methods inherited from class java.lang.Object |
---|
|
Field Detail |
public static final byte AMEX
public static final byte CASH
public static final byte CHEQUE
public static final byte CREDIT_CARD
public static final byte MASTERCARD
public static final byte PREPAID
public static final byte VISA
public static final byte UNFILED
public static final byte AIRFARE
public static final byte BREAKFAST
public static final byte BUS
public static final byte BUSINESS_MEALS
public static final byte CAR_RENTAL
public static final byte DINNER
public static final byte ENTERTAINMENT
public static final byte FAX
public static final byte GAS
public static final byte GIFTS
public static final byte HOTEL
public static final byte INCIDENTALS
public static final byte LAUNDRY
public static final byte LIMO
public static final byte LODGING
public static final byte LUNCH
public static final byte MILEAGE
public static final byte OTHER
public static final byte PARKING
public static final byte POSTAGE
public static final byte SNACK
public static final byte SUBWAY
public static final byte SUPPLIES
public static final byte TAXI
public static final byte TELEPHONE
public static final byte TIPS
public static final byte TOLLS
public static final byte TRAIN
Constructor Detail |
public ExpenseRecord()
public ExpenseRecord(DLPRecord record)
record
- the DLPRecord containing an expense record.Method Detail |
protected void generateData()
generateData
in class DLPRecord
public byte getCurrencyType()
public java.lang.String getCurrencyTypeAsString()
public java.lang.String getExpenseAmount()
public float getExpenseAmountAsFloat()
public java.lang.String getExpenseAttendees()
public java.lang.String getExpenseCity()
public java.util.Calendar getExpenseDate()
public java.lang.String getExpenseNote()
public byte getExpenseType()
public java.lang.String getExpenseTypeAsString()
public java.lang.String getExpenseVendor()
public byte getPaymentType()
public java.lang.String getPaymentTypeAsString()
protected void parseFields()
parseFields
in class DLPRecord
public void setCurrencyType(byte type)
type
- byte value for the currency type.public void setExpenseAmount(float f)
f
- float value of expense amount.public void setExpenseAmount(java.lang.String s)
s
- String value representation of expense amount.public void setExpenseAttendees(java.lang.String s)
s
- String value of attendees.public void setExpenseCity(java.lang.String s)
s
- the city for this expense record.public void setExpenseDate(java.util.Calendar calendar)
calendar
- the date for this expense record from a Calendar value.public void setExpenseNote(java.lang.String s)
s
- the note value for this expense record.public void setExpenseType(byte type)
byte0
- byte value of the expense type.public void setExpenseVendor(java.lang.String s)
s
- String value of vendor.public void setPaymentType(byte type)
type
- byte value of payment type.public java.lang.String toString()
toString
in class DLPRecord
|
jSyncManager | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |