Is this the correct way of getting the data from table using where clause

Here is my code

String whereClause = "type = Veg";
    BackendlessDataQuery dataQuery = new BackendlessDataQuery();
    dataQuery.setWhereClause( whereClause );
    Backendless.Persistence.of(basicveg.class).find(dataQuery, new AsyncCallback<BackendlessCollection<basicveg>>() {
        @Override
        public void handleResponse(BackendlessCollection<basicveg> basicvegBackendlessCollection) {
            for(basicveg bg :basicvegBackendlessCollection.getData()){
                String title = bg.getTitle();
                String description = bg.getDescription();
                System.out.print("this is title"+title);
                System.out.print("this is description"+description);

                tv.setText(title);
                tv1.setText(description);


            }
        }

        @Override
        public void handleFault(BackendlessFault backendlessFault) {

        }
    });


}

Hi Reuben,

This article could be usefull for you.
Also, whereClause should be “type = ‘Veg’”.

Regards,

Denys