static ParentChildAdapter getAdapter(DBHandle handle, OpenMode openMode, String tablePrefix)
			throws VersionException, IOException {

		if (openMode == OpenMode.CREATE) {
			return new ParentChildDBAdapterV0(handle, tablePrefix, true);
		}
		try {
			return new ParentChildDBAdapterV0(handle, tablePrefix, false);
		}
		catch (VersionException e) {
			if (!e.isUpgradable() || openMode == OpenMode.UPDATE) {
				throw e;
			}
			ParentChildAdapter adapter = findReadOnlyAdapter(handle);
			if (openMode == OpenMode.UPGRADE) {
				adapter = upgrade(handle, adapter, tablePrefix);
			}
			return adapter;
		}
	}
Gets an adapter for working with the function definition parameters database table.
@param handle handle to the database to be accessed.
@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
@return the adapter for accessing the table of function definition parameters.
@throws VersionException if the database handle's version doesn't match the expected version.
@throws IOException if there is trouble accessing the database.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/data/ParentChildAdapter.java