public void lockValue() {
   if (entityState.lockValue(tableIndex)) {
     // log.debug("locking> " + fieldName + "=" + value);
     lockedValue = value;
   }
 }
 /** Resets everything. */
 public void reset() {
   value = null;
   state = null;
   lastRead = -1;
   entityState.resetFlags(tableIndex);
 }
 /** Resets masks and updates the state. */
 public void setClean() {
   entityState.setClean(tableIndex);
   updateState(value);
 }
 /** Marks the field as loaded. */
 public void setLoaded() {
   entityState.setLoaded(tableIndex);
 }
 /** @return true if the field is loaded. */
 public boolean isLoaded() {
   return entityState.isLoaded(tableIndex);
 }
 private void setCheckDirty() {
   entityState.setCheckDirty(tableIndex);
 }