question: public Table findTable ( String catalogName , String schemaName , String tableName , boolean caseSensitive ) { String cacheKey = catalogName + "." + schemaName + "." + tableName + "." + caseSensitive ; Integer tableIndex = tableIndexCache . get ( cacheKey ) ; if ( tableIndex != null ) { if ( tableIndex < getTableCount ( ) ) { Table table = getTable ( tableIndex ) ; if ( doesMatch ( table , catalogName , schemaName , tableName , caseSensitive ) ) { return table ; } } } Table [ ] tables = getTables ( ) ; for ( int i = 0 ; i < tables . length ; i ++ ) { Table table = tables [ i ] ; if ( doesMatch ( table , catalogName , schemaName , tableName , caseSensitive ) ) { tableIndexCache . put ( cacheKey , i ) ; return table ; } } return null ; }
target:  Catalog & Schema aware finder for ddlutils Database class