de.unikassel.android.sdcframework.persistence
Class InsertSamplesCommand

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

public class InsertSamplesCommand
extends AbstractDatabaseCommand<Boolean>

Implementation of the insert samples database command.


Field Summary
private  Collection<DatabaseSample> samples
          The collection with the samples to insert
 
Fields inherited from class de.unikassel.android.sdcframework.persistence.AbstractDatabaseCommand
DEFAULT_DB_OPEN_RETRY_COUNT
 
Constructor Summary
InsertSamplesCommand(Collection<DatabaseSample> samples)
          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 with the samples to insert

Constructor Detail

InsertSamplesCommand

public InsertSamplesCommand(Collection<DatabaseSample> samples)
Constructor

Parameters:
samples - the samples to insert
Method Detail

getSamples

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

Returns:
the samples

applyCommand

protected final 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