|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DatabaseManager
Interface for the central database management component.
Method Summary | ||
---|---|---|
long |
doDeleteOldestSamplesInDatabase(long count,
boolean lowestPriorityFirst)
Method to delete the oldest "count" samples in the database This method is used to delete samples for deletion in case of database size maximum reached. |
|
|
doExecuteCommand(DatabaseCommand<T> command)
Does execute a database command |
|
long |
getMaximumDatabaseSize()
Getter for the maximum database size in kilobytes |
|
long |
getRecordCountInDatabase()
Getter for the current sample record count stored in database |
|
long |
setMaximumDatabaseSize(long size)
Setter for the maximum database size in kilobytes |
Method Detail |
---|
<T> T doExecuteCommand(DatabaseCommand<T> command) throws SQLiteFullException
T
- the result type of the commandcommand
- the command to execute
SQLiteFullException
- if command execution fails due to database is fulllong getRecordCountInDatabase()
long setMaximumDatabaseSize(long size)
size
- the maximum database size
long getMaximumDatabaseSize()
long doDeleteOldestSamplesInDatabase(long count, boolean lowestPriorityFirst)
count
- the sample count to delete in databaselowestPriorityFirst
- if true the samples will be selected ordered by priority and time
stamp, otherwise just by time stamp
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |