de.unikassel.android.sdcframework.persistence
Class SetMaximumDatabaseSizeCommand
java.lang.Object
de.unikassel.android.sdcframework.persistence.AbstractDatabaseCommand<Long>
de.unikassel.android.sdcframework.persistence.SetMaximumDatabaseSizeCommand
- All Implemented Interfaces:
- DatabaseCommand<Long>
public class SetMaximumDatabaseSizeCommand
- extends AbstractDatabaseCommand<Long>
Implementation of the set maximum database size command.
Field Summary |
private long |
newMaxSize
The new database maximum size to set |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
newMaxSize
private final long newMaxSize
- The new database maximum size to set
SetMaximumDatabaseSizeCommand
public SetMaximumDatabaseSizeCommand(long newMaxSize)
- Constructor
- Parameters:
newMaxSize
- the new database maximum size
getNewMaxSize
public final long getNewMaxSize()
- Getter for the new maximum size to set
- Returns:
- the new maximum size to set
applyCommand
protected Long applyCommand(DatabaseAdapter dbAdapter)
- Description copied from class:
AbstractDatabaseCommand
- Method to apply the basic database command operation.
- Specified by:
applyCommand
in class AbstractDatabaseCommand<Long>
- Parameters:
dbAdapter
- the database adapter to use
- Returns:
- the command result