de.unikassel.android.sdcframework.persistence
Class RemoveSamplesCommand

Package class diagram package RemoveSamplesCommand
java.lang.Object
  extended by de.unikassel.android.sdcframework.persistence.AbstractDatabaseCommand<Boolean>
      extended by de.unikassel.android.sdcframework.persistence.RemoveSamplesCommand
All Implemented Interfaces:
DatabaseCommand<Boolean>

public class RemoveSamplesCommand
extends AbstractDatabaseCommand<Boolean>

Implementation of the remove samples database command.


Field Summary
private  long count
          The sample count to remove from database
private  Collection<DatabaseSample> samples
          The collection to store the removed samples in
 
Fields inherited from class de.unikassel.android.sdcframework.persistence.AbstractDatabaseCommand
DEFAULT_DB_OPEN_RETRY_COUNT
 
Constructor Summary
RemoveSamplesCommand(Collection<DatabaseSample> samples, long count)
          Constructor
 
Method Summary
protected  Boolean applyCommand(DatabaseAdapter dbAdapter)
          Method to apply the basic database command operation.
 Collection<DatabaseSample> getSamples()
          Getter for the samples
 
Methods inherited from class de.unikassel.android.sdcframework.persistence.AbstractDatabaseCommand
execute, getDbOpenRetryCount, getResult, internalExecute, isOpenReadOnly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

samples

private final Collection<DatabaseSample> samples
The collection to store the removed samples in


count

private final long count
The sample count to remove from database

Constructor Detail

RemoveSamplesCommand

public RemoveSamplesCommand(Collection<DatabaseSample> samples,
                            long count)
Constructor

Parameters:
samples - the sample collection to store removed samples in
count - the count of samples to remove from data base
Method Detail

getSamples

public final Collection<DatabaseSample> getSamples()
Getter for the samples

Returns:
the samples

applyCommand

protected Boolean applyCommand(DatabaseAdapter dbAdapter)
Description copied from class: AbstractDatabaseCommand
Method to apply the basic database command operation.

Specified by:
applyCommand in class AbstractDatabaseCommand<Boolean>
Parameters:
dbAdapter - the database adapter to use
Returns:
the command result