public void map ( MethodRef method , String sql , Object [ ] args ) { QueryBuilderKraken builder = QueryParserKraken . parse ( this , sql ) ; if ( builder . isTableLoaded ( ) ) { QueryKraken query = builder . build ( ) ; query . map ( method , args ) ; } else { String tableName = builder . getTableName ( ) ; _tableService . loadTable ( tableName , Result . of ( t -> builder . build ( ) . map ( method , args ) ) ) ; } }
Maps results to a method callback .