lastParentSet = System.currentTimeMillis (); if (parentHandle == null || parentHandle.equals (oldParentHandle))  return;  if (parent != null && propertyName == null) {   String newname = null; DbMapping parentmap = parent.getDbMapping (); if (parentmap != null) {  Relation prel = parentmap.getPropertyRelation (); if (prel != null && prel.otherType == dbmap && prel.accessor != null) {  Relation proprel = dbmap.columnNameToRelation (prel.accessor); if (proprel != null && proprel.propName != null) newname = getString (proprel.propName, false); } }   if (newname == null) { this.anonymous = true; } else { this.anonymous = false; this.name = newname; } } else { this.anonymous = false; this.name = propertyName; }
    public void setParent (Node parent, String propertyName) {	// we only do that for relational nodes.	if (!isRelational ())	    return;	NodeHandle oldParentHandle = parentHandle;	parentHandle = parent == null ? null : parent.getHandle ();	// mark parent as set, otherwise getParent will try to	// determine the parent again when called.	lastParentSet = System.currentTimeMillis ();	if (parentHandle == null || parentHandle.equals (oldParentHandle))	    // nothing changed, no need to find access property	    return;	if (parent != null && propertyName == null) {	    // see if we can find out the propertyName by ourselfes by looking at the	    // parent's property relation	    String newname = null;	    DbMapping parentmap = parent.getDbMapping ();	    if (parentmap != null) {	        // first try to retrieve name via generic property relation of parent	        Relation prel = parentmap.getPropertyRelation ();	        if (prel != null && prel.otherType == dbmap && prel.accessor != null) {	            // reverse look up property used to access this via parent	            Relation proprel = dbmap.columnNameToRelation (prel.accessor);	            if (proprel != null && proprel.propName != null)	                newname = getString (proprel.propName, false);	        }	    }	    // did we find a new name for this	    if (newname == null) {	        this.anonymous = true;	    } else {	        this.anonymous = false;	        this.name = newname;	    }	} else {	    this.anonymous = false;	    this.name = propertyName;	}    }