public static String generateQuery ( final Map < String , Object > params ) { final StringBuilder sb = new StringBuilder ( ) ; boolean newEntry = false ; sb . append ( "{" ) ; for ( final Entry < String , Object > param : params . entrySet ( ) ) { if ( newEntry ) { sb . append ( ", " ) ; } sb . append ( param . getKey ( ) ) ; sb . append ( ": " ) ; sb . append ( getParam ( param . getValue ( ) ) ) ; newEntry = true ; } sb . append ( "}" ) ; return sb . toString ( ) ; }
Generate a Jongo query regarding a set of parameters .