Exemplo n.º 1
0
 public OIdentifiable update(final OIdentifiable iValue) {
   final Iterator<OIdentifiable> underlying = getCurrentIterator();
   if (underlying instanceof OLazyIterator) {
     final OIdentifiable old = ((OLazyIterator<OIdentifiable>) underlying).update(iValue);
     if (sourceRecord != null && !old.equals(iValue)) sourceRecord.setDirty();
     return old;
   } else
     throw new UnsupportedOperationException(
         "Underlying iterator not supports lazy updates (Interface OLazyIterator");
 }
Exemplo n.º 2
0
 public void setDirty() {
   if (sourceRecord != null) sourceRecord.setDirty();
 }
Exemplo n.º 3
0
 public void remove() {
   final Iterator<OIdentifiable> underlying = getCurrentIterator();
   underlying.remove();
   if (sourceRecord != null) sourceRecord.setDirty();
 }