|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unikassel.android.sdcframework.persistence.AbstractDatabaseCommand<Long>
de.unikassel.android.sdcframework.persistence.DeleteSamplesCommand
public class DeleteSamplesCommand
Implementation of the sample deletion database command.
Field Summary | |
---|---|
private long |
count
The record count to delete from database |
private boolean |
lowestPriorityFirst
Flag, indicating if samples with lower priority shall be deleted first |
Fields inherited from class de.unikassel.android.sdcframework.persistence.AbstractDatabaseCommand |
---|
DEFAULT_DB_OPEN_RETRY_COUNT |
Constructor Summary | |
---|---|
DeleteSamplesCommand(long count,
boolean lowestPriorityFirst)
Constructor |
Method Summary | |
---|---|
protected Long |
applyCommand(DatabaseAdapter dbAdapter)
Method to apply the basic database command operation. |
long |
getCount()
Getter for the count of samples to delete |
boolean |
isLowestPriorityFirst()
Getter for the lowestPriorityFirst flag |
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 |
---|
private final long count
private final boolean lowestPriorityFirst
Constructor Detail |
---|
public DeleteSamplesCommand(long count, boolean lowestPriorityFirst)
count
- the record count to delete from databaselowestPriorityFirst
- flag if samples with lower priority shall be deleted firstMethod Detail |
---|
public final long getCount()
public final boolean isLowestPriorityFirst()
protected final Long applyCommand(DatabaseAdapter dbAdapter)
AbstractDatabaseCommand
applyCommand
in class AbstractDatabaseCommand<Long>
dbAdapter
- the database adapter to use
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |