de.unikassel.android.sdcframework.data
Class DatabaseConfigurationEntry

Package class diagram package DatabaseConfigurationEntry
java.lang.Object
  extended by de.unikassel.android.sdcframework.data.DatabaseConfigurationEntry

public final class DatabaseConfigurationEntry
extends Object

A database configuration does describe the configuration for the persistent storage management.

The following settings can be configured:

See Also:
SDCConfiguration

Field Summary
private  Integer dbFullDeletionRecordCount
          The record count to delete ( in case of database is full and deletion strategy is executed )
private  String dbFullStrategy
          The description of the strategy chain to apply if the database is full.
private  Long dbFullWaitTime
          The wait time in milliseconds for the wait strategy.
private  Boolean isDBFullDeletionPriorityBased
          The flag which is indicating that sample deletion is done for lower priorities first ( in case of database is full and deletion strategy is executed ).
private  Long maxDBSize
          The maximum database size in kilobytes
 
Constructor Summary
DatabaseConfigurationEntry()
          Constructor
 
Method Summary
 Integer getDBFullDeletionRecordCount()
          Getter for the record count to delete in case of database full and deletion strategy is executed.
 String getDBFullStrategy()
          Getter for the dbFullStrategy
 Long getDBFullWaitTime()
          Getter for for the time to pause and wait in case of database full and wait strategy is executed.
 Long getMaxDBSize()
          Getter for the maxDBSize
 Boolean isDBFullDeletionPriorityBased()
          Getter for the flag which is indicating that sample deletion is done for lower priorities first ( in case of database is full and deletion strategy is executed ).
 void setDBFullDeletionPriorityBased(Boolean isDBFullDeletionPriorityBased)
          Setter for for the flag which is indicating that sample deletion is done for lower priorities first ( in case of database is full and deletion strategy is executed ).
 void setDBFullDeletionRecordCount(Integer dbFullDeletionRecordCount)
          Setter for the record count to delete in case of database full and deletion strategy is executed.
 void setDBFullStrategy(String dbFullStrategy)
          Setter for the strategy chain description to execute if database is full.
Has to be the string representation of a strategy description.
 void setDBFullWaitTime(Long dbFullWaitTime)
          Setter for the time to pause and wait in case of database full and wait strategy is executed.
 void setMaxDBSize(Long maxDBSize)
          Setter for the maxDBSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxDBSize

private Long maxDBSize
The maximum database size in kilobytes


isDBFullDeletionPriorityBased

private Boolean isDBFullDeletionPriorityBased
The flag which is indicating that sample deletion is done for lower priorities first ( in case of database is full and deletion strategy is executed ).


dbFullDeletionRecordCount

private Integer dbFullDeletionRecordCount
The record count to delete ( in case of database is full and deletion strategy is executed )


dbFullWaitTime

private Long dbFullWaitTime
The wait time in milliseconds for the wait strategy.


dbFullStrategy

private String dbFullStrategy
The description of the strategy chain to apply if the database is full.
Has to be the string representation of a valid de.unikassel.android.sdcframework.persistence.facade.DBFullStrategyDescriptiontrategyDescription strategy description}.

Constructor Detail

DatabaseConfigurationEntry

public DatabaseConfigurationEntry()
Constructor

Method Detail

getMaxDBSize

public final Long getMaxDBSize()
Getter for the maxDBSize

Returns:
the maxDBSize

setMaxDBSize

public final void setMaxDBSize(Long maxDBSize)
Setter for the maxDBSize

Parameters:
maxDBSize - the maxDBSize to set

setDBFullDeletionPriorityBased

public final void setDBFullDeletionPriorityBased(Boolean isDBFullDeletionPriorityBased)
Setter for for the flag which is indicating that sample deletion is done for lower priorities first ( in case of database is full and deletion strategy is executed ).

Parameters:
isDBFullDeletionPriorityBased - the flag to set

isDBFullDeletionPriorityBased

public final Boolean isDBFullDeletionPriorityBased()
Getter for the flag which is indicating that sample deletion is done for lower priorities first ( in case of database is full and deletion strategy is executed ).

Returns:
true if sample deletion is done priority based if database is full

setDBFullDeletionRecordCount

public final void setDBFullDeletionRecordCount(Integer dbFullDeletionRecordCount)
Setter for the record count to delete in case of database full and deletion strategy is executed.

Parameters:
dbFullDeletionRecordCount - the the record count to set

getDBFullDeletionRecordCount

public final Integer getDBFullDeletionRecordCount()
Getter for the record count to delete in case of database full and deletion strategy is executed.

Returns:
the record count to delete

setDBFullWaitTime

public final void setDBFullWaitTime(Long dbFullWaitTime)
Setter for the time to pause and wait in case of database full and wait strategy is executed.

Parameters:
dbFullWaitTime - the wait time in milliseconds to set

getDBFullWaitTime

public final Long getDBFullWaitTime()
Getter for for the time to pause and wait in case of database full and wait strategy is executed.

Returns:
the time to wait

setDBFullStrategy

public final void setDBFullStrategy(String dbFullStrategy)
Setter for the strategy chain description to execute if database is full.
Has to be the string representation of a strategy description.

Parameters:
dbFullStrategy - the string representation of strategy description to set

getDBFullStrategy

public final String getDBFullStrategy()
Getter for the dbFullStrategy

Returns:
the dbFullStrategy