@Override public Value link(int tabId) { if (fileName == null) { this.tableId = tabId; return this; } if (linked) { ValueLob copy = ValueLob.copy(this); copy.objectId = getNewObjectId(); copy.tableId = tabId; String live = getFileName(copy.tableId, copy.objectId); copyFileTo(fileName, live); copy.fileName = live; copy.linked = true; return copy; } if (!linked) { this.tableId = tabId; String live = getFileName(tableId, objectId); renameFile(fileName, live); fileName = live; linked = true; } return this; }