de.unikassel.android.sdcframework.persistence
Class SetMaximumDatabaseSizeCommand

Package class diagram package SetMaximumDatabaseSizeCommand
java.lang.Object
  extended by de.unikassel.android.sdcframework.persistence.AbstractDatabaseCommand<Long>
      extended by 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
 
Fields inherited from class de.unikassel.android.sdcframework.persistence.AbstractDatabaseCommand
DEFAULT_DB_OPEN_RETRY_COUNT
 
Constructor Summary
SetMaximumDatabaseSizeCommand(long newMaxSize)
          Constructor
 
Method Summary
protected  Long applyCommand(DatabaseAdapter dbAdapter)
          Method to apply the basic database command operation.
 long getNewMaxSize()
          Getter for the new maximum size to set
 
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

newMaxSize

private final long newMaxSize
The new database maximum size to set

Constructor Detail

SetMaximumDatabaseSizeCommand

public SetMaximumDatabaseSizeCommand(long newMaxSize)
Constructor

Parameters:
newMaxSize - the new database maximum size
Method Detail

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