org.jSyncManager.API.Protocol.Util.StdApps
Class ExpenseAppBlock
- Serializable
public class ExpenseAppBlock
Application information block for the Palm Expense database.
static byte | COUNTRY- A value for the COUNTRY field.
|
static byte | EXCHANGE_RATE- A value for the EXCHANGE RATE field.
|
static byte | MAX_CUSTOM_CURRENCIES- A value representing the maximum number of custom currencies.
|
static byte | SORT_BY_DATE- A value to denote this database is to be sorted by date.
|
static byte | SORT_BY_TYPE- A value to denote this database is to be sorted by type.
|
static byte | SYMBOL- A value for the SYMBOL field.
|
protected void | generateData()- Generate the raw data block from the existing fields.
|
String | getCurrencyInfo(byte type, int i)- Return a String representation of the currency info block.
|
static String | getDatabaseName()- Returns the name of the database on the Palm this app block processes.
|
protected void | parseFields()- Parse the data fields.
|
void | setCurrencyInfo(byte type, int i, String s)- Set the category info field value
s for the type
type and index i given.
|
addCategory, findCategoryInfo, findCategoryInfoByName, findCategoryInfoObject, getCategories, getCategoryInfo, getLastUniqueID, getNumCategories, getSortOrder, setCategoryInfo, setLastUniqueID, setSortOrder |
COUNTRY
public static final byte COUNTRY
A value for the COUNTRY field.
EXCHANGE_RATE
public static final byte EXCHANGE_RATE
A value for the EXCHANGE RATE field.
MAX_CUSTOM_CURRENCIES
public static final byte MAX_CUSTOM_CURRENCIES
A value representing the maximum number of custom currencies.
SORT_BY_DATE
public static final byte SORT_BY_DATE
A value to denote this database is to be sorted by date.
SORT_BY_TYPE
public static final byte SORT_BY_TYPE
A value to denote this database is to be sorted by type.
SYMBOL
public static final byte SYMBOL
A value for the SYMBOL field.
ExpenseAppBlock
public ExpenseAppBlock()
ExpenseAppBlock default constructor.
ExpenseAppBlock
public ExpenseAppBlock(DLPBlock block)
throws ParseExceptionConstruct an ExpenseAppBlock with the given DLPBlock.
block - a DLPAppBlock object containing app block information from the Expense database.
generateData
protected void generateData()
Generate the raw data block from the existing fields.
- generateData in interface DLPBlock
getCurrencyInfo
public String getCurrencyInfo(byte type,
int i)Return a String representation of the currency info block.
type - byte data of information type requested.i - int index to currency info block.
- the requested currency information.
getDatabaseName
public static String getDatabaseName()
Returns the name of the database on the Palm this app block processes.
- the name of the database on the Palm this app block processes.
setCurrencyInfo
public void setCurrencyInfo(byte type,
int i,
String s)Set the category info field value s for the type
type and index i given.
type - byte value of the currency field type.i - int value of the index for the requested category info block.s - String value of the data to set.