/**
* Auto commit mode.
*/
- private boolean writeTroughMode = true;
+ private boolean writeThroughMode = true;
/**
* Reads the value from data-source, when it is not modified.
*/
- private boolean readTroughMode = true;
+ private boolean readThroughMode = true;
/**
* Is the field modified but not committed.
* here, we use the default documentation from the implemented interface.
*/
public boolean isWriteThrough() {
- return writeTroughMode;
+ return writeThroughMode;
}
/*
*/
public void setWriteThrough(boolean writeThrough)
throws Buffered.SourceException, InvalidValueException {
- if (writeTroughMode == writeThrough) {
+ if (writeThroughMode == writeThrough) {
return;
}
- writeTroughMode = writeThrough;
- if (writeTroughMode) {
+ writeThroughMode = writeThrough;
+ if (writeThroughMode) {
commit();
}
}
* here, we use the default documentation from the implemented interface.
*/
public boolean isReadThrough() {
- return readTroughMode;
+ return readThroughMode;
}
/*
* JavaDoc comment here, we use the default documentation from the
* implemented interface.
*/
- public void setReadThrough(boolean readTrough)
+ public void setReadThrough(boolean readThrough)
throws Buffered.SourceException {
- if (readTroughMode == readTrough) {
+ if (readThroughMode == readThrough) {
return;
}
- readTroughMode = readTrough;
- if (!isModified() && readTroughMode && dataSource != null) {
+ readThroughMode = readThrough;
+ if (!isModified() && readThroughMode && dataSource != null) {
setInternalValue(String.class == getType() ? dataSource.toString()
: dataSource.getValue());
fireValueChange(false);
setInternalValue(newValue);
modified = dataSource != null;
- // In write trough mode , try to commit
+ // In write through mode , try to commit
if (isWriteThrough() && dataSource != null
&& (isInvalidCommitted() || isValid())) {
try {