|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unikassel.android.sdcframework.data.DatabaseConfigurationEntry
public final class DatabaseConfigurationEntry
A database configuration does describe the configuration for the persistent
storage management.
The following settings can be configured:
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 |
---|
private Long maxDBSize
private Boolean isDBFullDeletionPriorityBased
private Integer dbFullDeletionRecordCount
private Long dbFullWaitTime
private String dbFullStrategy
Constructor Detail |
---|
public DatabaseConfigurationEntry()
Method Detail |
---|
public final Long getMaxDBSize()
public final void setMaxDBSize(Long maxDBSize)
maxDBSize
- the maxDBSize to setpublic final void setDBFullDeletionPriorityBased(Boolean isDBFullDeletionPriorityBased)
isDBFullDeletionPriorityBased
- the flag to setpublic final Boolean isDBFullDeletionPriorityBased()
public final void setDBFullDeletionRecordCount(Integer dbFullDeletionRecordCount)
dbFullDeletionRecordCount
- the the record count to setpublic final Integer getDBFullDeletionRecordCount()
public final void setDBFullWaitTime(Long dbFullWaitTime)
dbFullWaitTime
- the wait time in milliseconds to setpublic final Long getDBFullWaitTime()
public final void setDBFullStrategy(String dbFullStrategy)
dbFullStrategy
- the string representation of strategy description to setpublic final String getDBFullStrategy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |