de.unikassel.android.sdcframework.persistence
Class InsertSamplesCommand
java.lang.Object
de.unikassel.android.sdcframework.persistence.AbstractDatabaseCommand<Boolean>
de.unikassel.android.sdcframework.persistence.InsertSamplesCommand
- All Implemented Interfaces:
- DatabaseCommand<Boolean>
public class InsertSamplesCommand
- extends AbstractDatabaseCommand<Boolean>
Implementation of the insert samples database command.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
samples
private final Collection<DatabaseSample> samples
- The collection with the samples to insert
InsertSamplesCommand
public InsertSamplesCommand(Collection<DatabaseSample> samples)
- Constructor
- Parameters:
samples
- the samples to insert
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