void assignOid(Object obj, int oid, boolean raw) {
		if (obj instanceof IPersistent) {
			((IPersistent) obj).assignOid(this, oid, raw);
		}
		else {
			synchronized (objMap) {
				ObjectMap.Entry e = objMap.put(obj);
				e.oid = oid;

				if (raw) {
					e.state = Persistent.RAW;
				}
			}
		}

		if (listener != null) {
			listener.onObjectAssignOid(obj);
		}
	}