object and add it to the linked object cache for the owning object and link.
331815
private void parseLinkValue(DBObject        owningObj,
                                UNode           linkNode,
                                FieldDefinition linkFieldDef) {
        // Prerequisites:
        assert owningObj != null;
        assert linkNode != null;
        assert linkFieldDef != null;
        assert linkFieldDef.isLinkField();
        TableDefinition tableDef = linkFieldDef.getTableDef();
        
        // Value should be an array, though it could be a map with one child.
        Utils.require(linkNode.isCollection(), "Value of link field should be a collection: " + linkNode);
        
        // Iterate through child nodes.
        TableDefinition extentTableDef =
            tableDef.getAppDef().getTableDef(linkFieldDef.getLinkExtent());
        for (UNode childNode : linkNode.getMemberList()) {
            // Ensure this element is "doc" node.
            Utils.require(childNode.getName().equals("doc"),
                          "link field array values should be 'doc' objects: " + childNode);
            
            // Recurse and build a DBObject from the doc node.
            DBObject linkedObject = parseObject(extentTableDef, childNode);
            
            // Add the linked object to the cache and add its object ID to the set.
            String objID = linkedObject.getObjectID();
            cacheLinkedObject(owningObj.getObjectID(), linkFieldDef.getName(), linkedObject);
            owningObj.addFieldValues(linkFieldDef.getName(), Arrays.asList(objID));
        }
    }
1256187
def attach(self, upstream):
        """"""

        if upstream == self.last_upstream():
            raise Exception("Can't attach a cache to itself")

        self._prior_upstreams.append(self.last_upstream())

        self.last_upstream().upstream = upstream
319221
def add_child(self, obj):
        """"""
        self.children.append(obj)
        obj.parents.append(self)
103394
function addMembers(list, obj) {
		var keys = Object.keys(obj || {});

		for (var i = 0; i < keys.length; i++) {
			list.push({
				owner: obj,
				key: keys[i],
				value: obj[keys[i]]
			});
		}
	}
808300
def addRelation(self, link):
        '''
        
        '''
        if isinstance(link, Relation):
            self.internalLinks.append(link)
        else:
            raise TypeError(
                'link Type should be InternalLink, not %s' % type(link))
1275401
def <<(record)
      load
      record.save! if record.new?
      result = true
      result = false if include?(record)
      @owner.update_association_cache_for(@association, record, :add)
      record.update_association_cache_for(record.associations.find!(@owner).link_field, @owner, :add)
      result && self
    end
1302732
def _attach_obj(self, req, obj):
        """"""

        # Attach the object to the request
        json.dump(obj, req)

        # Also set the content-type header
        req['content-type'] = self._content_type
467117
def add_property(self, prop, objects=()):
        """"""
        self._properties.add(prop)
        self._objects |= objects
        self._pairs.update((o, prop) for o in objects)
406293
def add(self, obj):
        
        obj.controller = self.controller
        # Is the track already loaded or created?
        track = self.tracks.get(obj.name)
        if track:
            if track == obj:
                return
            # hijack the track data
            obj.keys = track.keys
            obj.controller = track.controller
            self.tracks[track.name] = obj
            self.track_index[self.track_index.index(track)] = obj
        else:
            # Add a new track
            obj.controller = self.controller
            self.tracks[obj.name] = obj
            self.track_index.append(obj)
375873
def set_object(self, obj, properties):
        """"""
        self._objects.add(obj)
        properties = set(properties)
        self._properties |= properties
        pairs = self._pairs
        for p in self._properties:
            if p in properties:
                pairs.add((obj, p))
            else:
                pairs.discard((obj, p))
306032
def Put(self, key, obj):
    """"""
    # Remove the old entry if it is there.
    node = self._hash.pop(key, None)
    if node:
      self._age.Unlink(node)

    # Make a new node and insert it.
    node = Node(key=key, data=obj)
    self._hash[key] = node
    self._age.AppendNode(node)

    self.Expire()

    return key
858754
def _attachToObject(self, anchorObj, relationName) :
		""
		#MutableSequence.__getattribute__(self, "develop")()
		self.develop()
		self._attachToObject(anchorObj, relationName)
308922
def put(self, key, value):
    '''
    '''
    path = self.object_path(key)
    self._write_object(path, value)
1360054
def addinnode(self, otherplus, node, objectname):
        
        # do a test for unique object here
        newelement = otherplus.dt[node.upper()]
1040621
function(href, obj) {
    for (var j in obj) {
      if (obj.hasOwnProperty(j)) {
        href.obj[j] = obj[j];
      }
    }
  }
1230882
def add_property(self, name, fn, cached=True):
        
        if name in self.__properties:
            raise KeyError("Trying to add a property '%s' that already exists on this %s object." % (name, self.__class__.__name__))
        self.__properties[name] = (fn, cached)
809866
def add_object(self, obj):
        
        return self.add_bucket_key_data(obj._bucket._name, obj._key, None)