private void updateLocalCacheIfNecessary(final Object key, final Object value) { // Null values (i.e. cache misses) & literal values are not cached locally if (value != null && !LiteralValues.isLiteralInstance(value)) { if (isEventual) { // addEventualValueToCache(key, value, this.objectManager.lookupExistingObjectID(value), MapOperationType.GET); } else { addIncoherentValueToCache(key, value, this.objectManager.lookupExistingObjectID(value), MapOperationType.GET); } } }
private void updateLocalCacheIfNecessary(final Object key, final Object value) { // Null values (i.e. cache misses) & literal values are not cached locally if (value != null && !LiteralValues.isLiteralInstance(value)) { if (isEventual) { // addEventualValueToCache(key, value, this.objectManager.lookupExistingObjectID(value), MapOperationType.GET); } else { addIncoherentValueToCache(key, value, this.objectManager.lookupExistingObjectID(value), MapOperationType.GET); } } }
private void updateLocalCacheIfNecessary(final Object key, final Object value) { // Null values (i.e. cache misses) & literal values are not cached locally if (value != null && !LiteralValues.isLiteralInstance(value)) { if (isEventual) { // addEventualValueToCache(key, value, this.objectManager.lookupExistingObjectID(value), MapOperationType.GET); } else { addIncoherentValueToCache(key, value, this.objectManager.lookupExistingObjectID(value), MapOperationType.GET); } } }
private int clearArrayReferences(Object[] array) { int cleared = 0; int l = array.length; for (int i = 0; i < l; i++) { Object o = array[i]; if (o == null) continue; if (getObjectManager().isManaged(o)) { ObjectID lid = getObjectManager().lookupExistingObjectID(o); ObjectID old = setReference(Integer.toString(i), lid); if (old != null && !lid.equals(old)) { // Formatting throw new AssertionError("clearArrayReferences : mapped [" + i + "] to " + lid + " while there was an exisiting mapping in references : " + old + " : TCObject = " + getObjectID() + " : " + this + " version = " + this.getVersion()); } array[i] = null; cleared++; } } return cleared; }
objectManager.lookupExistingObjectID(value), MapOperationType.GET);
objectManager.lookupExistingObjectID(value), MapOperationType.GET);
objectManager.lookupExistingObjectID(value), MapOperationType.GET);