public interface Buffered
Modifier and Type | Method and Description |
---|---|
void |
commit()
Updates all changes since the previous commit to the data source.
|
void |
discard()
Discards all changes since last commit.
|
boolean |
isBuffered() |
boolean |
isModified()
Tests if the value stored in the object has been modified since it was
last updated from the data source.
|
void |
setBuffered(boolean buffered)
Sets the buffered mode.
|
void commit()
void discard()
boolean isBuffered()
true
if buffered mode is on, false
otherwisevoid setBuffered(boolean buffered)
When in buffered mode, an internal buffer will be used to store changes
until commit()
is called. Calling discard()
will revert
the internal buffer to the value of the data source.
When in non-buffered mode both read and write operations will be done
directly on the data source. In this mode the commit()
and
discard()
methods serve no purpose.
buffered
- true
if buffered mode should be turned on, false
otherwiseboolean isModified()
true
if the value in the object has been modified
since the last data source update, false
if not.