public QueryBuilder instantiate ( String query , Object ... items ) throws Exception { JSONObject op = new JSONObject ( ) ; if ( query != null ) op . put ( Constants . REQUEST_INSTANTIATE , query ) ; if ( query != null ) queryStringRepresentation += query ; op . put ( Constants . REQUEST_ARGUMENTS , buildArgsArray ( items ) ) ; JSONArray operations = ( JSONArray ) request . get ( Constants . REQUEST_OPERATIONS ) ; operations . put ( op ) ; request . remove ( Constants . REQUEST_OPERATIONS ) ; request . put ( Constants . REQUEST_OPERATIONS , operations ) ; return this ; }
Used to instantiate a class