@Override
	DBRecord createRecord(long dataTypeID, long parentID, int length, int ordinal, int offset,
			String name, String comment) throws IOException {
		// Don't allow whitespace in field names. Until we change the API to throw an exception
		// when a field name has whitespace, just silently replace whitespace with underscores.
		String fieldName = StringUtilities.whitespaceToUnderscores(name);
		long key =
			DataTypeManagerDB.createKey(DataTypeManagerDB.COMPONENT, componentTable.getKey());
		DBRecord record = ComponentDBAdapter.COMPONENT_SCHEMA.createRecord(key);
		record.setLongValue(ComponentDBAdapter.COMPONENT_PARENT_ID_COL, parentID);
		record.setLongValue(ComponentDBAdapter.COMPONENT_OFFSET_COL, offset);
		record.setLongValue(ComponentDBAdapter.COMPONENT_DT_ID_COL, dataTypeID);
		record.setString(ComponentDBAdapter.COMPONENT_FIELD_NAME_COL, fieldName);
		record.setString(ComponentDBAdapter.COMPONENT_COMMENT_COL, comment);
		record.setIntValue(ComponentDBAdapter.COMPONENT_SIZE_COL, length);
		record.setIntValue(ComponentDBAdapter.COMPONENT_ORDINAL_COL, ordinal);
		componentTable.putRecord(record);
		return record;
	}
Gets a version 0 adapter for the Component database table.
@param handle handle to the database containing the table.
@param tablePrefix prefix to be used with default table name
@param create true if this constructor should create the table.
@throws VersionException if the table's version does not match the expected version
for this adapter.
@throws IOException if an IO error occurs
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/data/ComponentDBAdapterV0.java