@Override public <RET> RET setDirty() { if (element != null) element.setDirty(); return (RET) this; }
public void onAfterRecordChanged(final OMultiValueChangeEvent<K, V> event) { ODocument document = oDocument.get(); if (document == null) //doc not alive anymore, do nothing. return; if (document.getInternalStatus() != STATUS.UNMARSHALLING) { if (event.isChangesOwnerContent()) document.setDirty(); else document.setDirtyNoChanged(); } if (!(document._trackingChanges && document.getIdentity().isValid()) || document.getInternalStatus() == STATUS.UNMARSHALLING) return; if (entry == null || entry.isChanged()) return; if (entry.timeLine == null) { entry.timeLine = new OMultiValueChangeTimeLine<Object, Object>(); } entry.timeLine.addCollectionChangeEvent((OMultiValueChangeEvent<Object, Object>) event); } }
@Override public <RET> RET setDirty() { element.setDirty(); return (RET) this; }
void setDirty() { acquireExclusiveLock(); try { document.setDirty(); } finally { releaseExclusiveLock(); } }
public OSchemaShared setDirty() { rwSpinLock.acquireWriteLock(); try { document.setDirty(); return this; } finally { rwSpinLock.releaseWriteLock(); } }
if (oldValue instanceof ORidBag) ((ORidBag) oldValue).setOwner(null); setDirty(); return (RET) oldValue;
if (oldValue instanceof ORidBag) ((ORidBag) oldValue).setOwner(null); setDirty(); return oldValue;
/** * Binds POJO to ODocument. */ @Override public ODocument toStream() { internalAcquireExclusiveLock(); try { document.setInternalStatus(ORecordElement.STATUS.UNMARSHALLING); try { final OTrackedSet<ODocument> indexes = new OTrackedSet<>(document); for (final OIndex<?> i : this.indexes.values()) { indexes.add(((OIndexInternal<?>) i).updateConfiguration()); } document.field(CONFIG_INDEXES, indexes, OType.EMBEDDEDSET); } finally { document.setInternalStatus(ORecordElement.STATUS.LOADED); } document.setDirty(); return document; } finally { internalReleaseExclusiveLock(); } }
public ODocument toNetworkStream() { ODocument document = new ODocument(); internalAcquireExclusiveLock(); try { document.setInternalStatus(ORecordElement.STATUS.UNMARSHALLING); try { final OTrackedSet<ODocument> indexes = new OTrackedSet<>(document); for (final OIndex<?> i : this.indexes.values()) { indexes.add(((OIndexInternal<?>) i).updateConfiguration().copy()); } document.field(CONFIG_INDEXES, indexes, OType.EMBEDDEDSET); } finally { document.setInternalStatus(ORecordElement.STATUS.LOADED); } document.setDirty(); return document; } finally { internalReleaseExclusiveLock(); } }
} else if (!ridbag.isEmbedded() && ridbag.size() < OGlobalConfiguration.RID_BAG_SBTREEBONSAI_TO_EMBEDDED_THRESHOLD .getValueAsInteger()) { vertex.setDirty();
} else if (!ridbag.isEmbedded() && ridbag.size() < OGlobalConfiguration.RID_BAG_SBTREEBONSAI_TO_EMBEDDED_THRESHOLD .getValueAsInteger()) { vertex.setDirty();
target.setDirty(); } else {
target.setDirty(); } else {
record.setDirty(); record.save(); returnHandler.afterUpdate(record);