|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--brf.j2me.dynaworks.db.palm.PalmDB
PalmDB is the abstract base class for all Palm build-in databases.
Database| Field Summary | |
private Database |
db
reference to system created database object. |
| Fields inherited from interface brf.j2me.dynaworks.env.Database |
ERR_APPEND, ERR_CREATE, ERR_DBFULL, ERR_DELETE, ERR_DEVICE, ERR_NODATA, ERR_NODB, ERR_OPEN, ERR_READ, ERR_WRITE, S_OK |
| Constructor Summary | |
PalmDB(java.lang.String name)
Constructor for Palm build-in databases |
|
| Method Summary | |
int |
addRecord(Dataset rec)
add a record to the database. |
void |
close()
Close the database. |
boolean |
deleteRecord(int idx)
Delete a record at a specified index. |
int |
getErrorCode()
return the current database error code. |
boolean |
getRecord(int idx,
Dataset rec)
Retreive a record from the database at a specific position. |
boolean |
isOpen()
Is the database opened? |
protected PalmRec |
newRecord()
Instanciate a new PalmRecord. |
int |
numberOfRecords()
Return the number of records in the database. |
boolean |
open()
Open the database. |
boolean |
putRecord(int idx,
Dataset rec)
Store a record in the database at a specific position. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private Database db
| Constructor Detail |
public PalmDB(java.lang.String name)
name - String - identifier for the database| Method Detail |
public boolean open()
open in interface Databasepublic boolean isOpen()
isOpen in interface Databasepublic void close()
close in interface Databasepublic int getErrorCode()
getErrorCode in interface Databasepublic int numberOfRecords()
numberOfRecords in interface Databasepublic int addRecord(Dataset rec)
addRecord in interface Databaserec - Dataset - record to be added to the database.Dataset
public boolean getRecord(int idx,
Dataset rec)
getRecord in interface Databaseidx - int - Position of the record in the database.rec - Dataset - record to be filled with data.Dataset
public boolean putRecord(int idx,
Dataset rec)
putRecord in interface Databaseidx - int - Desired position of the record in the database.rec - Dataset - record to be stored.Datasetpublic boolean deleteRecord(int idx)
deleteRecord in interface Databaseidx - int - Index of the record to be deleted.protected PalmRec newRecord()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||