@Override
	DBRecord createRecord(String name, String comments, boolean isUnion, long categoryID,
			int length, int computedAlignment, long sourceArchiveID, long sourceDataTypeID,
			long lastChangeTime, int packValue, int minAlignment) throws IOException {
		if (compositeTable.getSchema().getVersion() == V5_VERSION) {
			throw new UnsupportedOperationException();
		}
		if (packValue < CompositeInternal.DEFAULT_PACKING) {
			packValue = CompositeInternal.NO_PACKING;
		}
		else {
			length = 0; // aligned structures always start empty
		}
		long key =
			DataTypeManagerDB.createKey(DataTypeManagerDB.COMPOSITE, compositeTable.getKey());
		DBRecord record = CompositeDBAdapter.COMPOSITE_SCHEMA.createRecord(key);

		record.setString(V5V6_COMPOSITE_NAME_COL, name);
		record.setString(V5V6_COMPOSITE_COMMENT_COL, comments);
		record.setBooleanValue(V5V6_COMPOSITE_IS_UNION_COL, isUnion);
		record.setLongValue(V5V6_COMPOSITE_CAT_COL, categoryID);
		record.setIntValue(V5V6_COMPOSITE_LENGTH_COL, length);
		record.setIntValue(V5V6_COMPOSITE_ALIGNMENT_COL, computedAlignment);
		record.setIntValue(V5V6_COMPOSITE_NUM_COMPONENTS_COL, length);
		record.setLongValue(V5V6_COMPOSITE_SOURCE_ARCHIVE_ID_COL, sourceArchiveID);
		record.setLongValue(V5V6_COMPOSITE_UNIVERSAL_DT_ID_COL, sourceDataTypeID);
		record.setLongValue(V5V6_COMPOSITE_SOURCE_SYNC_TIME_COL, lastChangeTime);
		record.setLongValue(V5V6_COMPOSITE_LAST_CHANGE_TIME_COL, lastChangeTime);
		record.setIntValue(V5V6_COMPOSITE_PACK_COL, packValue);
		record.setIntValue(V5V6_COMPOSITE_MIN_ALIGN_COL, minAlignment);
		compositeTable.putRecord(record);
		return record;
	}
Gets an adapter for the Composite database table.
@param handle handle to the database containing the table.
@param openMode the mode this adapter is to be opened for (CREATE, UPDATE, READ_ONLY, UPGRADE).
@param tablePrefix prefix to be used with default table name
@throws VersionException if the table's version does not match the expected version
for this adapter.
@throws IOException if IO error occurs
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/data/CompositeDBAdapterV5V6.java