public void addDimension(DimensionTable table, boolean mandatory) {
        sqlTables.put(table.getTableName(), table);
        dimensions.put(table.getDimensionName().toUpperCase(), table);
        if (mandatory) {
            mandatoryDimensionNames.add(table.getDimensionName().toUpperCase(Locale.ENGLISH));
        }
    }
public void addDimension ( DimensionTable table , boolean mandatory ) { sqlTables . put ( table . getTableName ( ) , table ) ; dimensions . put ( table . getDimensionName ( ) . toUpperCase ( ) , table ) ; if ( mandatory ) { mandatoryDimensionNames . add ( table . getDimensionName ( ) . toUpperCase ( Locale . ENGLISH ) ) ; } }
Add a dimension as mandatory.
Mandatory dimension names are stored in upper case.

@param table     The dimension table
@param mandatory Add if true, remove otherwise