boolean updateAutoName(boolean notify) {
		lock.acquire();
		try {
			checkIsValid();

			if (!isAutoNamed()) {
				return false;
			}

			String oldName = getName();
			String newName = generateTypedefName(getCategoryPath());
			if (oldName.equals(newName)) {
				return false;
			}

			record.setString(TypedefDBAdapter.TYPEDEF_NAME_COL, newName);
			adapter.updateRecord(record, false);
			refreshName();

			if (notify) {
				notifyNameChanged(oldName);
			}
		}
		catch (IOException e) {
			dataMgr.dbError(e);
		}
		finally {
			lock.release();
		}
		return true;
	}
Construct TypeDefDB instance
@param dataMgr datatype manager
@param cache DataTypeDB cache
@param adapter TypeDef record adapter
@param record TypeDefDB record
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/data/TypedefDB.java