public String getLogicTableName ( final String logicIndexName ) { for ( TableRule each : tableRules ) { if ( logicIndexName . equals ( each . getLogicIndex ( ) ) ) { return each . getLogicTable ( ) ; } } throw new ShardingConfigurationException ( "Cannot find logic table name with logic index name: '%s'" , logicIndexName ) ; }
Get logic table name base on logic index name .