@Override
	DBRecord createRecord(String name, String comments, long categoryID, long returnDtID,
			boolean hasNoReturn, boolean hasVarArgs, byte callingConventionID, long sourceArchiveID,
			long sourceDataTypeID, long lastChangeTime) throws IOException {
		byte flags = (byte) 0;
		if (hasVarArgs) {
			flags |= FUNCTION_DEF_VARARG_FLAG;
		}
		if (hasNoReturn) {
			flags |= FUNCTION_DEF_NORETURN_FLAG;
		}
		long tableKey = table.getKey();
		long key = DataTypeManagerDB.createKey(DataTypeManagerDB.FUNCTION_DEF, tableKey);
		DBRecord record = V2_FUN_DEF_SCHEMA.createRecord(key);

		record.setString(V2_FUNCTION_DEF_NAME_COL, name);
		record.setString(V2_FUNCTION_DEF_COMMENT_COL, comments);
		record.setLongValue(V2_FUNCTION_DEF_CAT_ID_COL, categoryID);
		record.setLongValue(V2_FUNCTION_DEF_RETURN_ID_COL, returnDtID);
		record.setByteValue(V2_FUNCTION_DEF_FLAGS_COL, flags);
		record.setByteValue(V2_FUNCTION_DEF_CALLCONV_COL, callingConventionID);
		record.setLongValue(V2_FUNCTION_DEF_SOURCE_ARCHIVE_ID_COL, sourceArchiveID);
		record.setLongValue(V2_FUNCTION_DEF_UNIVERSAL_DT_ID_COL, sourceDataTypeID);
		record.setLongValue(V2_FUNCTION_DEF_SOURCE_SYNC_TIME_COL, lastChangeTime);
		record.setLongValue(V2_FUNCTION_DEF_LAST_CHANGE_TIME_COL, lastChangeTime);
		table.putRecord(record);
		return record;
	}
Gets a version 2 adapter for the Function Definition 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/FunctionDefinitionDBAdapterV2.java