|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DatabaseAdapter
Method Summary | |
---|---|
void |
close()
Method to close the database |
long |
deleteSamplesOrdered(long count,
boolean deleteLowestPriorityFirst)
Method to delete a given count of the oldest samples. |
long |
getMaximumDatabaseSize()
Getter for the maximum database size |
long |
getRecordCount()
Method to get the current record count |
void |
insertSamples(Collection<DatabaseSample> samples)
Method to insert a sample collection into the database |
DatabaseAdapter |
open()
Method to open the database for write access |
DatabaseAdapter |
openForRead()
Method to open the database for read access |
boolean |
removeSamplesHighestPrioFirst(long count,
Collection<DatabaseSample> sampleCollection)
Method to remove the next "count" samples which will be selected ordered by ascending priority and ascending time stamp from the database and stored in a given sample collection. |
boolean |
removeSamplesLowestPrioFirst(long count,
Collection<DatabaseSample> sampleCollection)
Method to remove the next "count" samples which will be selected ordered by descending priority and ascending time stamps from the database and stored in a given sample collection. |
boolean |
removeSamplesOldestTimeStampFirst(long count,
Collection<DatabaseSample> sampleCollection)
Method to remove the next "count" samples which will be selected ordered by ascending time stamps from the database and stored in a given sample collection. |
long |
setMaximumDatabaseSize(long size)
Setter for the maximum database size |
Method Detail |
---|
DatabaseAdapter open() throws SQLiteException
SQLiteException
- if unable to open the databaseDatabaseAdapter openForRead() throws SQLiteException
SQLiteException
- if unable to open the databasevoid close()
void insertSamples(Collection<DatabaseSample> samples) throws Exception
samples
- the sample collection to insert
Exception
long getRecordCount()
long deleteSamplesOrdered(long count, boolean deleteLowestPriorityFirst)
count
- the count of records to deletedeleteLowestPriorityFirst
- if true the sample for deletion will be selected first by lowest
priority, second oldest time stamp
boolean removeSamplesHighestPrioFirst(long count, Collection<DatabaseSample> sampleCollection)
count
- the sample count to removesampleCollection
- the sample collection to store removed samples in
boolean removeSamplesLowestPrioFirst(long count, Collection<DatabaseSample> sampleCollection)
count
- the sample count to removesampleCollection
- the sample collection to store removed samples in
boolean removeSamplesOldestTimeStampFirst(long count, Collection<DatabaseSample> sampleCollection)
count
- the sample count to removesampleCollection
- the sample collection to store removed samples in
long setMaximumDatabaseSize(long size)
size
- the maximum database size
long getMaximumDatabaseSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |