|
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.DLPBlock | +--org.jSyncManager.API.Protocol.Util.StdApps.ExpenseAppBlock
Application information block for the Palm Expense database.
Inner Class Summary | |
---|---|
(package private) class |
ExpenseAppBlock.CurrencyInfo
Internal class for currency information. |
Field Summary | |
---|---|
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. |
Fields inherited from class org.jSyncManager.API.Protocol.Util.DLPBlock |
---|
blockSize, data |
Constructor Summary | |
---|---|
ExpenseAppBlock()
ExpenseAppBlock default constructor. |
|
ExpenseAppBlock(DLPBlock block)
Construct an ExpenseAppBlock with the given DLPBlock. |
Method Summary | |
---|---|
int |
findCategoryInfo(int i)
Find the category info block given the category ID. |
protected void |
generateData()
Generate the raw data block from the existing fields. |
CategoryInfo |
getCategoryInfo(int i)
Get the category info block given the category index. |
java.lang.String |
getCurrencyInfo(byte type,
int i)
Return a String representation of the currency info block. |
byte |
getLastUniqueID()
Return the last unique ID. |
int |
getNumCategories()
Return the number of categories. |
byte |
getSortOrder()
Get the sort order for the data records. |
protected void |
parseFields()
Parse the data fields. |
void |
setCategoryInfo(CategoryInfo categoryinfo,
int i)
Set the category info block, given the index. |
void |
setCurrencyInfo(byte type,
int i,
java.lang.String s)
Set the category info field value s for the type
type and index i given. |
void |
setSortOrder(byte order)
Set the sort order of this application block. |
Methods inherited from class org.jSyncManager.API.Protocol.Util.DLPBlock |
---|
getBlockSize, getData, setData, toString |
Methods inherited from class java.lang.Object |
---|
|
Field Detail |
public static final byte SORT_BY_DATE
public static final byte SORT_BY_TYPE
public static final byte MAX_CUSTOM_CURRENCIES
public static final byte COUNTRY
public static final byte SYMBOL
public static final byte EXCHANGE_RATE
Constructor Detail |
public ExpenseAppBlock()
public ExpenseAppBlock(DLPBlock block)
block
- a DLPAppBlock object containing app block information from the Expense database.Method Detail |
public int findCategoryInfo(int i)
i
- requested category ID.protected void generateData()
generateData
in class DLPBlock
public CategoryInfo getCategoryInfo(int i)
i
- index to the desired category info.public java.lang.String getCurrencyInfo(byte type, int i)
type
- byte data of information type requested.i
- int index to currency info block.public byte getLastUniqueID()
public int getNumCategories()
public byte getSortOrder()
protected void parseFields()
parseFields
in class DLPBlock
public void setCategoryInfo(CategoryInfo categoryinfo, int i)
i
- the index of the category info slot.public void setCurrencyInfo(byte type, int i, java.lang.String s)
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.public void setSortOrder(byte order)
order
- byte representation of the sort order.
|
jSyncManager | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |