de.unikassel.android.sdcframework.persistence.facade
Interface DatabaseCommand<T>

Package class diagram package DatabaseCommand
Type Parameters:
T - the result type of the command
All Known Implementing Classes:
AbstractDatabaseCommand, DeleteSamplesCommand, GetMaximumDatabaseSizeCommand, GetRecordCountCommand, InsertSamplesCommand, RemoveSamplesCommand, SetMaximumDatabaseSizeCommand

public interface DatabaseCommand<T>

Interface for database commands.


Method Summary
 boolean execute(DatabaseAdapter dbAdapter)
          Method to execute the command
 T getResult()
          Getter for the result
 

Method Detail

execute

boolean execute(DatabaseAdapter dbAdapter)
                throws SQLiteFullException
Method to execute the command

Parameters:
dbAdapter - the database adapter to use for execution
Returns:
true if successful, false otherwise
Throws:
SQLiteFullException - if command execution fails due to the fact that the database is full

getResult

T getResult()
Getter for the result

Returns:
the result