function initDefaultRowMode(oTable) {
		const vRowMode = oTable.getRowMode();
		const sRowMode = TableUtils.isA(vRowMode, "sap.ui.table.rowmodes.RowMode") ? undefined : vRowMode || RowModeType.Fixed;

		// If row mode is an instance, a default is not needed.
		if (sRowMode === undefined || _private(oTable).oDefaultRowMode) {
			return;
		}

		/**
		 * @deprecated As of version 1.119
		 */
		if (vRowMode === null) {
			switch (oTable.getVisibleRowCountMode()) {
				case RowModeType.Fixed:
					_private(oTable).oDefaultRowMode = new FixedRowMode(true);
					break;
				case RowModeType.Interactive:
					_private(oTable).oDefaultRowMode = new InteractiveRowMode(true);
					break;
				case RowModeType.Auto:
					_private(oTable).oDefaultRowMode = new AutoRowMode(true);
					break;
				default:
					throw new Error("Default row mode could not be created");
			}

			oTable.addAggregation("_hiddenDependents", _private(oTable).oDefaultRowMode);
			return;
		}

		switch (sRowMode) {
			case RowModeType.Fixed:
				_private(oTable).oDefaultRowMode = new FixedRowMode();
				break;
			case RowModeType.Interactive:
				_private(oTable).oDefaultRowMode = new InteractiveRowMode();
				break;
			case RowModeType.Auto:
				_private(oTable).oDefaultRowMode = new AutoRowMode();
				break;
			default:
				throw new Error("Default row mode could not be created");
		}

		oTable.addAggregation("_hiddenDependents", _private(oTable).oDefaultRowMode);
	}
Initializes a row mode instance with default settings if no row mode instance exists.

@param {sap.ui.table.Table} oTable The table for which to create a default row mode instance.