@Override
	public DBRecord translateRecord(DBRecord oldRec) throws IOException {
		if (oldRec == null) {
			return null;
		}
		DBRecord rec = ModuleDBAdapterV1.V1_MODULE_SCHEMA.createRecord(oldRec.getKey());

		rec.setString(MODULE_NAME_COL, oldRec.getString(V0_MODULE_NAME_COL));
		rec.setString(MODULE_COMMENTS_COL, oldRec.getString(V0_MODULE_COMMENTS_COL));

		// Count child associations for the module
		Field[] keys =
			parentChildAdapter.getParentChildKeys(rec.getKey(), ParentChildDBAdapter.PARENT_ID_COL);
		rec.setIntValue(MODULE_CHILD_COUNT_COL, keys.length);
		return rec;
	}
Gets a version 0 adapter for the program tree module database table (read-only).
@param handle handle to the database containing the table.
@param treeID associated program tree ID
@param parentChildAdapter parent/child database adapter
@throws VersionException if the table's version does not match the expected version
for this adapter.
@throws IOException if database IO error occurs
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/module/ModuleDBAdapterV0.java